Skip to content

Commit

Permalink
trim down contents of tarball
Browse files Browse the repository at this point in the history
The tarball we publish is essentially the contents of the repository minus `node_modules`. That is it includes config files for TS, Jest, ESLint etc.

Set `paths` in `package.json` to only include `lib` in the tarball. Furthermore, remove `__mock__` directories, as we do `__snapshots__`.
  • Loading branch information
akash1810 committed Feb 4, 2021
1 parent 0828903 commit 6e15329
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "0.32.0",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"lib"
],
"repository": "github:guardian/cdk",
"scripts": {
"build": "tsc",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
"outDir": "lib",
},
"include": ["src/**/*"],
"exclude": ["node_modules", "test", "src/**/*.test.ts", "src/**/__snapshots__/**"]
"exclude": ["node_modules", "test", "src/**/*.test.ts", "src/**/__snapshots__/**", "src/**/__mocks__/**"]
}

0 comments on commit 6e15329

Please sign in to comment.