Skip to content

Commit

Permalink
update remove dist plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanrikulu committed Dec 31, 2023
1 parent 889d6e8 commit 32ddbe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ function removeDist(options = {}) {
name: 'remove-dist',
[hook]: async () => {
const folderPath = path.join(process.cwd(), buildDir);
fs.accessSync(folderPath, fs.F_OK);
try {
fs.accessSync(folderPath, fs.F_OK);
fs.rmSync(folderPath, { recursive: true, force: true });
} catch (err) {
if (err.code !== 'ENOENT') throw err;
Expand Down

0 comments on commit 32ddbe7

Please sign in to comment.