File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const normalizePackageData = require('normalize-package-data');
12
12
13
13
// Prevent caching of this module so module.parent is always accurate
14
14
delete require . cache [ __filename ] ;
15
- const parentDir = path . dirname ( module . parent . filename ) ;
15
+ const parentDir = path . dirname ( module . parent && module . parent . filename ? module . parent . filename : '.' ) ;
16
16
17
17
const isFlagMissing = ( flagName , definedFlags , receivedFlags , input ) => {
18
18
const flag = definedFlags [ flagName ] ;
@@ -153,7 +153,7 @@ const meow = (helpText, options) => {
153
153
154
154
const showVersion = ( ) => {
155
155
console . log ( typeof options . version === 'string' ? options . version : pkg . version ) ;
156
- process . exit ( ) ;
156
+ process . exit ( 0 ) ;
157
157
} ;
158
158
159
159
if ( argv . _ . length === 0 && options . argv . length === 1 ) {
You can’t perform that action at this time.
0 commit comments