We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 705e3db commit 62ecbabCopy full SHA for 62ecbab
1 file changed
crates/hm-dsl-engine/build.rs
@@ -7,7 +7,6 @@
7
)]
8
9
use std::env;
10
-use std::fs;
11
use std::path::{Path, PathBuf};
12
use std::process::Command;
13
@@ -22,17 +21,10 @@ fn main() {
22
21
let esbuild = find_esbuild(&manifest_dir);
23
24
let Some(esbuild) = esbuild else {
25
- eprintln!(
26
- "cargo:warning=esbuild not found; writing stub bundles. \
27
- Run `npm ci` in crates/hm-dsl-engine/harmont-ts/ for real bundles."
+ panic!(
+ "esbuild not found.\
+ Install it or run `npm ci` in crates/hm-dsl-engine/harmont-ts/ for generating js bundles before building the crate."
28
);
29
- fs::write(out_dir.join("harmont-index.mjs"), "// stub\nexport {};").unwrap();
30
- fs::write(
31
- out_dir.join("harmont-toolchains.mjs"),
32
- "// stub\nexport {};",
33
- )
34
- .unwrap();
35
- return;
36
};
37
38
bundle(
0 commit comments