| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -110,12 +110,15 @@ function build() { | |||
| 110 | 110 | target = "--target=" + nwVersion; | |
| 111 | 111 | } | |
| 112 | 112 | ||
| 113 | - builder = path.resolve(".", "node_modules", ".bin", builder); | ||
| 114 | - builder = builder.replace(/\s/g, "\\$&"); | ||
| 115 | - var cmd = [prefix, builder, "rebuild", target, debug, distUrl] | ||
| 116 | - .join(" ").trim(); | ||
| 113 | + return exec("npm install " + builder) | ||
| 114 | + .then(function() { | ||
| 115 | + builder = path.resolve(".", "node_modules", ".bin", builder); | ||
| 116 | + builder = builder.replace(/\s/g, "\\$&"); | ||
| 117 | + var cmd = [prefix, builder, "rebuild", target, debug, distUrl] | ||
| 118 | + .join(" ").trim(); | ||
| 117 | 119 | ||
| 118 | - return exec(cmd, opts) | ||
| 120 | + return exec(cmd, opts); | ||
| 121 | + }) | ||
| 119 | 122 | .then(function() { | |
| 120 | 123 | console.info("[nodegit] Compilation complete."); | |
| 121 | 124 | console.info("[nodegit] Completed installation successfully."); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments