Skip to content

Commit 766b8bf

Browse files
committed
Replace npmignore file, in favour of "files" field in package.json
- Removed .npmignore file. - Added "files" filed to package.json with relevant file/folder names. - Checked final npm tarball contents are similar with "file" field usage, compare to before. (Using npm pack) Related Issue : #1029
1 parent c7c7c7e commit 766b8bf

File tree

2 files changed

+5
-29
lines changed

2 files changed

+5
-29
lines changed

.npmignore

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

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@
4949
"lint:fix": "eslint --ext .js,.ts,.tsx --fix .",
5050
"typingsheader": "node scripts/build.js"
5151
},
52+
"files": [
53+
"src",
54+
"CONTRIBUTING.md",
55+
"bors.toml"
56+
],
5257
"lint-staged": {
5358
"**/*.{ts,tsx,js,jsx,css,scss,sass,less,md}": [
5459
"prettier --write",

0 commit comments

Comments
 (0)