Skip to content

Commit 5099b5d

Browse files
Merge #1038
1038: Feature: Replace "npmignore file" in favour of "files" field in package.json r=bidoubiwa a=SandunWebDev **Feature: 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 Co-authored-by: Sandun <[email protected]> Co-authored-by: Sandun <[email protected]>
2 parents c7c7c7e + a113a08 commit 5099b5d

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+
"dist",
55+
"CONTRIBUTING.md"
56+
],
5257
"lint-staged": {
5358
"**/*.{ts,tsx,js,jsx,css,scss,sass,less,md}": [
5459
"prettier --write",

0 commit comments

Comments
 (0)