Skip to content

Commit 2ae75cb

Browse files
committed
build: add prepublishOnly script
1 parent 4106868 commit 2ae75cb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"_bundle": "rollup -c rollup.config.ts --configPlugin typescript",
2727
"build": "npm run _cls && npm run _bundle",
2828
"format": "prettier --write src/",
29-
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest"
29+
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest",
30+
"prepublishOnly": "npm run test && npm run build"
3031
},
3132
"repository": {
3233
"type": "git",

0 commit comments

Comments
 (0)