Skip to content

Commit c86a1c4

Browse files
committed
Filter out overrides with higher Node requirements for now
1 parent 9a7073f commit c86a1c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/commands/optimize.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ const SOCKET_REGISTRY_NAME = '@socketregistry'
3030

3131
const SOCKET_REGISTRY_MAJOR_VERSION = '^1'
3232

33-
const allPackages = getManifestData('npm')!.map(({ 1: d }) => d.package)
33+
const allPackages = getManifestData('npm')!
34+
.filter(({ 1: d }) => d.engines?.node?.startsWith('>=18'))
35+
.map(({ 1: d }) => d.package)
3436

3537
type NpmOverrides = { [key: string]: string | StringKeyValueObject }
3638
type PnpmOrYarnOverrides = { [key: string]: string }

0 commit comments

Comments
 (0)