Skip to content

Commit

Permalink
build(files): used the files property to define files to include in t…
Browse files Browse the repository at this point in the history
…he package

rather than excluding with the `.npmignore` file

BREAKING CHANGE: the use of the `files` property prevents inclusion of files into the package that
are not listed. those files are not part of the intended public api, so this should be effectively
non-breaking
  • Loading branch information
travi committed Sep 24, 2023
1 parent 3aea2ae commit 15d7c6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .npmignore

This file was deleted.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@
"prepare": "husky install",
"lint:publish": "publint --strict"
},
"files": [
"./lib/",
"./index.d.ts",
"./index.d.mts"
],
"publishConfig": {
"access": "public",
"provenance": true
Expand Down

0 comments on commit 15d7c6b

Please sign in to comment.