File tree 2 files changed +11
-8
lines changed
packages/plugin-serverless
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1
1
#!/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' ) ;
2
5
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' ) ) ;
Original file line number Diff line number Diff line change 7
7
"dependencies" : {
8
8
"@oclif/command" : " ^1.5.12" ,
9
9
"@oclif/config" : " ^1.12.10" ,
10
- "@twilio/cli-core" : " ~1.4.1 " ,
10
+ "@twilio/cli-core" : " ^2.0.2 " ,
11
11
"create-twilio-function" : " ^1.0.1" ,
12
12
"lodash.camelcase" : " ^4.3.0" ,
13
13
"lodash.kebabcase" : " ^4.1.1" ,
25
25
"globby" : " ^8.0.2" ,
26
26
"keytar" : " ^4.11.0" ,
27
27
"mocha" : " ^5.2.0" ,
28
- "nyc" : " ^13.3.0" ,
29
- "rimraf" : " ^2.6.3"
28
+ "nyc" : " ^13.3.0"
30
29
},
31
30
"engines" : {
32
31
"node" : " >=8.10.0"
33
32
},
34
33
"files" : [
35
- " /npm-shrinkwrap.json" ,
36
34
" /oclif.manifest.json" ,
37
35
" /src" ,
38
36
" /yarn.lock" ,
85
83
},
86
84
"repository" : " twilio-labs/plugin-serverless" ,
87
85
"scripts" : {
88
- "postpack" : " rimraf oclif.manifest.json npm-shrinkwrap .json" ,
86
+ "postpack" : " rm -f oclif.manifest.json" ,
89
87
"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" ,
91
89
"test" : " nyc --check-coverage --lines 90 --reporter=html --reporter=text mocha --forbid-only \" test/**/*.test.js\" " ,
92
90
"version" : " oclif-dev readme && git add README.md"
93
91
}
You can’t perform that action at this time.
0 commit comments