Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Commit

Permalink
rm index.node before calling cargo-cp-artifact
Browse files Browse the repository at this point in the history
This fixes an issue with SIGKILLs during local testing on M1 Macs.

See:
* neon-bindings/neon#911
* https://stackoverflow.com/questions/65258043/codesigning-modified-binaries-apple-silicon-m1
  • Loading branch information
CDThomas authored and ragibkl committed Aug 4, 2022
1 parent 23d0272 commit 5e4995c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/stash-rs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/stash-rs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "Node bindings for the CipherStash Rust client.",
"main": "dist/index.js",
"scripts": {
"build": "npx cargo-cp-artifact -nc index.node -- cargo build --message-format=json-render-diagnostics && npx tsc",
"build-release": "npx cargo-cp-artifact -nc index.node -- cargo build --message-format=json-render-diagnostics --release",
"build": "rm -f index.node && npx cargo-cp-artifact -nc index.node -- cargo build --message-format=json-render-diagnostics && npx tsc",
"build-release": "rm -f index.node && npx cargo-cp-artifact -nc index.node -- cargo build --message-format=json-render-diagnostics --release",
"prepublishOnly": "npm run build-release && npx tsc",
"install": "npm run build-release",
"test": "cargo test && npx jest"
Expand Down

0 comments on commit 5e4995c

Please sign in to comment.