fix: copilot not working (#3425)

This commit is contained in:
Alex Yang authored and GitHub committed 2023-07-28 00:28:21 +00:00
1 parent aa69a7cad2
commit f9929ebd61
11 files changed
+165 -181

No files matched your search

+1 -1
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',
});