Skip to content

Commit 700c28f

Browse files
author
opencode-local
committed
fix(install): rename build script to compile
OpenCode's npm git-dependency preparation (bundled arborist/pacote) runs a nested install whenever package.json declares any of build/prepare/prepack/install/preinstall/postinstall, and it spawns bare npm without a shell, which fails with ENOENT on Windows (macOS reports too). Renaming the script avoids the trigger so plugin add github:... installs cleanly. Refs: anomalyco/opencode#59504
1 parent f99af5f commit 700c28f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"LICENSE"
3535
],
3636
"scripts": {
37-
"build": "vite build",
37+
"compile": "vite build",
3838
"watch": "vite build --watch"
3939
},
4040
"dependencies": {

0 commit comments

Comments
 (0)