Skip to content

Commit c4c20a3

Browse files
authored
chore: node binding cross env (#2327)
* chore: add cross-env * chore: chageset * fix: cross_env to cross-env
1 parent 2486b2a commit c4c20a3

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

.changeset/tame-mirrors-act.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@rspack/binding": patch
3+
---
4+
5+
add cross-env

crates/node_binding/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,31 @@
1414
],
1515
"scripts": {
1616
"build:debug": "node scripts/build.js",
17-
"build:debug:x64": "RUST_TARGET=x86_64-apple-darwin node scripts/build.js",
18-
"build:debug:linux": "RUST_TARGET=x86_64-unknown-linux-gnu node scripts/build.js",
17+
"build:debug:x64": "cross-env RUST_TARGET=x86_64-apple-darwin node scripts/build.js",
18+
"build:debug:linux": "cross-env RUST_TARGET=x86_64-unknown-linux-gnu node scripts/build.js",
1919
"build:release:all": "run-p build:release build:release:x64 build:release:linux && pnpm move-binding",
2020
"build:release": "node scripts/build.js --release",
21-
"build:release:x64": "RUST_TARGET=x86_64-apple-darwin node scripts/build.js --release",
22-
"build:release:linux": "RUST_TARGET=x86_64-unknown-linux-gnu node scripts/build.js --release",
23-
"build:release:win": "RUST_TARGET=x86_64-pc-windows-msvc node scripts/build.js --release",
21+
"build:release:x64": "cross-env RUST_TARGET=x86_64-apple-darwin node scripts/build.js --release",
22+
"build:release:linux": "cross-env RUST_TARGET=x86_64-unknown-linux-gnu node scripts/build.js --release",
23+
"build:release:win": "cross-env RUST_TARGET=x86_64-pc-windows-msvc node scripts/build.js --release",
2424
"move-binding": "node scripts/move-binding"
2525
},
2626
"homepage": "https://rspack.dev",
2727
"bugs": "https://github.com/web-infra-dev/rspack/issues",
2828
"repository": "web-infra-dev/rspack",
2929
"devDependencies": {
3030
"@napi-rs/cli": "2.14.2",
31-
"why-is-node-running": "2.2.1",
32-
"npm-run-all": "4.1.5"
31+
"cross-env": "^7.0.3",
32+
"npm-run-all": "4.1.5",
33+
"why-is-node-running": "2.2.1"
3334
},
3435
"napi": {
3536
"name": "rspack"
3637
},
3738
"optionalDependencies": {
3839
"@rspack/binding-darwin-arm64": "workspace:*",
39-
"@rspack/binding-linux-x64-gnu": "workspace:*",
4040
"@rspack/binding-darwin-x64": "workspace:*",
41+
"@rspack/binding-linux-x64-gnu": "workspace:*",
4142
"@rspack/binding-win32-x64-msvc": "workspace:*"
4243
}
4344
}

pnpm-lock.yaml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)