Skip to content

Commit 36bd54f

Browse files
committed
Rename socket cleanup to optimize
1 parent 07e84ed commit 36bd54f

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,14 @@
149149
"globalthis": "npm:@socketregistry/globalthis@^1",
150150
"hasown": "npm:@socketregistry/hasown@^1",
151151
"is-core-module": "npm:@socketregistry/is-core-module@^1",
152+
"isarray": "npm:@socketregistry/isarray@^1",
152153
"object.assign": "npm:@socketregistry/object.assign@^1",
153154
"object.entries": "npm:@socketregistry/object.entries@^1",
154155
"object.fromentries": "npm:@socketregistry/object.fromentries@^1",
155156
"object.groupby": "npm:@socketregistry/object.groupby@^1",
156157
"object.values": "npm:@socketregistry/object.values@^1",
158+
"safe-buffer": "npm:@socketregistry/safe-buffer@^1",
159+
"safer-buffer": "npm:@socketregistry/safer-buffer@^1",
157160
"side-channel": "npm:@socketregistry/side-channel@^1",
158161
"string.prototype.matchall": "npm:@socketregistry/string.prototype.matchall@^1",
159162
"string.prototype.repeat": "npm:@socketregistry/string.prototype.repeat@^1"

src/commands/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
export * from './cdxgen'
2-
export * from './cleanup'
32
export * from './info'
43
export * from './login'
54
export * from './logout'
65
export * from './npm'
76
export * from './npx'
7+
export * from './optimize'
88
export * from './organization'
99
export * from './raw-npm'
1010
export * from './raw-npx'

src/commands/cleanup.ts renamed to src/commands/optimize.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -403,13 +403,13 @@ async function addOverrides(
403403
return aoState
404404
}
405405

406-
export const cleanup: CliSubcommand = {
406+
export const optimize: CliSubcommand = {
407407
description:
408-
'Cleanup the dependency graph by removing dependencies or swapping them out for simpler alternatives',
408+
'Optimize dependencies with @socketregistry overrides',
409409
async run(argv, importMeta, { parentName }) {
410410
const commandContext = setupCommand(
411-
`${parentName} dependency cleanup`,
412-
cleanup.description,
411+
`${parentName} dependency optimize`,
412+
optimize.description,
413413
argv,
414414
importMeta
415415
)
@@ -481,7 +481,7 @@ export const cleanup: CliSubcommand = {
481481
if (count) {
482482
console.log(`Added ${count} overrides!`)
483483
} else {
484-
console.log('Congratulations! No cleanup needed 🚀')
484+
console.log('Congratulations! No override optimizations needed 🚀')
485485
}
486486
}
487487
}

0 commit comments

Comments
 (0)