Skip to content

Commit 15d7c6b

Browse files
committed
build(files): used the files property to define files to include in the 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
1 parent 3aea2ae commit 15d7c6b

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

.npmignore

Lines changed: 0 additions & 13 deletions
This file was deleted.

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@
7070
"prepare": "husky install",
7171
"lint:publish": "publint --strict"
7272
},
73+
"files": [
74+
"./lib/",
75+
"./index.d.ts",
76+
"./index.d.mts"
77+
],
7378
"publishConfig": {
7479
"access": "public",
7580
"provenance": true

0 commit comments

Comments
 (0)