Skip to content

Commit 16dfdf1

Browse files
committed
fix: change pnpm to npm for github envinronment
1 parent 0611484 commit 16dfdf1

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

api/build.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ use std::process::Command;
66
fn main() {
77
let frontend_dir = PathBuf::from("../frontend");
88
if frontend_dir.exists() {
9-
let pnpm = if cfg!(target_os = "windows") {
10-
"pnpm.cmd"
9+
let npm = if cfg!(target_os = "windows") {
10+
"npm.cmd"
1111
} else {
12-
"pnpm"
12+
"npm"
1313
};
14-
let install_status = Command::new(pnpm)
14+
let install_status = Command::new(npm)
1515
.args(["install"])
1616
.current_dir(&frontend_dir)
1717
.status()
18-
.expect("failed to run pnpm install");
18+
.expect("failed to run npm install");
1919
if !install_status.success() {
20-
panic!("pnpm install failed");
20+
panic!("npm install failed");
2121
}
2222

23-
let status = Command::new(pnpm)
23+
let status = Command::new(npm)
2424
.args(["run", "build"])
2525
.current_dir(&frontend_dir)
2626
.status()

0 commit comments

Comments
 (0)