Skip to content

Commit 0dcceda

Browse files
author
Benjamin Coe
committed
feat: allow cwd to be configured see #620
1 parent 0fc6d8f commit 0dcceda

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/config-util.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ Config.loadConfig = function (argv, cwd) {
2828
}
2929

3030
var config = Config.buildYargs(cwd)
31-
.default({
32-
cwd: cwd
33-
})
3431
if (rcConfig) config.config(rcConfig)
3532
config = config.parse(argv || [])
3633

@@ -136,8 +133,8 @@ Config.buildYargs = function (cwd) {
136133
global: false
137134
})
138135
.option('cwd', {
139-
describe: 'working directory to lookup for files',
140-
global: false
136+
describe: 'working directory used when resolving paths',
137+
default: cwd
141138
})
142139
.option('require', {
143140
alias: 'i',

0 commit comments

Comments
 (0)