Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

Commit 58d80e7

Browse files
committed
Specify files in package.json
Whitelist only the `lib` directory for npm publication. All other files will not be published as part of the npm package (with the exception of the entry JS file, README, LICENSE, and CHANGELOG). This will, for example, avoid publishing our future tests directory. This was inspired by the following article: https://medium.com/@jdxcode/for-the-love-of-god-dont-use-npmignore-f93c08909d8d
1 parent bc7d866 commit 58d80e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
"author": "Finn Woelm",
2323
"license": "MIT",
2424
"devDependencies": {},
25+
"files": [
26+
"/lib"
27+
],
2528
"dependencies": {
2629
"fs-extra": "^8.1.0",
2730
"next-aws-lambda": "^2.3.4",

0 commit comments

Comments
 (0)