Skip to content

Commit 64ac566

Browse files
childish-sambinodkundel
childish-sambino
authored andcommitted
feat: update cli-core dependency and don't shrinkwrap while packing (#7)
1 parent dafca1f commit 64ac566

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

Diff for: packages/plugin-serverless/bin/run

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/usr/bin/env node
2+
// Load up the command module *first* so that we're the parent rather than
3+
// some other dependency.
4+
const command = require('@oclif/command');
25

3-
require('@oclif/command').run()
4-
.catch(require('@oclif/errors/handle'))
6+
require('@twilio/cli-core').configureEnv();
7+
command.run()
8+
.then(require('@oclif/command/flush'))
9+
.catch(require('@oclif/errors/handle'));

Diff for: packages/plugin-serverless/package.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dependencies": {
88
"@oclif/command": "^1.5.12",
99
"@oclif/config": "^1.12.10",
10-
"@twilio/cli-core": "~1.4.1",
10+
"@twilio/cli-core": "^2.0.2",
1111
"create-twilio-function": "^1.0.1",
1212
"lodash.camelcase": "^4.3.0",
1313
"lodash.kebabcase": "^4.1.1",
@@ -25,14 +25,12 @@
2525
"globby": "^8.0.2",
2626
"keytar": "^4.11.0",
2727
"mocha": "^5.2.0",
28-
"nyc": "^13.3.0",
29-
"rimraf": "^2.6.3"
28+
"nyc": "^13.3.0"
3029
},
3130
"engines": {
3231
"node": ">=8.10.0"
3332
},
3433
"files": [
35-
"/npm-shrinkwrap.json",
3634
"/oclif.manifest.json",
3735
"/src",
3836
"/yarn.lock",
@@ -85,9 +83,9 @@
8583
},
8684
"repository": "twilio-labs/plugin-serverless",
8785
"scripts": {
88-
"postpack": "rimraf oclif.manifest.json npm-shrinkwrap.json",
86+
"postpack": "rm -f oclif.manifest.json",
8987
"posttest": "eslint --ignore-path .gitignore . && npm audit",
90-
"prepack": "oclif-dev manifest && oclif-dev readme && npm shrinkwrap",
88+
"prepack": "oclif-dev manifest && oclif-dev readme",
9189
"test": "nyc --check-coverage --lines 90 --reporter=html --reporter=text mocha --forbid-only \"test/**/*.test.js\"",
9290
"version": "oclif-dev readme && git add README.md"
9391
}

0 commit comments

Comments
 (0)