Skip to content

Commit 373c37f

Browse files
committed
fix: Build code on npm publish
Fixes #70
1 parent 71e3a50 commit 373c37f

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
@@ -14,7 +14,8 @@
1414
"lint": "eslint . --cache --fix",
1515
"pretest": "npm run lint",
1616
"posttest": "npm run format",
17-
"format": "prettier --loglevel warn --write \"**/*.{js,md}\""
17+
"format": "prettier --loglevel warn --write \"**/*.{js,md}\"",
18+
"prepublishOnly": "npm run build"
1819
},
1920
"engines": {
2021
"node": ">=10"

0 commit comments

Comments
 (0)