File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,15 @@ export const publish = async (argv: string[]) => {
52
52
return acc ;
53
53
} , [ ] as { name : string ; errors : string [ ] } [ ] ) ;
54
54
if ( invalidItemMessages . length > 0 ) {
55
- console . error ( "Validation error:" ) ;
55
+ const chalk = ( await import ( "chalk" ) ) . default ;
56
56
invalidItemMessages . forEach ( ( msg ) => {
57
- console . error ( msg . name , msg . errors ) ;
57
+ msg . errors . forEach ( ( err ) => {
58
+ let text = chalk . red . bold ( `${ msg . name } : ` ) ;
59
+ text += chalk . red ( err ) ;
60
+ console . error ( text ) ;
61
+ } ) ;
58
62
} ) ;
63
+
59
64
process . exit ( 1 ) ;
60
65
}
61
66
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ const checkOrganizationUrlName: CheckType = {
65
65
66
66
const checkSlide : CheckType = {
67
67
getMessage : ( ) =>
68
- "slideの設定はtrue/falseで入力してください\n\n【 破壊的な変更がありました】\n詳しくは以下のリリースをご確認ください\nhttps ://github.com/increments/qiita-cli/releases/tag/v0.5.0" ,
68
+ "slideの設定はtrue/falseで入力してください( 破壊的な変更がありました。詳しくはリリースをご確認ください https ://github.com/increments/qiita-cli/releases/tag/v0.5.0) " ,
69
69
isValid : ( { slide } ) => {
70
70
return typeof slide === "boolean" ;
71
71
} ,
You can’t perform that action at this time.
0 commit comments