We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0aca4ca commit 8a307a2Copy full SHA for 8a307a2
2 files changed
CHANGELOG.md
@@ -4,6 +4,7 @@
4
5
### Fixes
6
7
+- [Issue #29] - Build -f throws exception if app is open in another window
8
- [Issue #28] - App isn't merged without -f
9
10
## [0.2.1] - 2018-03-29
lib/chainlinks/builder.js
@@ -42,8 +42,14 @@ let Builder = function() {
42
43
// Remove the bin forlder if force build
44
if (payload.build.force) {
45
- shell.execSync("rm -rf " + buildPath);
46
- shouldBuild = true;
+ try {
+ shell.execSync("rm -rf " + buildPath);
47
+ shouldBuild = true;
48
+
49
+ }
50
+ catch (ex) {
51
+ reject("Cannot remove build directory. Please make sure it is not open in another window.");
52
53
}
54
55
// Create build directory if necessary
0 commit comments