diff --git a/src/index.ts b/src/index.ts index a249ce58..09ff2f08 100644 --- a/src/index.ts +++ b/src/index.ts @@ -192,7 +192,7 @@ export class TypeScriptPlugin { // copy development dependencies during packaging if (isPackaging) { if (fs.existsSync(outModulesPath)) { - fs.unlinkSync(outModulesPath) + fs.removeSync(outModulesPath) } fs.copySync(