Skip to content

Commit

Permalink
refactor: fs.rm -> fs.rmdir
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao committed Mar 24, 2022
1 parent 29e44a6 commit d9354ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function build(opts) {
}).on('finish', async () => {
debug('appdmg finished!');
debug('cleaning up temp config at `%s`', specDir);
await fs.rmdir(specDir, { recursive: true, maxRetries: 2 });
await fs.rm(specDir, { recursive: true, maxRetries: 2 });
resolve(opts);
}).on('error', reject);
});
Expand Down
2 changes: 1 addition & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ describe('electron-installer-dmg', () => {

afterEach(async () => fs.unlink(`${appPath}.dmg`));

after(async () => fs.rmdir(appPath, { recursive: true }));
after(async () => fs.rm(appPath, { recursive: true }));
});
});

0 comments on commit d9354ee

Please sign in to comment.