fix: copilot not working (#3425)

This commit is contained in:
Alex Yang
2023-07-27 17:28:21 -07:00
committed by GitHub
parent aa69a7cad2
commit f9929ebd61
11 changed files with 165 additions and 181 deletions

View File

@@ -167,7 +167,7 @@ await build({
if (!existsSync(outDir)) {
await mkdir(outDir, { recursive: true });
}
const file = await open(pluginListJsonPath, 'w+', 0o777);
const file = await open(pluginListJsonPath, 'as+', 0o777);
const txt = await file.readFile({
encoding: 'utf-8',
});