From 7ddba70a6e71f8d393e397a51ae8b20a35cab52a Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Mon, 3 Oct 2022 10:42:45 -0700 Subject: [PATCH] Don't delete README --- scripts/produceLKG.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/produceLKG.ts b/scripts/produceLKG.ts index d722942f8ddfb..5a304d4153500 100644 --- a/scripts/produceLKG.ts +++ b/scripts/produceLKG.ts @@ -13,7 +13,7 @@ const copyright = fs.readFileSync(path.join(__dirname, "../CopyrightNotice.txt") async function produceLKG() { console.log(`Building LKG from ${source} to ${dest}`); - await del(dest); + await del(`${dest.replace(/\\/g, "/")}/**`, { ignore: ["**/README.md"] }); await fs.mkdirp(dest); await copyLibFiles(); await copyLocalizedDiagnostics();