feat: IS_PRIMOP

This commit is contained in:
2026-01-02 23:07:43 +08:00
parent f1670e8397
commit 073c95f2c3
7 changed files with 307 additions and 139 deletions

View File

@@ -1,6 +1,6 @@
use std::process::Command;
use std::path::Path;
use std::env;
use std::path::Path;
use std::process::Command;
fn main() {
let runtime_ts_dir = Path::new("runtime-ts");
@@ -17,7 +17,11 @@ fn main() {
if !runtime_ts_dir.join("node_modules").exists() {
println!("Installing npm dependencies...");
let npm_cmd = if cfg!(target_os = "windows") { "npm.cmd" } else { "npm" };
let npm_cmd = if cfg!(target_os = "windows") {
"npm.cmd"
} else {
"npm"
};
let status = Command::new(npm_cmd)
.arg("install")
.current_dir(runtime_ts_dir)
@@ -30,7 +34,11 @@ fn main() {
}
println!("Running TypeScript type checking...");
let npm_cmd = if cfg!(target_os = "windows") { "npm.cmd" } else { "npm" };
let npm_cmd = if cfg!(target_os = "windows") {
"npm.cmd"
} else {
"npm"
};
let status = Command::new(npm_cmd)
.arg("run")
.arg("typecheck")