Skip to content

Commit 34577da

Browse files
authored
fix: bump preferred-pm to v5 to resolve js-yaml prototype pollution (#756)
1 parent 7173ffa commit 34577da

File tree

3 files changed

+112
-122
lines changed

3 files changed

+112
-122
lines changed

packages/@sanity/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
"peek-stream": "^1.1.3",
119119
"picomatch": "^4.0.3",
120120
"pluralize-esm": "^9.0.5",
121-
"preferred-pm": "^4.1.1",
121+
"preferred-pm": "^5.0.0",
122122
"pretty-ms": "^9.3.0",
123123
"promise-props-recursive": "^2.0.2",
124124
"react": "^19.2.4",

packages/@sanity/cli/src/util/packageManager/packageManagerChoice.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import path from 'node:path'
33
import {isInteractive} from '@sanity/cli-core'
44
import {getRunningPackageManager} from '@sanity/cli-core/package-manager'
55
import {select} from '@sanity/cli-core/ux'
6-
// eslint-disable-next-line unicorn/no-named-default
7-
import {default as preferredPM} from 'preferred-pm'
6+
import {preferredPM} from 'preferred-pm'
87
import which from 'which'
98

109
export type PackageManager = 'bun' | 'manual' | 'npm' | 'pnpm' | 'yarn'

0 commit comments

Comments
 (0)