diff --git a/lib/extract-dependency.js b/lib/extract-dependency.js index 9010eeab..9c446c56 100644 --- a/lib/extract-dependency.js +++ b/lib/extract-dependency.js @@ -16,6 +16,9 @@ module.exports = function extractDependency (pkg, branchPrefix, branch) { return {name, range, type, version, prefix} }) })) + console.log('trying to find dependency version') + console.log(allDependencies) + console.log(branch) return _.find(allDependencies, (dependency) => { return branch === branchPrefix + dependency.name + '-' + dependency.version diff --git a/lib/ignores.js b/lib/ignores.js index a9401b66..f7ad0e87 100644 --- a/lib/ignores.js +++ b/lib/ignores.js @@ -1,7 +1,7 @@ const fs = require('fs') module.exports = function ignores () { const ignoreFile = '.gitignore' - if (!fs.fileExistsSync(ignoreFile)) { + if (!fs.existsSync(ignoreFile)) { return [] } diff --git a/update.js b/update.js index d63d468b..28c5b65e 100755 --- a/update.js +++ b/update.js @@ -10,7 +10,7 @@ const relative = require('require-relative') const fg = require('fast-glob') const config = require('./lib/config') -const ignores = require('./lib/ignores') +const getIgnores = require('./lib/ignores') const extractDependency = require('./lib/extract-dependency') const hasLockfileCommit = require('./lib/git-helpers').hasLockfileCommit