-
Notifications
You must be signed in to change notification settings - Fork 12k
fix(build): correctly compile source files against typings #306
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
Conversation
e1a27d7
to
55c9638
Compare
if (this.options && this.options.vendorNpmFiles) { | ||
vendorNpmFiles = vendorNpmFiles.concat(this.options.vendorNpmFiles); | ||
} | ||
|
||
var tsConfigCompilerOptions = JSON.parse(fs.readFileSync('src/tsconfig.json', 'utf-8')).compilerOptions; | ||
// TODO(i): kill rootFilePaths in broccoli-typescript and use tsconfig.json#files instead | ||
tsConfigCompilerOptions.rootFilePaths = JSON.parse(fs.readFileSync('src/tsconfig.json', 'utf-8')).files; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you load the json only once?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ha. yeah. this should really be a separate commit. I missed this change. thanks for pointing it out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note; broccoli-typescript
might be going away with the upgrade to broccoli 1.0.
Couple of nits, and we still need to talk about typings. |
LGTM if you remove the declaration of |
8398d95
to
411a95a
Compare
and document why that it's used only for debugging
It looks like previously we were grabbing typings from outside of the tmp/ directory. If this ever worked, it worked only by accident.
We need to preserve the paths to be the same during build as they are in source repo, so that editor and build pipeline are aligned.
411a95a
to
19774b9
Compare
@@ -9,10 +9,16 @@ | |||
"moduleResolution": "node", | |||
"noEmitOnError": true, | |||
"noImplicitAny": false, | |||
"outDir": "../dist/", | |||
"//outDir": "this option is used only during manual invocation of tsc usually while debugging", | |||
"outDir": "../dist-manual/", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep this as ../dist
as this is for tooling, more than command line usage of tsc
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in a follow up commit.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
It looks like previously we were grabbing typings from outside of the tmp/ directory.
If this ever worked, it worked only by accident.