Skip to content

Commit b30a882

Browse files
Add prepare and pretest lifecycle scripts to auto-build dist/ (#65)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: sridhar-mani <165501918+sridhar-mani@users.noreply.github.com>
1 parent b4cd9f5 commit b30a882

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
},
1919
"scripts": {
2020
"build": "rollup -c",
21+
"prepare": "npm run build",
2122
"prepublishOnly": "npm run build",
23+
"pretest": "npm run build",
2224
"test": "for file in $(find examples -name '*.js' -type f | sort); do echo 'Running' \"$file\"; if node \"$file\" > /dev/null 2>&1; then echo 'Success'; else echo 'Failed'; fi; done"
2325
},
2426
"repository": {

0 commit comments

Comments
 (0)