diff --git a/apps/playground-js/reset.js b/apps/playground-js/reset.js index 541ca500f..0ae96d676 100644 --- a/apps/playground-js/reset.js +++ b/apps/playground-js/reset.js @@ -13,7 +13,7 @@ function deleteSCNArtifacts() { fs.unlinkSync('./components.json'); // delete './src/lib/components' directory - fs.rmdirSync('./src/lib/components', { recursive: true }); + fs.rmSync('./src/lib/components', { recursive: true }); // delete './src/lib/utils.js' file fs.unlinkSync('./src/lib/utils.js'); diff --git a/apps/playground-ts/reset.js b/apps/playground-ts/reset.js index b06106543..1fd7560ee 100644 --- a/apps/playground-ts/reset.js +++ b/apps/playground-ts/reset.js @@ -13,7 +13,7 @@ function deleteSCNArtifacts() { fs.unlinkSync("./components.json"); // delete './src/lib/components' directory - fs.rmdirSync("./src/lib/components", { recursive: true }); + fs.rmSync("./src/lib/components", { recursive: true }); // delete './src/lib/utils.ts' file fs.unlinkSync("./src/lib/utils.ts");