Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions packages/plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@
"build": "tsc"
},
"exports": {
".": "./src/index.ts",
"./tool": "./src/tool.ts"
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./tool": {
"import": "./dist/tool.js",
"types": "./dist/tool.d.ts"
}
},
"files": [
"dist"
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin/src/example.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Plugin } from "./index"
import { tool } from "./tool"
import { Plugin } from "./index.js"
import { tool } from "./tool.js"

export const ExamplePlugin: Plugin = async (ctx) => {
return {
Expand Down
6 changes: 3 additions & 3 deletions packages/plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import type {
Config,
} from "@opencode-ai/sdk"

import type { BunShell } from "./shell"
import { type ToolDefinition } from "./tool"
import type { BunShell } from "./shell.js"
import { type ToolDefinition } from "./tool.js"

export * from "./tool"
export * from "./tool.js"

export type ProviderContext = {
source: "env" | "config" | "custom" | "api"
Expand Down