Added some protection layers
This commit is contained in:
parent
13b5c06780
commit
bae8538563
|
|
@ -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 (
|
||||
|
|
|
|||
|
|
@ -24,5 +24,6 @@
|
|||
"noFallthroughCasesInSwitch": true,
|
||||
"noUncheckedSideEffectImports": true
|
||||
},
|
||||
"include": ["src"]
|
||||
"include": ["src"],
|
||||
"exclude": ["src/lib"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user