Skip to content

Commit 5e2aed7

Browse files
build should fail if npm build fails
1 parent 952dd72 commit 5e2aed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/js/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ fn main() {
7272
.current_dir(&ts_dir)
7373
.status();
7474
if !status.as_ref().map(|s| s.success()).unwrap_or(false) {
75-
println!("cargo:warning=tsjs: npm run build failed; will try fallback if allowed");
75+
panic!("tsjs: npm run build:custom failed - refusing to use stale bundle");
7676
}
7777
}
7878
}

0 commit comments

Comments
 (0)