Skip to content

Commit 70d8674

Browse files
committed
[Issue #13] - html-to-app fails if out-of-source build, with -f...
1 parent 67e66c4 commit 70d8674

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Fixes
66

7+
- [Issue #13] - html-to-app fails if out-of-source build, with -f, and dist folder already existing
78
- [Issue #12] - html-to-app -c should kill program after creating config file
89

910
## [0.1.0] - 2018-03-26

lib/chainlinks/builder.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,13 @@ let Builder = function() {
4444
shell.execSync("rm -rf bin");
4545
}
4646

47+
// Create build directory if necessary
48+
if (!fs.existsSync(buildPath)) {
49+
this.binCmd("mkdir " + buildPath, false);
50+
}
51+
4752
// Install
48-
if (this.binCmd("mkdir " + buildPath, false) &&
53+
if (
4954
this.binCmd(this.installCmd) &&
5055
this.binCmd(this.cleanupCmd)) {
5156

0 commit comments

Comments
 (0)