Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: choose correct config directory when require.main does not exist (…
…#1056) * stop shadowing 'path' import, it's confusing * add no-extension integration test - Verifies that find-up can deal with non-directory startDir - Removes process.chdir() in integration test helper in favor of opts.cwd - Upgrades cross-spawn to v6
- Loading branch information
Showing
7 changed files
with
67 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env node | ||
|
||
'use strict' | ||
|
||
var parser = require('../../yargs.js')(process.argv.slice(2)) | ||
|
||
console.log(parser.argv) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env node | ||
|
||
'use strict' | ||
|
||
// for some unknown reason, a test environment has decided to omit require.main | ||
delete require.main | ||
|
||
var parser = require('../../yargs.js')(process.argv.slice(2), undefined, require) | ||
|
||
console.log(parser.argv) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters