Skip to content

Commit

Permalink
chore: upgrade commander
Browse files Browse the repository at this point in the history
BREAKING CHANGE: require minimum node version v12.20.0
  • Loading branch information
plasticrake committed Jan 29, 2022
1 parent 7e34cd8 commit 1911aa4
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 18 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Use Node.js 14.x
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 14.x
node-version: 16.x

- name: Setup cache
uses: actions/cache@v2
Expand All @@ -40,11 +40,11 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
node-version: [12.x, 14.x, 16.x]
os: [ubuntu-latest]
include:
- os: ubuntu-latest
node-version: 14.x
node-version: 16.x
env:
COVERAGE: 1

Expand Down
35 changes: 24 additions & 11 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"test:only": "cross-env NODE_ENV=test && nyc mocha --color && npm run test:cli"
},
"dependencies": {
"commander": "^7.2.0",
"commander": "^9.0.0",
"lodash.castarray": "^4.4.0",
"lodash.clone": "^4.5.0",
"lodash.defaultto": "^4.14.0",
Expand Down Expand Up @@ -107,7 +107,7 @@
"typescript": "^4.2.3"
},
"engines": {
"node": ">=10"
"node": ">=12.20.0"
},
"standard-version": {
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable no-console */

import castArray from 'lodash.castarray';
import program from 'commander';
import { program } from 'commander';
import type { LogLevelDesc } from 'loglevel';
import * as tplinkCrypto from 'tplink-smarthome-crypto';
import type { PickProperties } from 'ts-essentials';
Expand Down

0 comments on commit 1911aa4

Please sign in to comment.