From bb232247d094b22d497a036c21d4c4a722700a38 Mon Sep 17 00:00:00 2001 From: Dax Date: Tue, 10 Mar 2026 13:11:36 -0400 Subject: Fix ESM imports for @opencode-ai/plugin (#16916) --- packages/plugin/src/example.ts | 4 ++-- packages/plugin/src/index.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'packages/plugin/src') diff --git a/packages/plugin/src/example.ts b/packages/plugin/src/example.ts index 94745a37b..1cf042fe9 100644 --- a/packages/plugin/src/example.ts +++ b/packages/plugin/src/example.ts @@ -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 { diff --git a/packages/plugin/src/index.ts b/packages/plugin/src/index.ts index 76370d1d5..b78bcae17 100644 --- a/packages/plugin/src/index.ts +++ b/packages/plugin/src/index.ts @@ -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" -- cgit v1.2.3