We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ba257d commit b9a9632Copy full SHA for b9a9632
lib/prebuild.mjs
@@ -128,10 +128,12 @@ function compile(...args){
128
else if (isFallback) console.log("\nAttempting to rebuild locally...")
129
else console.warn(`cargo build ${[optimization, features].filter(s=>s).join(' ')}`)
130
131
- child_process.spawnSync(
+ let {status} = child_process.spawnSync(
132
`cargo-cp-artifact -nc ${BINARY_PATH} -- cargo build --message-format=json-render-diagnostics ${optimization} ${features}`,
133
{shell:true, stdio:'inherit'}
134
)
135
+
136
+ process.exit(status)
137
}
138
139
async function usage(){
0 commit comments