File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { Plugin } from "./index"
2- import { tool } from "./tool"
1+ import { Plugin } from "./index.js "
2+ import { tool } from "./tool.js "
33
44export const ExamplePlugin : Plugin = async ( ctx ) => {
55 return {
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ import type {
1212 Config ,
1313} from "@opencode-ai/sdk"
1414
15- import type { BunShell } from "./shell"
16- import { type ToolDefinition } from "./tool"
15+ import type { BunShell } from "./shell.js "
16+ import { type ToolDefinition } from "./tool.js "
1717
18- export * from "./tool"
18+ export * from "./tool.js "
1919
2020export type ProviderContext = {
2121 source : "env" | "config" | "custom" | "api"
Original file line number Diff line number Diff line change 33 "extends" : " @tsconfig/node22/tsconfig.json" ,
44 "compilerOptions" : {
55 "outDir" : " dist" ,
6- "module" : " preserve " ,
6+ "module" : " nodenext " ,
77 "declaration" : true ,
8- "moduleResolution" : " bundler " ,
8+ "moduleResolution" : " nodenext " ,
99 "lib" : [" es2022" , " dom" , " dom.iterable" ]
1010 },
1111 "include" : [" src" ]
You can’t perform that action at this time.
0 commit comments