Skip to content

Commit 42b581f

Browse files
committed
Updated .npmignore and added prepublish script to prevent publishing without building
1 parent 9ba9802 commit 42b581f

File tree

3 files changed

+4
-34
lines changed

3 files changed

+4
-34
lines changed

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
src
2+
webpack.config.js
3+
.babelrc
4+
.gitignore
25
node_modules

package-lock.json

Lines changed: 0 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"start": "webpack --watch --mode=development",
88
"build": "webpack --mode=production",
9-
"test": "echo \"Error: no test specified\" && exit 1"
9+
"prepublish": "npm run build"
1010
},
1111
"peerDependencies": {
1212
"react": "^16.8.0"

0 commit comments

Comments
 (0)