Skip to content

Commit

Permalink
fix: declare compat in package.engines and fix node-please-upgrade usage
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 committed Feb 1, 2019
1 parent d5e738d commit c9be228
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 1 addition & 5 deletions index.js
Expand Up @@ -3,11 +3,7 @@
'use strict'

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

const cmdline = require('commander')
const debugLib = require('debug')
Expand Down
3 changes: 3 additions & 0 deletions package.json
Expand Up @@ -10,6 +10,9 @@
"Suhas Karanth <sudo.suhas@gmail.com>"
],
"bin": "index.js",
"engines": {
"node": ">=8.6.0"
},
"files": ["index.js", "src"],
"scripts": {
"cz": "git-cz",
Expand Down

0 comments on commit c9be228

Please sign in to comment.