Skip to content

Commit 1ebb369

Browse files
committed
fix: align package exports and deps with opencode plugin loader conventions
1 parent 25d8749 commit 1ebb369

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
"types": "./dist/index.d.ts",
1212
"import": "./dist/index.js"
1313
},
14+
"./server": {
15+
"types": "./dist/index.d.ts",
16+
"import": "./dist/index.js"
17+
},
1418
"./tui": {
1519
"types": "./dist/tui/index.d.ts",
1620
"import": "./tui/index.tsx"
1721
}
1822
},
19-
"oc-plugin": [
20-
"server",
21-
"tui"
22-
],
2323
"files": [
2424
"dist/",
2525
"index.ts",
@@ -67,16 +67,16 @@
6767
"author": "tarquinen",
6868
"license": "AGPL-3.0-or-later",
6969
"peerDependencies": {
70-
"@opencode-ai/plugin": ">=1.2.0"
70+
"@opencode-ai/plugin": ">=1.2.0",
71+
"@opentui/core": ">=0.1.0",
72+
"@opentui/solid": ">=0.1.0",
73+
"solid-js": ">=1.9.0"
7174
},
7275
"dependencies": {
7376
"@anthropic-ai/tokenizer": "^0.0.4",
7477
"@opencode-ai/sdk": "^1.3.2",
75-
"@opentui/core": "0.1.92",
76-
"@opentui/solid": "0.1.92",
7778
"fuzzball": "^2.2.3",
7879
"jsonc-parser": "^3.3.1",
79-
"solid-js": "1.9.11",
8080
"zod": "^4.3.6"
8181
},
8282
"devDependencies": {

scripts/verify-package.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ if (packageJson.exports?.["."]?.import !== "./dist/index.js") {
7777
fail("expected package.json exports['.'].import to be './dist/index.js'")
7878
}
7979

80+
if (packageJson.exports?.["./server"]?.import !== "./dist/index.js") {
81+
fail("expected package.json exports['./server'].import to be './dist/index.js'")
82+
}
83+
8084
const packOutput = execFileSync("npm", ["pack", "--dry-run", "--json"], {
8185
cwd: repoRoot,
8286
encoding: "utf8",

0 commit comments

Comments
 (0)