Skip to content

Commit e158122

Browse files
committed
Remove .npmignore and instead use the files field
The npmignore meant that we were publishing both source and compiled files, along with ... everything else that wasn't ignored. While this was probably great for local debugging, it's potentially insecure and a bad practice. Instead, only publish our dist folder.
1 parent 950f571 commit e158122

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.npmignore

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

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
"author": "",
1818
"license": "MIT",
1919
"main": "dist/index.js",
20+
"files": [
21+
"dist"
22+
],
2023
"dependencies": {
2124
"express": "^4.16.4",
2225
"gm": "^1.16.0",

0 commit comments

Comments
 (0)