Skip to content

Commit

Permalink
Fix allow listed files for what to include in npm package
Browse files Browse the repository at this point in the history
When #296 was merged, the list of files to include in `package.json` was not updated. This PR fixes that.

The `.npmignore` file is also removed because I find it causes some unexpected behaviors like ignoring the contents of `.gitignore`. It's a bit of extra work to maintain the allow listed `files` but it's generally safer.
  • Loading branch information
colincasey committed Feb 29, 2024
1 parent 26e84f2 commit 02f27cb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,9 @@
"main": "./dist/cookie/index.js",
"types": "./dist/cookie/index.d.ts",
"files": [
"dist/*.js",
"dist/*.d.ts",
"dist/cookie/*.js",
"dist/cookie/*.d.ts"
"dist/**/*.js",
"dist/**/*.d.ts",
"!__tests__"
],
"scripts": {
"build": "npm run clean && tsc",
Expand Down

0 comments on commit 02f27cb

Please sign in to comment.