Skip to content

Commit 4e4a57d

Browse files
committed
fix: make plugin installable from git via source entry and prepack
OpenClaw's git plugin install clones the repo, runs npm install --omit=dev, and validates the extension entry exists. Pointing the entry at ./index.ts matches the official provider plugins (chutes/opencode) and lets the host load the TS source when no built dist artifact is present; prepack keeps the published npm tarball carrying the built dist.
1 parent f790ced commit 4e4a57d

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"build": "tsc -p tsconfig.json",
1616
"typecheck": "tsc -p tsconfig.json --noEmit",
1717
"test": "vitest run",
18-
"clean": "rimraf dist"
18+
"clean": "rimraf dist",
19+
"prepack": "npm run build"
1920
},
2021
"keywords": [
2122
"openclaw",
@@ -25,9 +26,14 @@
2526
"llm",
2627
"provider"
2728
],
29+
"files": [
30+
"dist",
31+
"openclaw.plugin.json",
32+
"README.md"
33+
],
2834
"openclaw": {
2935
"extensions": [
30-
"./dist/index.js"
36+
"./index.ts"
3137
],
3238
"providers": [
3339
"commandcode"

0 commit comments

Comments
 (0)