Skip to content

Commit b47cb22

Browse files
committed
fix(deps): restore -stable catalog aliases for self-named fleet packages
Cascade socket-wheelhouse@92cd3e3's fix into socket-cli. pnpm overrides can't redirect a package's own name from inside the same package — Node ESM resolves it as a self-reference. The 4 Socket-published packages each need a SECOND name (`<canonical>-stable`) aliased via `npm:` to the published version so build/script/hook/config code resolves to the published catalog version regardless of where the importing file lives. Updates infra files (scripts/, .config/, .git-hooks/, .claude/hooks/, packages/cli/scripts/, packages/cli/.config/) to import via `-stable` names. Adds the 4 `-stable` aliases to pnpm-workspace.yaml catalog and root + packages/cli devDependencies. Verified: pnpm install + pnpm --filter @socketsecurity/cli run build pass.
1 parent 60ebfad commit b47cb22

67 files changed

Lines changed: 270 additions & 223 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/hooks/check-new-deps/package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.claude/hooks/check-new-deps/test/extract-deps.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { promises as fsp, existsSync, mkdtempSync, rmSync } from 'node:fs'
1111
import os from 'node:os'
1212
import path from 'node:path'
1313

14-
import { whichSync } from '@socketsecurity/lib/bin'
14+
import { whichSync } from '@socketsecurity/lib-stable/bin'
1515

1616
import {
1717
buildAuditRecords,

.claude/hooks/setup-security-tools/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.claude/hooks/setup-security-tools/update.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import { tmpdir } from 'node:os'
1313
import path from 'node:path'
1414
import { fileURLToPath } from 'node:url'
1515

16-
import { httpDownload, httpRequest } from '@socketsecurity/lib/http-request'
17-
import { getDefaultLogger } from '@socketsecurity/lib/logger'
18-
import { spawn } from '@socketsecurity/lib/spawn'
16+
import { httpDownload, httpRequest } from '@socketsecurity/lib-stable/http-request'
17+
import { getDefaultLogger } from '@socketsecurity/lib-stable/logger'
18+
import { spawn } from '@socketsecurity/lib-stable/spawn'
1919

2020
const logger = getDefaultLogger()
2121

.claude/hooks/token-hygiene/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"test": "node --test test/*.test.mts"
1111
},
1212
"devDependencies": {
13-
"@socketsecurity/lib": "catalog:",
13+
"@socketsecurity/lib-stable": "catalog:",
1414
"@types/node": "24.9.2"
1515
}
1616
}

.claude/hooks/token-hygiene/test/token-hygiene.test.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
import { describe, it } from 'node:test'
1111
import assert from 'node:assert/strict'
1212

13-
import { whichSync } from '@socketsecurity/lib/bin'
14-
import { spawnSync } from '@socketsecurity/lib/spawn'
13+
import { whichSync } from '@socketsecurity/lib-stable/bin'
14+
import { spawnSync } from '@socketsecurity/lib-stable/spawn'
1515

1616
const hookScript = new URL('../index.mts', import.meta.url).pathname
1717
const nodeBin = whichSync('node')

.git-hooks/_helpers.mts

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.git-hooks/commit-msg.mts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.git-hooks/pre-commit.mts

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.git-hooks/pre-push.mts

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)