Skip to content

Commit 4dfa3e7

Browse files
committed
fix: resolve config path, close #273
1 parent 59e6e90 commit 4dfa3e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cfg-resolve.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import path from 'path';
12
import getCff from 'get-cff';
23
import toCamelCase from 'to-camel-case';
34
import pathExists from 'path-exists';
@@ -7,6 +8,7 @@ export default (flags = {}) => new Promise(async resolve => {
78
let {config, use} = flags;
89

910
if (config) {
11+
config = path.resolve(config);
1012
config = await pathExists(config) ? await getCff(config) : {};
1113
}
1214

0 commit comments

Comments
 (0)