Commit e95b497 1 parent adf7b8f commit e95b497 Copy full SHA for e95b497
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const {existsSync} = require('fs');
4
4
5
5
const packageJsonPath = resolve ( process . cwd ( ) , 'package.json' ) ;
6
6
if ( existsSync ( packageJsonPath ) === false ) {
7
- console . error ( 'package.json not found' , { path : packageJsonPath } ) ;
7
+ console . error ( '❌ package.json not found' , { path : packageJsonPath } ) ;
8
8
process . exit ( 1 ) ;
9
9
}
10
10
const packageJson = require ( packageJsonPath ) ;
@@ -75,8 +75,8 @@ function getOptions() {
75
75
let presetName = process . argv . find ( ( arg ) => arg . startsWith ( '--preset=' ) ) ?. split ( '=' ) [ 1 ] ?? 'default' ;
76
76
console . log ( 'preset: %s' , presetName ) ;
77
77
const presetOptions = presetRecord [ presetName ] ;
78
- if ( presetOptions ) {
79
- console . error ( 'preset not found' , { preset : presetName } ) ;
78
+ if ( ! presetOptions ) {
79
+ console . error ( '❌ preset not found' , { preset : presetName } ) ;
80
80
process . exit ( 1 ) ;
81
81
}
82
82
You can’t perform that action at this time.
0 commit comments