Skip to content

Commit 3ccb9d0

Browse files
committed
Remove unused scripts and configs
Delete 9 dead code files: - 3 external scripts (fix-external, lint-external, validate-external) - 4 utils (common, path-helpers, path, suppress-warnings) - 2 vitest configs (optimized, isolated) Update cli-helpers for compatibility
1 parent e725cbe commit 3ccb9d0

10 files changed

Lines changed: 1 addition & 676 deletions

.config/vitest.config.isolated.mts

Lines changed: 0 additions & 67 deletions
This file was deleted.

.config/vitest.config.optimized.mts

Lines changed: 0 additions & 123 deletions
This file was deleted.

scripts/fix-external.mjs

Lines changed: 0 additions & 80 deletions
This file was deleted.

scripts/lint-external.mjs

Lines changed: 0 additions & 44 deletions
This file was deleted.

scripts/utils/cli-helpers.mjs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,6 @@ export const printHeader = title => {
2121
console.log(` ${title}`)
2222
printDivider()
2323
}
24-
export const replaceHeader = (title, extraLines = 0) => {
25-
// Move cursor up to rewrite the header (3 lines for header + any extra output lines)
26-
const linesToMove = 3 + extraLines
27-
process.stdout.write(`\x1b[${linesToMove}A`) // Move up N lines
28-
process.stdout.write('\x1b[K') // Clear top divider line
29-
printDivider()
30-
process.stdout.write('\x1b[K') // Clear title line
31-
console.log(` ${title}`)
32-
process.stdout.write('\x1b[K') // Clear old bottom divider
33-
// Clear any extra lines from previous output
34-
for (let i = 0; i < extraLines; i++) {
35-
process.stdout.write('\x1b[K\n') // Clear line and move to next
36-
}
37-
// Move cursor back up to position after the new header
38-
if (extraLines > 0) {
39-
process.stdout.write(`\x1b[${extraLines}A`)
40-
}
41-
}
4224
export const printFooterLine = () => console.log('─'.repeat(55))
4325
export const printDottedLine = () => console.log('·'.repeat(55))
4426
export const printDiamondLine = () => console.log('◆'.repeat(55))
@@ -48,7 +30,7 @@ export const printFooter = msg => {
4830
console.log(colors.green(msg))
4931
}
5032
}
51-
export const printHelpHeader = name => console.log(`Socket Lib ${name}`)
33+
export const printHelpHeader = name => console.log(`Socket Registry ${name}`)
5234
export const printSuccess = msg => console.log(colors.green(`✓ ${msg}`))
5335
export const printError = msg => console.error(colors.red(`✗ ${msg}`))
5436
export const printWarning = msg => console.warn(colors.yellow(`⚠ ${msg}`))

0 commit comments

Comments
 (0)