Skip to content

Commit f43b4f7

Browse files
author
Eugene Cheung
authored
chore: exclude TS files from final tarball (#23)
Partially addresses #18 Verified that tarball (`dist/js/[email protected]`) doesn't include TS files anymore.
1 parent 6c60073 commit f43b4f7

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.npmignore

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const project = new awscdk.AwsCdkConstructLibrary({
99
author: "CDK Monitoring Constructs Team",
1010
authorAddress: "[email protected]",
1111
defaultReleaseBranch: "main",
12+
stability: "experimental",
1213

1314
cdkVersion: CDK_VERSION,
1415
cdkVersionPinning: true,
@@ -91,4 +92,9 @@ project.eslint.addRules({
9192
"prettier/prettier": "error",
9293
});
9394

95+
// Don't need to include the TypeScript source files in the tarball; the transpiled JS files and
96+
// typing files are sufficient.
97+
project.addPackageIgnore("*.ts");
98+
project.addPackageIgnore("!*.d.ts");
99+
94100
project.synth();

package.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)