Skip to content

Use ts-check instead of ts-node to avoid transpilation overhead on gulp invoke#23486

Merged
weswigham merged 1 commit intomicrosoft:masterfrom
weswigham:excise-tsnode
Apr 17, 2018
Merged

Use ts-check instead of ts-node to avoid transpilation overhead on gulp invoke#23486
weswigham merged 1 commit intomicrosoft:masterfrom
weswigham:excise-tsnode

Conversation

@weswigham
Copy link
Copy Markdown
Member

@weswigham weswigham commented Apr 17, 2018

Since ts-node now does an immensely costly full-typecheck (of all TS in the tree), and waiting full seconds just for gulp is unreasonable (if it doesn't crash from size limits, like it does for us).
However, the Gulpfile is still strongly typed, thanks to @ts-check, which we did not have back when we first started using a Gulpfile.ts.

Fixes #23479

Comment thread Gulpfile.js
@@ -1057,51 +1105,6 @@ gulp.task("build-rules", "Compiles tslint rules to js", () => {
.pipe(gulp.dest(dest));
});

const lintTargets = [
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This chunk of code was unused (we swapped to shelling out to tslint directly once they added project mode), so I removed it while I was here.

@weswigham weswigham merged commit 391c056 into microsoft:master Apr 17, 2018
@weswigham weswigham deleted the excise-tsnode branch April 17, 2018 21:19
@weswigham weswigham mentioned this pull request May 11, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants