Skip to content

Commit a63f761

Browse files
fix: add --external @ast-grep/napi to CLI build command (#350)
The CLI build was missing --external @ast-grep/napi flag, causing the bundler to inline absolute paths from the CI environment (/home/runner/work/...). This made the doctor check for @ast-grep/napi always fail on user machines. Fixes #344 Co-authored-by: sisyphus-dev-ai <[email protected]>
1 parent 7b57364 commit a63f761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"./schema.json": "./dist/oh-my-opencode.schema.json"
2424
},
2525
"scripts": {
26-
"build": "bun build src/index.ts src/google-auth.ts --outdir dist --target bun --format esm --external @ast-grep/napi && tsc --emitDeclarationOnly && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm && bun run build:schema",
26+
"build": "bun build src/index.ts src/google-auth.ts --outdir dist --target bun --format esm --external @ast-grep/napi && tsc --emitDeclarationOnly && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm --external @ast-grep/napi && bun run build:schema",
2727
"build:schema": "bun run script/build-schema.ts",
2828
"clean": "rm -rf dist",
2929
"prepublishOnly": "bun run clean && bun run build",

0 commit comments

Comments
 (0)