Skip to content

Commit bce0abb

Browse files
authored
Avoid publishing tests to npm (#67)
Currently this package includes 65 KB of test files in the code published to npm. This PR adds a `files` field to `package.json` to avoid publishing these unused files. Would you also be open to removing the `src` directory and sourcemaps in published files? That would further reduce the install size significantly.
1 parent 6bf7ad9 commit bce0abb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
"import": "./index.js",
1111
"require": "./dist/main.cjs"
1212
},
13+
"files": [
14+
"dist",
15+
"src",
16+
"index.js"
17+
],
1318
"targets": {
1419
"module": false
1520
},

0 commit comments

Comments
 (0)