From 4d0d39eca424107f123a5783abc8a624b565e755 Mon Sep 17 00:00:00 2001 From: sepro Date: Tue, 21 Oct 2025 22:20:31 -0500 Subject: [PATCH] Fix build hook for Node and Bun --- hatch_build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hatch_build.py b/hatch_build.py index b30135a..fe59234 100644 --- a/hatch_build.py +++ b/hatch_build.py @@ -16,14 +16,14 @@ class CustomBuildHook(BuildHookInterface): elif shutil.which("bun"): print("Building with bun...", flush=True) - subprocess.run(["bun", "install", "--frozen-lockfile"], check=True) + subprocess.run(["bun", "install"], check=True) subprocess.run(["bun", "run", "bundle"], check=True) elif shutil.which("npm"): print("Building with npm...", flush=True) # npm is a batch file (`npm.cmd`) on windows, which requires `shell=True` requires_shell = os.name == "nt" - subprocess.run(["npm", "ci"], check=True, shell=requires_shell) + subprocess.run(["npm", "install"], check=True, shell=requires_shell) subprocess.run(["npm", "run", "bundle"], check=True, shell=requires_shell) else: