We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6e97a6 commit 4f6ec24Copy full SHA for 4f6ec24
2 files changed
CHANGELOG.md
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
### Added
11
12
- Warning about unusable Node version (less than v10.0.0)
13
+- Wrapper to check if directory exists before removing with `rimraf`
14
15
### Changed
16
src/util.ts
@@ -49,7 +49,11 @@ export const cleanupError = async (
49
// * Application Directory
50
const root = path.resolve(applicationName);
51
52
- await executeCommand("rimraf", [root]);
+ const rootExists = await fs.pathExists(root);
53
+
54
+ if (rootExists) {
55
+ await executeCommand("rimraf", [root]);
56
+ }
57
} catch (error) {
58
throw new Error(error);
59
}
0 commit comments