Skip to content

Commit

Permalink
chore: exclude TS files from final tarball (#23)
Browse files Browse the repository at this point in the history
Partially addresses #18

Verified that tarball (`dist/js/[email protected]`) doesn't include TS files anymore.
  • Loading branch information
echeung-amzn authored Feb 25, 2022
1 parent 6c60073 commit f43b4f7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .projenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const project = new awscdk.AwsCdkConstructLibrary({
author: "CDK Monitoring Constructs Team",
authorAddress: "[email protected]",
defaultReleaseBranch: "main",
stability: "experimental",

cdkVersion: CDK_VERSION,
cdkVersionPinning: true,
Expand Down Expand Up @@ -91,4 +92,9 @@ project.eslint.addRules({
"prettier/prettier": "error",
});

// Don't need to include the TypeScript source files in the tarball; the transpiled JS files and
// typing files are sufficient.
project.addPackageIgnore("*.ts");
project.addPackageIgnore("!*.d.ts");

project.synth();
2 changes: 1 addition & 1 deletion package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f43b4f7

Please sign in to comment.