14
14
],
15
15
"scripts" : {
16
16
"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" ,
19
19
"build:release:all" : " run-p build:release build:release:x64 build:release:linux && pnpm move-binding" ,
20
20
"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" ,
24
24
"move-binding" : " node scripts/move-binding"
25
25
},
26
26
"homepage" : " https://rspack.dev" ,
27
27
"bugs" : " https://github.com/web-infra-dev/rspack/issues" ,
28
28
"repository" : " web-infra-dev/rspack" ,
29
29
"devDependencies" : {
30
30
"@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"
33
34
},
34
35
"napi" : {
35
36
"name" : " rspack"
36
37
},
37
38
"optionalDependencies" : {
38
39
"@rspack/binding-darwin-arm64" : " workspace:*" ,
39
- "@rspack/binding-linux-x64-gnu" : " workspace:*" ,
40
40
"@rspack/binding-darwin-x64" : " workspace:*" ,
41
+ "@rspack/binding-linux-x64-gnu" : " workspace:*" ,
41
42
"@rspack/binding-win32-x64-msvc" : " workspace:*"
42
43
}
43
44
}
0 commit comments