Skip to content

Commit 3351b81

Browse files
committed
fix(scripts): update lib-stable imports to canonical subpaths
lib-stable@6.0.5 moved spawn to /process/spawn/child (the old /spawn export was removed) and prefers /logger/default over /logger. socket-bin's scripts still imported the old paths, breaking pre-commit (ERR_PACKAGE_PATH_NOT_EXPORTED on lib-stable/spawn). Align with the rest of the fleet (btm/cli/addon already use these paths).
1 parent db897a7 commit 3351b81

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

scripts/check.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
// prefer-async-spawn: sync-required — top-level CLI runner; entire
1313
// flow is sequential gate-running with exit-code aggregation.
14-
import { spawnSync } from '@socketsecurity/lib-stable/spawn'
14+
import { spawnSync } from '@socketsecurity/lib-stable/process/spawn/child'
1515
import process from 'node:process'
1616

1717
const args = process.argv.slice(2)

scripts/lint.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717

1818
// prefer-async-spawn: sync-required — top-level CLI runner; entire
1919
// flow is sync (sequential gates, exit-code aggregation).
20-
import { spawnSync } from '@socketsecurity/lib-stable/spawn'
20+
import { spawnSync } from '@socketsecurity/lib-stable/process/spawn/child'
2121
import type { SpawnSyncOptions } from 'node:child_process'
2222
import { existsSync } from 'node:fs'
2323
import path from 'node:path'
2424
import process from 'node:process'
25-
import { getDefaultLogger } from '@socketsecurity/lib-stable/logger'
25+
import { getDefaultLogger } from '@socketsecurity/lib-stable/logger/default'
2626

2727
const logger = getDefaultLogger()
2828

scripts/test.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020

2121
// prefer-async-spawn: sync-required — top-level CLI runner; entire
2222
// flow is sync (test runner invocation + exit-code aggregation).
23-
import { spawnSync } from '@socketsecurity/lib-stable/spawn'
23+
import { spawnSync } from '@socketsecurity/lib-stable/process/spawn/child'
2424
import type { SpawnSyncOptions } from 'node:child_process'
2525
import { existsSync } from 'node:fs'
2626
import process from 'node:process'
27-
import { getDefaultLogger } from '@socketsecurity/lib-stable/logger'
27+
import { getDefaultLogger } from '@socketsecurity/lib-stable/logger/default'
2828

2929
const logger = getDefaultLogger()
3030

scripts/validate-esbuild-minify.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import path from 'node:path'
88
import process from 'node:process'
99
import { fileURLToPath } from 'node:url'
1010

11-
import { getDefaultLogger } from '@socketsecurity/lib-stable/logger'
11+
import { getDefaultLogger } from '@socketsecurity/lib-stable/logger/default'
1212

1313
const logger = getDefaultLogger()
1414

scripts/validate-file-count.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import process from 'node:process'
1313
import { fileURLToPath } from 'node:url'
1414
import { promisify } from 'node:util'
1515

16-
import { getDefaultLogger } from '@socketsecurity/lib-stable/logger'
16+
import { getDefaultLogger } from '@socketsecurity/lib-stable/logger/default'
1717

1818
const logger = getDefaultLogger()
1919
const execAsync = promisify(exec)

scripts/validate-no-link-deps.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import path from 'node:path'
99
import process from 'node:process'
1010
import { fileURLToPath } from 'node:url'
1111

12-
import { getDefaultLogger } from '@socketsecurity/lib-stable/logger'
12+
import { getDefaultLogger } from '@socketsecurity/lib-stable/logger/default'
1313

1414
const logger = getDefaultLogger()
1515

0 commit comments

Comments
 (0)