diff --git a/package.json b/package.json index 10a215b2..8c08a23c 100644 --- a/package.json +++ b/package.json @@ -9,13 +9,13 @@ "build": "tsc -b && vite build", "lint": "eslint .", "preview": "vite preview", - "_predev": "npm run build:wasm && cp src/generated/wasm_exec.js public/ && cp src/generated/main.wasm public/", - "wasmbuild": "npm run build:wasm && npm run build:licenses", - "build:licenses": "mkdir -p src/generated && tsx scripts/genLicenseList.ts src/generated/licenses.json", - "build:wasm": "cp \"$(go env GOROOT)/misc/wasm/wasm_exec.js\" public && GOOS=js GOARCH=wasm go build -o public/main.wasm src/wasm/main.go", + "_predev": "npm run build_wasm && cp src/generated/wasm_exec.js public/ && cp src/generated/main.wasm public/", + "_prebuild": "npm run build_wasm && npm run build_licenses", + "build_licenses": "mkdir -p src/generated && tsx scripts/genLicenseList.ts src/generated/licenses.json", + "build_wasm": "cp \"$(go env GOROOT)/misc/wasm/wasm_exec.js\" public && GOOS=js GOARCH=wasm go build -o public/main.wasm src/wasm/main.go", "serve": "rm -rf dist; npm run build && http-server dist", "test": "jest --passWithNoTests", - "deploy": "gh-pages -u 'Deploy Bot ' -d dist", + "gdeploy": "gh-pages -u 'Deploy Bot ' -d dist", "_postinstall": "patch-package", "release": "release-it" },