mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-02 02:11:06 +00:00
Try to fix tests on windows again
This commit is contained in:
parent
9369ae9522
commit
9eb63fd0df
@ -88,7 +88,14 @@ fn babel() -> PathBuf {
|
|||||||
|
|
||||||
INIT.call_once(|| {
|
INIT.call_once(|| {
|
||||||
if !me.exists() {
|
if !me.exists() {
|
||||||
run(Command::new("npm")
|
let mut npm = if cfg!(windows) {
|
||||||
|
let mut n = Command::new("cmd");
|
||||||
|
n.arg("/c").arg("npm");
|
||||||
|
n
|
||||||
|
} else {
|
||||||
|
Command::new("npm")
|
||||||
|
};
|
||||||
|
run(npm
|
||||||
.arg("install")
|
.arg("install")
|
||||||
.arg("babel-cli")
|
.arg("babel-cli")
|
||||||
.arg("babel-preset-env")
|
.arg("babel-preset-env")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user