Skip to content

Commit f4ed9bc

Browse files
authored
build: run build on npm publish
1 parent 609f69f commit f4ed9bc

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
@@ -18,7 +18,8 @@
1818
},
1919
"scripts": {
2020
"build": "rollup -c",
21-
"test": "node --experimental-modules node_modules/.bin/c8 --reporter=html --reporter=text --check-coverage node --experimental-modules node_modules/.bin/mocha"
21+
"test": "node --experimental-modules node_modules/.bin/c8 --reporter=html --reporter=text --check-coverage node --experimental-modules node_modules/.bin/mocha",
22+
"prepublishOnly": "npm run build"
2223
},
2324
"repository": {
2425
"type": "git",

0 commit comments

Comments
 (0)