-
Notifications
You must be signed in to change notification settings - Fork 293
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
enhance: upgrade local ts #674
Conversation
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.
Thanks! Looks like CI is failing though.
The inproper ts version in test directory lead to test failures @styfle @guybedford, if I want to upgrade the ts lib assets generated in |
@huozhi that sounds right to me, but TypeScript is a very complex build for ncc already - just updating TypeScript is a job unto itself. Is it working? |
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.
I'm not sure if a symlink for test/integration/node_modules/typescript/index.js
is correct here. What do you think @guybedford ?
@styfle the symlink approach seems fine to me actually. Note we should be sure to thoroughly test the TypeScript upgrade here manually before releasing, and it is a major release to upgrade TypeScript. |
@guybedford All the CI tests are passing. Any other TS tests you have in mind? |
@styfle we may be missing test coverage of the bundled typescript version. That is, we should add a test that does a similar symlink trick, but to |
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.
this ts upgration is truly a big gap (from 3.2.2 to 3.9.9).
one idea is to only upgrade to 3.4 to support incremental
option, the gap is small.
another option is to change purpose of this PR to "upgrade local provided ts" and release later.
which one do you prefer?
Codecov Report
@@ Coverage Diff @@
## master #674 +/- ##
==========================================
- Coverage 74.93% 73.41% -1.52%
==========================================
Files 13 13
Lines 399 474 +75
==========================================
+ Hits 299 348 +49
- Misses 100 126 +26
Continue to review full report at Codecov.
|
Looks good! Just missing this: #674 (comment) Also in regard to the TS version, we bundle TS so its not going to use any version besides the one defined in devDependencies (3.6.5 in your PR or rather the version in the lock file) |
I'm kinda unclear about the approach of testing |
@huozhi perhaps a symlink is the wrong direction actually - instead we just want to not load the local One way to do this would be to construct a tmp folder at the system root - Alternatively, simply running ncc from a difference cwd could also do this:
Tests like the above might be possible to construct with the So that's two possible ways to test this, basically if ncc finds a |
I use the |
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.
Looks great, thanks for your work on this!
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.
Great work, thanks! 🎉
Fixes #606
incremental
option tofalse