Add rewriter:build command, and add message for when rewriter build completes successfully

This commit is contained in:
wearrrrr 2024-07-15 19:59:37 -05:00
parent d4abce1457
commit a375e46dea
2 changed files with 2 additions and 0 deletions

View file

@ -10,6 +10,7 @@
},
"scripts": {
"build": "rspack build",
"rewriter:build": "cd rewriter && sh build.sh && cd ..",
"dev": "node server.js",
"prepublish": "pnpm build",
"pub": "pnpm publish --no-git-checks --access public",

View file

@ -12,3 +12,4 @@ time wasm-opt -Oz --vacuum --dce --enable-threads --enable-bulk-memory --enable-
echo -n "self.WASM = '" > static/wasm.js
base64 -w0 < "rewriter/out/optimized.wasm" >> static/wasm.js
echo -n "';">> static/wasm.js
echo "Rewriter Build Complete!"