Skip to content

Commit b2415f3

Browse files
bstreamDianaSuvorova
authored andcommitted
fix: add prepublishOnly to run build before publishing
1 parent 5b1a151 commit b2415f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"test": "npm run lint && mocha --compilers js:babel-register tests --recursive",
1616
"semantic-release": "semantic-release",
1717
"commitmsg": "npm run test && commitlint -e $GIT_PARAMS",
18-
"build": "rm -fr ./dist && babel ./src --out-dir ./dist --copy-files"
18+
"build": "rm -fr ./dist && babel ./src --out-dir ./dist --copy-files",
19+
"prepublishOnly": "npm run test && npm run build"
1920
},
2021
"repository": {
2122
"type": "git",

0 commit comments

Comments
 (0)