From 83502f5f0c5e66f572f64b0dfc796a16b96b9175 Mon Sep 17 00:00:00 2001 From: turenlong Date: Thu, 20 Jul 2023 11:38:02 +0800 Subject: [PATCH] fix: remove env folder to avoid cipher text is broken issue --- packages/api2teams/src/parser.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/api2teams/src/parser.ts b/packages/api2teams/src/parser.ts index 80a0446157..a03ed34ab6 100644 --- a/packages/api2teams/src/parser.ts +++ b/packages/api2teams/src/parser.ts @@ -23,6 +23,12 @@ export async function parseApi(yaml: string, options: CliOptions) { recursive: true, force: true }); + + // Remove env folder to avoid cipher text is broken issue + await fs.rm(path.join(options.output, 'env'), { + recursive: true, + force: true + }); } else { const output = options.output; await fs.mkdir(output, { recursive: true });