Skip to content

Commit e445ef0

Browse files
committed
add prepublishOnly script
This ensures that we build the project before releasing.
1 parent d802e0d commit e445ef0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"swcify": "swc ./src/index.ts --out-dir ./dist",
1414
"build": "npm run swcify",
1515
"dev": "npm run swcify -- --watch",
16-
"postbuild": "tsc --emitDeclarationOnly"
16+
"postbuild": "tsc --emitDeclarationOnly",
17+
"prepublishOnly": "npm run build"
1718
},
1819
"prettier": {
1920
"printWidth": 100,

0 commit comments

Comments
 (0)