diff --git a/.opencode/plugin/file-protection.ts b/.opencode/plugin/file-protection.ts index 86cccba..f511cd7 100644 --- a/.opencode/plugin/file-protection.ts +++ b/.opencode/plugin/file-protection.ts @@ -6,11 +6,12 @@ const uneditableFiles = [ ".env.local", ".env.development", ".env.production", - "src/lib/*.ts", + "**/src/lib/**.ts", "opencode.json", + "**/.opencode/**", ]; -export const FileProtectionPlugin: Plugin = async ({ client, $ }) => { +export const FileProtectionPlugin: Plugin = async () => { return { "tool.execute.before": async (input, output) => { if ( diff --git a/tsconfig.app.json b/tsconfig.app.json index 8f8c44f..7e4294d 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -24,5 +24,6 @@ "noFallthroughCasesInSwitch": true, "noUncheckedSideEffectImports": true }, - "include": ["src"] + "include": ["src"], + "exclude": ["src/lib"] }