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(