Skip to content

Commit

Permalink
Ignore missing directories when cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
oojacoboo committed Oct 8, 2023
1 parent 2217132 commit 693aa09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ const removeAllZapierFiles = () => {
// Remove all the directories
directories.forEach((dir) => {
try {
fs.rmdirSync(`${process.cwd()}/${dir}`, { recursive: true });
fs.rmSync(`${process.cwd()}/${dir}`, { recursive: true, force: true });
} catch (e) {
throw new Error(`Unable to remove directory: ${dir}: ${e.message}`);
}
Expand Down

0 comments on commit 693aa09

Please sign in to comment.