Skip to content

Commit f0f6896

Browse files
authored
upgrade 'commander' to 7 (#547)
1 parent 8484b9c commit f0f6896

File tree

4 files changed

+479
-398
lines changed

4 files changed

+479
-398
lines changed

bin/node-lambda

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require('dotenv').config()
66
const path = require('path')
77

88
const lambda = require(path.join(__dirname, '..', 'lib', 'main.js'))
9-
const program = require('commander')
9+
const { program } = require('commander')
1010
const fs = require('fs')
1111
const packageJson = fs.existsSync(path.join(process.cwd(), 'package.json')) ? require(path.join(process.cwd(), 'package.json')) : {}
1212
const packageJsonName = packageJson.name || 'UnnamedFunction'
@@ -60,10 +60,6 @@ const KEEP_NODE_MODULES = process.env.KEEP_NODE_MODULES || false
6060
const DOCKER_VOLUMES = process.env.DOCKER_VOLUMES || ''
6161
const AWS_TAGS = process.env.AWS_TAGS || ''
6262

63-
program
64-
.storeOptionsAsProperties(false)
65-
.passCommandToAction(false)
66-
6763
program
6864
.command('deploy')
6965
.description('Deploy your application to Amazon Lambda')

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"archiver": "^5.0.0",
4343
"aws-sdk": "^2.724.0",
4444
"aws-xray-sdk-core": "^3.1.0",
45-
"commander": "^6.0.0",
45+
"commander": "^7.0.0",
4646
"continuation-local-storage": "^3.2.1",
4747
"dotenv": "^8.2.0",
4848
"fs-extra": "^9.0.1",

0 commit comments

Comments
 (0)