File tree Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ exports.run = function (options) {
53
53
}
54
54
55
55
if ( ( 0 , _keys2 . default ) ( config . entry ) . length === 0 ) {
56
- logWarn ( 'Local config exports aseets not found.') ;
56
+ logError ( 'No assets entry found.') ;
57
57
logDoc ( 'http://ued.qunar.com/ykit/docs-%E9%85%8D%E7%BD%AE.html' ) ;
58
58
process . exit ( 1 ) ;
59
59
}
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ var Config = function () {
38
38
fs . mkdirSync ( modulePath ) ;
39
39
fs . mkdirSync ( sysPath . join ( cwd , YKIT_CACHE_DIR ) ) ;
40
40
}
41
+ } else {
42
+ logWarn ( 'No ykit config file found.' ) ;
41
43
}
42
44
43
45
this . _config = {
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ exports.run = function (options) {
51
51
}
52
52
53
53
if ( Object . keys ( config . entry ) . length === 0 ) {
54
- logWarn ( 'Local config exports aseets not found.') ;
54
+ logError ( 'No assets entry found.') ;
55
55
logDoc ( 'http://ued.qunar.com/ykit/docs-%E9%85%8D%E7%BD%AE.html' ) ;
56
56
process . exit ( 1 ) ;
57
57
}
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ class Config {
17
17
fs . mkdirSync ( modulePath ) ;
18
18
fs . mkdirSync ( sysPath . join ( cwd , YKIT_CACHE_DIR ) ) ;
19
19
}
20
+ } else {
21
+ logWarn ( 'No ykit config file found.' ) ;
20
22
}
21
23
22
24
this . _config = {
You can’t perform that action at this time.
0 commit comments