Skip to content

Commit

Permalink
build: fix npm package, redact postinstall script before npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
medfreeman committed Jan 29, 2024
1 parent f914da7 commit b9a905b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
],
"main": "target/wasm32-wasi/release/swc_plugin_add_import_extension.wasm",
"scripts": {
"prepublishOnly": "pnpm build:release && pnpm pkg:redact-engines",
"prepublishOnly": "pnpm build:release && pnpm pkg:redact-engines && pnpm pkg:redact-postinstall",
"postinstall": "cargo install cargo-run-bin && cargo bin --install",
"build:release": "cargo prepublish --release",
"pkg:redact-engines": "pnpm json -I -f package.json -e 'this.engines=undefined'",
"pkg:redact-postinstall": "pnpm json -I -f package.json -e 'this.scripts.postinstall=undefined'",
"test": "pnpm run test:lib && pnpm run test:e2e",
"test:lib": "cargo test --release",
"test:e2e": "pnpm build:release && pnpm test --filter=example-* --workspace-concurrency=1",
Expand Down

0 comments on commit b9a905b

Please sign in to comment.