Browse Source

Several more possible issues with missing package.json

pull/1243/head
jlukic 10 years ago
parent
commit
367ffb9fe5
1 changed files with 3 additions and 1 deletions
  1. 4
      gulpfile.js

4
gulpfile.js

@ -93,7 +93,9 @@ try {
// try to load json // try to load json
var var
config = require(defaults.files.config), config = require(defaults.files.config),
package = require(defaults.files.npm)
package = (fs.existsSync(defaults.files.npm))
? require(defaults.files.npm)
: false
; ;
} }
catch(error) { catch(error) {

Loading…
Cancel
Save