Skip to content

Commit

Permalink
chore!: drop Node 6 support (#1461)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Oct 27, 2019
1 parent cb64329 commit 2ba8ce0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
@@ -1,11 +1,10 @@
language: node_js

node_js:
- "6"
- "8"
- "10"
# - "11" TODO: add 11 in April when 12 goes live.
- "node"
- "12"
- "13"

os:
- linux
Expand Down
4 changes: 4 additions & 0 deletions yargs.js
@@ -1,5 +1,9 @@
'use strict'

// an async function fails early in Node.js versions prior to 8.
async function requiresNode8OrGreater () {}
requiresNode8OrGreater()

const argsert = require('./lib/argsert')
const fs = require('fs')
const Command = require('./lib/command')
Expand Down

1 comment on commit 2ba8ce0

@evocateur
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably update the range in the engines field, too:

"node": ">=6"

Please sign in to comment.