Skip to content

Commit

Permalink
fix: Display package name when node-please-upgrade is being used (#575)
Browse files Browse the repository at this point in the history
Before: `undefined requires at least version 8.6.0 of Node, please upgrade`
After: `lint-staged requires at least version 8.6.0 of Node, please upgrade`
  • Loading branch information
julien-f authored and okonet committed Feb 2, 2019
1 parent 8c4d9c9 commit f5bed7b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions index.js
Expand Up @@ -3,11 +3,13 @@
'use strict'

const pkg = require('./package.json')
require('please-upgrade-node')({
engines: {
node: '>=8.6.0'
}
})
require('please-upgrade-node')(
Object.assign({}, pkg, {
engines: {
node: '>=8.6.0'
}
})
)

const cmdline = require('commander')
const debugLib = require('debug')
Expand Down

0 comments on commit f5bed7b

Please sign in to comment.