fix: externalize @ast-grep/napi for cross-platform support, add installation docs

This commit is contained in:
YeonGyu-Kim
2025-12-05 01:50:02 +09:00
parent 7fc2ce62dd
commit 542c9c39b7
4 changed files with 120 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "oh-my-opencode",
"version": "0.0.0",
"version": "0.1.0",
"description": "OpenCode plugin - custom agents (oracle, librarian) and enhanced features",
"main": "dist/index.js",
"types": "dist/index.d.ts",
@@ -15,7 +15,7 @@
}
},
"scripts": {
"build": "bun build src/index.ts --outdir dist --target bun --format esm && tsc --emitDeclarationOnly",
"build": "bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi && tsc --emitDeclarationOnly",
"clean": "rm -rf dist",
"prepublishOnly": "bun run clean && bun run build",
"typecheck": "tsc --noEmit"