| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cbc29fa commit e3c95e1
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,14 +8,22 @@ module.exports = function prepareForBuild() { | |||
| 8 | 8 | console.log("[nodegit] Running pre-install script"); | |
| 9 | 9 | ||
| 10 | 10 | return exec("npm -v") | |
| 11 | - .then(function(npmVersion) { | ||
| 12 | - if (npmVersion.split(".")[0] < 3) { | ||
| 13 | - console.log("[nodegit] npm@2 installed, pre-loading required packages"); | ||
| 14 | - return exec("npm install --ignore-scripts"); | ||
| 15 | - } | ||
| 11 | + .then( | ||
| 12 | + function(npmVersion) { | ||
| 13 | + if (npmVersion.split(".")[0] < 3) { | ||
| 14 | + console.log( | ||
| 15 | + "[nodegit] npm@2 installed, pre-loading required packages" | ||
| 16 | + ); | ||
| 17 | + return exec("npm install --ignore-scripts"); | ||
| 18 | + } | ||
| 16 | 19 | ||
| 17 | - return Promise.resolve(); | ||
| 18 | - }) | ||
| 20 | + return Promise.resolve(); | ||
| 21 | + }, | ||
| 22 | + function() { | ||
| 23 | + // We're installing via yarn, so don't | ||
| 24 | + // care about compability with npm@2 | ||
| 25 | + } | ||
| 26 | + ) | ||
| 19 | 27 | .then(function() { | |
| 20 | 28 | if (buildFlags.isGitRepo) { | |
| 21 | 29 | var submodules = require(local("submodules")); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments