File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,22 @@ export function getArgsOrDefaults(argv, opts) {
35
35
}
36
36
try {
37
37
const stats = fs . statSync ( path ) ;
38
+ /** @type {import('@eik/common').EikConfig } */
39
+ let eikConfig ;
38
40
if ( stats . isDirectory ( ) ) {
39
- config = helpers . configStore . findInDirectory ( path ) . toJSON ( ) ;
41
+ eikConfig = helpers . configStore . findInDirectory ( path ) ;
40
42
} else {
41
- config = helpers . configStore . loadFromPath ( path ) . toJSON ( ) ;
43
+ eikConfig = helpers . configStore . loadFromPath ( path ) ;
42
44
}
45
+ config = {
46
+ name : eikConfig . name ,
47
+ version : eikConfig . version ,
48
+ type : eikConfig . type ,
49
+ server : eikConfig . server ,
50
+ token : eikConfig . token ,
51
+ files : eikConfig . files ,
52
+ out : eikConfig . out ,
53
+ } ;
43
54
} catch ( error ) {
44
55
const e = /** @type {Error } */ ( error ) ;
45
56
if ( e . constructor . name === "MissingConfigError" ) {
You can’t perform that action at this time.
0 commit comments