File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
- // import chalk from 'chalk'
2
- // import chalkTable from 'chalk-table'
3
1
import meow from 'meow'
4
2
import { getManifestData } from '@socketsecurity/registry'
5
3
6
- //import ora from 'ora'
7
4
import { printFlagList } from '../utils/formatting'
8
5
import { writeFileUtf8 } from '../utils/fs'
9
6
import { indentedStringify , isParsableJSON } from '../utils/json'
@@ -299,16 +296,16 @@ export const optimize: CliSubcommand = {
299
296
cwd : process . cwd ( ) ,
300
297
onUnknown : ( pkgManager : string | undefined ) => {
301
298
console . log (
302
- `Unknown package manager${ pkgManager ? ` ${ pkgManager } ` : '' } : Defaulting to npm`
299
+ `⚠️ Unknown package manager${ pkgManager ? ` ${ pkgManager } ` : '' } : Defaulting to npm`
303
300
)
304
301
}
305
302
} )
306
303
if ( ! supported ) {
307
- console . log ( 'The engines.node range is not supported.' )
304
+ console . log ( '✘ The engines.node range is not supported.' )
308
305
return
309
306
}
310
307
if ( pkgJson === undefined ) {
311
- console . log ( 'No package.json found.' )
308
+ console . log ( '✘ No package.json found.' )
312
309
return
313
310
}
314
311
const aoState : AddOverridesState = {
@@ -357,9 +354,9 @@ export const optimize: CliSubcommand = {
357
354
}
358
355
const { size : count } = aoState . packageNames
359
356
if ( count ) {
360
- console . log ( `Added ${ count } overrides! ` )
357
+ console . log ( `Added ${ count } Socket.dev optimized overrides 🚀 ` )
361
358
} else {
362
- console . log ( 'Congratulations! No override optimizations needed 🚀 ' )
359
+ console . log ( 'Congratulations! Already Socket.dev optimized 🎉 ' )
363
360
}
364
361
}
365
362
}
You can’t perform that action at this time.
0 commit comments