Add *.tsbuildinfo to auto-generated .npmignore file #3978
Labels
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
Describe the feature
If I'm not mistaken, the
tsconfig.tsbuildinfo
file generated during thejsii
build should not be part of the output package.If the
.npmignore
file does not exist, thejsii-pacmak
generates it automatically. It includes ignores for*.ts
andtsconfig.json
, but nottsconfig.tsbuildinfo
.Use Case
Following the documentation, I ended up with a bundle file containing >2 MB
tsconfig.tsbuildinfo
file, being 90% of the package size.Proposed Solution
Add
*.tsbuildinfo
here:jsii/packages/jsii-pacmak/lib/npm-modules.ts
Lines 134 to 138 in 396f612
Other Information
jsii and jsii-pacmak v1.75.0
Acknowledgements
CDK version used
Environment details (OS name and version, etc.)
any
The text was updated successfully, but these errors were encountered: