-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Ignore devDependencies
when generating tsconfig.json
#16659
Conversation
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/57509 |
bcac3c8
to
62b12b0
Compare
dc5c714
to
eec2ec7
Compare
b652311
to
8040cb4
Compare
devDependencies
when generating tsconfig.json
8376104
to
927d2ea
Compare
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.
Awesome.
@@ -39,7 +55,7 @@ function getTsPkgs(subRoot) { | |||
name === "@babel/compat-data" || | |||
fs.existsSync(new URL(relative + "/src/index.ts", rootURL)); | |||
if (!ret) { | |||
console.log(`Skipping ${name} for tsconfig.json`); | |||
// console.log(`Skipping ${name} for tsconfig.json`); |
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.
Is this intentional?
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.
Yeah, it was just annoying whenever we have empty folders due to changing branch 😅
I left it commented out so that we can re-enable it if we have to debug the script.
Fixes #1, Fixes #2
This PR lets us publish d.ts for Babel 8.
There is only one remaining cycle between our packages (@babel/core <> @babel/helper-module-transforms), which will go away in Babel 8 as we'll remove the dependency. This cycle doesn't affect types, so we can manually ignore it.
This PR also improves type checking time: it's now 29s for a full clean
make tscheck
and 12s for a subsequentmake tscheck
run on my machine.