Skip to content

Commit

Permalink
Set minimum Node version to 12.x.x
Browse files Browse the repository at this point in the history
Node 12 has been out for a while now and since this is a standalone tool (not a library that’s used as a dependency of some larger application) there’s no real reason to support old Node versions.

As a bonus, Node 12 has `Array.prototype.flat()` and `Array.prototype.flatMap()` so now we can drop the `core-js` dependency.
  • Loading branch information
brandonweiss committed Oct 23, 2019
1 parent 28b03b2 commit fc712f7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
language: node_js

node_js:
- "8"
- "10"
- "12"
2 changes: 0 additions & 2 deletions lib/prompt.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import "core-js/features/array/flat"
import "core-js/features/array/flat-map"
import glob from "glob"
import Configuration from "./configuration"
import bashFunction from "./bash/function"
Expand Down
5 changes: 0 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"test": "test"
},
"engines": {
"node": ">= 8"
"node": ">= 12"
},
"keywords": [
"bash",
Expand All @@ -32,7 +32,6 @@
"np": "^5.1.1"
},
"dependencies": {
"core-js": "^3.3.3",
"dedent": "^0.7.0",
"esm": "^3.2.25",
"glob": "^7.1.5",
Expand All @@ -42,9 +41,7 @@
},
"ava": {
"require": [
"esm",
"core-js/features/array/flat",
"core-js/features/array/flat-map"
"esm"
]
},
"esm": {
Expand Down

0 comments on commit fc712f7

Please sign in to comment.