🔥 Drop redundant optionalDependencies block

oxlint, oxfmt and oxlint-tsgolint each declare their own platform
bindings as optionalDependencies gated by os/cpu, so npm already
installs exactly the one matching the host. Listing all 20 at the
root duplicated that: the lockfile diff shows no package added or
removed, only re-tagged as a dev transitive.

The root list was also the sole reason maintain:outdated carried a
20-package --ignore-packages hack, since check-outdated scans root
deps. Without it the script is one flag and reports clean.

Verified on the pinned node 26: fresh `npm ci` in sync, `npm run
verify` green, type-aware oxlint still fires (no-floating-promises),
and `npm install --os/--cpu` dry-runs resolve the darwin-arm64 and
win32-x64 bindings from the lockfile.
This commit is contained in:
tmu committed 2026-09-06 00:09:33 +02:00
1 parent da5ab79f9b
commit 8b4722da26
2 files changed
+21 -45

No files matched your search

+20 -22
View File
@@ -27,28 +27,6 @@
},
"engines": {
"node": ">=26"
},
"optionalDependencies": {
"@oxfmt/binding-darwin-arm64": "^0.66.0",
"@oxfmt/binding-darwin-x64": "^0.66.0",
"@oxfmt/binding-linux-arm64-gnu": "^0.66.0",
"@oxfmt/binding-linux-arm64-musl": "^0.66.0",
"@oxfmt/binding-linux-x64-gnu": "^0.66.0",
"@oxfmt/binding-linux-x64-musl": "^0.66.0",
"@oxfmt/binding-win32-x64-msvc": "^0.66.0",
"@oxlint-tsgolint/darwin-arm64": "^7.0.2001",
"@oxlint-tsgolint/darwin-x64": "^7.0.2001",
"@oxlint-tsgolint/linux-arm64": "^7.0.2001",
"@oxlint-tsgolint/linux-x64": "^7.0.2001",
"@oxlint-tsgolint/win32-arm64": "^7.0.2001",
"@oxlint-tsgolint/win32-x64": "^7.0.2001",
"@oxlint/binding-darwin-arm64": "^1.81.0",
"@oxlint/binding-darwin-x64": "^1.81.0",
"@oxlint/binding-linux-arm64-gnu": "^1.81.0",
"@oxlint/binding-linux-arm64-musl": "^1.81.0",
"@oxlint/binding-linux-x64-gnu": "^1.81.0",
"@oxlint/binding-linux-x64-musl": "^1.81.0",
"@oxlint/binding-win32-x64-msvc": "^1.81.0"
}
},
"node_modules/@andrewbranch/untar.js": {
@@ -1568,6 +1546,7 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1584,6 +1563,7 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1651,6 +1631,7 @@
"cpu": [
"arm64"
],
"dev": true,
"libc": [
"glibc"
],
@@ -1670,6 +1651,7 @@
"cpu": [
"arm64"
],
"dev": true,
"libc": [
"musl"
],
@@ -1769,6 +1751,7 @@
"cpu": [
"x64"
],
"dev": true,
"libc": [
"glibc"
],
@@ -1788,6 +1771,7 @@
"cpu": [
"x64"
],
"dev": true,
"libc": [
"musl"
],
@@ -1858,6 +1842,7 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1874,6 +1859,7 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1887,6 +1873,7 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1900,6 +1887,7 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1913,6 +1901,7 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1926,6 +1915,7 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1939,6 +1929,7 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1986,6 +1977,7 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2002,6 +1994,7 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2069,6 +2062,7 @@
"cpu": [
"arm64"
],
"dev": true,
"libc": [
"glibc"
],
@@ -2088,6 +2082,7 @@
"cpu": [
"arm64"
],
"dev": true,
"libc": [
"musl"
],
@@ -2187,6 +2182,7 @@
"cpu": [
"x64"
],
"dev": true,
"libc": [
"glibc"
],
@@ -2206,6 +2202,7 @@
"cpu": [
"x64"
],
"dev": true,
"libc": [
"musl"
],
@@ -2276,6 +2273,7 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [