From a1098de63f4f36b7ece330f53b9384f7de2bdafa Mon Sep 17 00:00:00 2001 From: Douwe <112631340+douwe-rm@users.noreply.github.com> Date: Wed, 5 Oct 2022 17:26:55 +0200 Subject: [PATCH] fix: Ensure to remove build directory (#282) --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index b6100044..90f95a2e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -228,7 +228,7 @@ export class TypeScriptPlugin { // copy development dependencies during packaging if (isPackaging) { if (fs.existsSync(outModulesPath)) { - fs.unlinkSync(outModulesPath) + fs.removeSync(outModulesPath) } fs.copySync(