-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ts_project does not pick up referenced project's parent tsconfig #1754
Comments
I think this is more for the question |
Okay that has a lot of output, let's just find the *.json inputs
This is missing |
Yup, trivial fix to include the extended tsconfigs in the set we pass down to dependencies in the _TsConfigInfo provider: https://github.com/kwonoj/ts_project_composite_test/pull/2 Will fix in rules_nodejs for next patch release. |
Allows ts_project to work with extra tsconfig indirections Fixes bazel-contrib#1754
Allows ts_project to work with extra tsconfig indirections Fixes #1754
though in actual repo it have same outdir layout, this repo's tsconfig is simplified omits some of differences between 2 configs.
yes, that's how I could make this repro, I think I should've include aquery output in issue. Thanks for help. |
🐞 bug report
Affected Rule
The issue is caused by the rule: `ts_project`Is this a regression?
Yes, the previous version in which this bug was not present was: ....Description
A clear and concise description of the problem...let's assume project layout like below
tsconfig.json
under each package extends\\:tsconfig.json
,\\src:tsconfig.esm.json
.tsconfig.bzl.json
is the actual config being used in ts_project, extends each:tsconfig.json
.when
\\src\preload:tsconfig.bzl
have reference to\\src:common
, ts_projectdeps
will pick up direct reference,\\src\common:tsconfig.bzl.json
and does not pick up its extend\\src\common:tsconfig.json
, in result compilation error occurs by missing some of config flags specified in parent config only.🔬 Minimal Reproduction
npm test
on Linux / darwin (sandbox)🔥 Exception or Error
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_nodejs version:
(Please check that you have matching versions between WORKSPACE file and
@bazel/*
npm packages.)Anything else relevant?
The text was updated successfully, but these errors were encountered: