Skip to content

Commit

Permalink
chore: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
janl committed Apr 16, 2018
1 parent d2dbf50 commit 8f28bbe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions lib/extract-dependency.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/ignores.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const fs = require('fs')
module.exports = function ignores () {
const ignoreFile = '.gitignore'
if (!fs.fileExistsSync(ignoreFile)) {
if (!fs.existsSync(ignoreFile)) {
return []
}

const ignoreContents = fs.readFileSync(ignoreFile)
return ignoreFile.split('\n') || []
return ignoreContents.split('\n') || []
}
2 changes: 1 addition & 1 deletion update.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8f28bbe

Please sign in to comment.