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'
31import meow from 'meow'
42import { getManifestData } from '@socketsecurity/registry'
53
6- //import ora from 'ora'
74import { printFlagList } from '../utils/formatting'
85import { writeFileUtf8 } from '../utils/fs'
96import { indentedStringify , isParsableJSON } from '../utils/json'
@@ -299,16 +296,16 @@ export const optimize: CliSubcommand = {
299296 cwd : process . cwd ( ) ,
300297 onUnknown : ( pkgManager : string | undefined ) => {
301298 console . log (
302- `Unknown package manager${ pkgManager ? ` ${ pkgManager } ` : '' } : Defaulting to npm`
299+ `⚠️ Unknown package manager${ pkgManager ? ` ${ pkgManager } ` : '' } : Defaulting to npm`
303300 )
304301 }
305302 } )
306303 if ( ! supported ) {
307- console . log ( 'The engines.node range is not supported.' )
304+ console . log ( '✘ The engines.node range is not supported.' )
308305 return
309306 }
310307 if ( pkgJson === undefined ) {
311- console . log ( 'No package.json found.' )
308+ console . log ( '✘ No package.json found.' )
312309 return
313310 }
314311 const aoState : AddOverridesState = {
@@ -357,9 +354,9 @@ export const optimize: CliSubcommand = {
357354 }
358355 const { size : count } = aoState . packageNames
359356 if ( count ) {
360- console . log ( `Added ${ count } overrides! ` )
357+ console . log ( `Added ${ count } Socket.dev optimized overrides 🚀 ` )
361358 } else {
362- console . log ( 'Congratulations! No override optimizations needed 🚀 ' )
359+ console . log ( 'Congratulations! Already Socket.dev optimized 🎉 ' )
363360 }
364361 }
365362 }
You can’t perform that action at this time.
0 commit comments