Skip to content

Commit 02e056a

Browse files
jdaltonclaude
andcommitted
Fix @types/node peer dependency conflict
Add pnpm override to pin @types/node to 24.6.2, preventing vitest and vite peer dependencies from downgrading it to 20.x. Also fix type assertion for null-prototype object and apply linter formatting. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 3b52bb9 commit 02e056a

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@
224224
"@octokit/request-error": "$@octokit/request-error",
225225
"@rollup/plugin-commonjs": "28.0.6",
226226
"@socketsecurity/registry": "$@socketsecurity/registry",
227+
"@types/node": "24.6.2",
227228
"aggregate-error": "npm:@socketregistry/aggregate-error@^1.0.15",
228229
"ansi-regex": "6.1.0",
229230
"ansi-term": "0.0.2",

pnpm-lock.yaml

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

src/commands/optimize/update-manifest-by-agent.mts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ function updatePkgJsonField(
7070
const isPnpmObj = isObject(oldValue)
7171
if (hasKeys(value)) {
7272
const oldOverrides =
73-
isPnpmObj && isObject((oldValue as Record<string, unknown>)[OVERRIDES])
73+
isPnpmObj &&
74+
isObject((oldValue as Record<string, unknown>)[OVERRIDES])
7475
? ((oldValue as Record<string, unknown>)[OVERRIDES] as Overrides)
7576
: {}
7677
editablePkgJson.update({

src/utils/filter-config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type FilterConfig = {
1818
}
1919

2020
export function toFilterConfig(obj: unknown): FilterConfig {
21-
const normalized = { __proto__: null } as FilterConfig
21+
const normalized = { __proto__: null } as unknown as FilterConfig
2222
if (!isObject(obj)) {
2323
return normalized
2424
}

src/utils/pnpm.mts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ import { idToNpmPurl } from './spec.mts'
1414
import type { LockfileObject, PackageSnapshot } from '@pnpm/lockfile.fs'
1515
import type { SemVer } from 'semver'
1616

17-
export function extractOverridesFromPnpmLockSrc(lockfileContent: unknown): string {
17+
export function extractOverridesFromPnpmLockSrc(
18+
lockfileContent: unknown,
19+
): string {
1820
let match
1921
if (typeof lockfileContent === 'string') {
2022
match = /^overrides:(?:\r?\n {2}.+)+(?:\r?\n)*/m.exec(lockfileContent)?.[0]

0 commit comments

Comments
 (0)