File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ export default class Techor<Options extends TechorOptions<Config>, Config> {
14
14
this . options = extend ( defaultOptions , ...options ) as Options
15
15
}
16
16
17
- logConfigFound = ( ) => log . ok `**${ this . options . config } ** config file found`
18
- logConfigNotFound = ( ) => log . i `No **${ this . options . config } ** config file found`
17
+ logConfigFound = ( configPath : string ) => log . ok `**${ configPath } ** config file found`
18
+ logConfigNotFound = ( configPath : string ) => log . i `No **${ configPath } ** config file found`
19
19
20
20
readConfig ( key = 'config' ) : Config | any {
21
21
const { config, cwd } = this . options
@@ -28,9 +28,9 @@ export default class Techor<Options extends TechorOptions<Config>, Config> {
28
28
if ( configPath ) {
29
29
const userConfigModule = crossImport ( configPath , { cwd } )
30
30
userConfig = ( key ? userConfigModule [ key ] : undefined ) || userConfigModule . default || userConfigModule
31
- this . logConfigFound ( )
31
+ this . logConfigFound ( configPath )
32
32
} else {
33
- this . logConfigNotFound ( )
33
+ this . logConfigNotFound ( configPath )
34
34
}
35
35
} catch ( err ) {
36
36
log . error ( err )
You can’t perform that action at this time.
0 commit comments