🔥 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:
1 parent
da5ab79f9b
commit
8b4722da26
2 files changed
+21
-45
No files matched your search
Generated
+20
-22
@@ -27,28 +27,6 @@
|
|||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=26"
|
"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": {
|
"node_modules/@andrewbranch/untar.js": {
|
||||||
@@ -1568,6 +1546,7 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -1584,6 +1563,7 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -1651,6 +1631,7 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
|
"dev": true,
|
||||||
"libc": [
|
"libc": [
|
||||||
"glibc"
|
"glibc"
|
||||||
],
|
],
|
||||||
@@ -1670,6 +1651,7 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
|
"dev": true,
|
||||||
"libc": [
|
"libc": [
|
||||||
"musl"
|
"musl"
|
||||||
],
|
],
|
||||||
@@ -1769,6 +1751,7 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
|
"dev": true,
|
||||||
"libc": [
|
"libc": [
|
||||||
"glibc"
|
"glibc"
|
||||||
],
|
],
|
||||||
@@ -1788,6 +1771,7 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
|
"dev": true,
|
||||||
"libc": [
|
"libc": [
|
||||||
"musl"
|
"musl"
|
||||||
],
|
],
|
||||||
@@ -1858,6 +1842,7 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -1874,6 +1859,7 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -1887,6 +1873,7 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -1900,6 +1887,7 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -1913,6 +1901,7 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -1926,6 +1915,7 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -1939,6 +1929,7 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -1986,6 +1977,7 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -2002,6 +1994,7 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -2069,6 +2062,7 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
|
"dev": true,
|
||||||
"libc": [
|
"libc": [
|
||||||
"glibc"
|
"glibc"
|
||||||
],
|
],
|
||||||
@@ -2088,6 +2082,7 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
|
"dev": true,
|
||||||
"libc": [
|
"libc": [
|
||||||
"musl"
|
"musl"
|
||||||
],
|
],
|
||||||
@@ -2187,6 +2182,7 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
|
"dev": true,
|
||||||
"libc": [
|
"libc": [
|
||||||
"glibc"
|
"glibc"
|
||||||
],
|
],
|
||||||
@@ -2206,6 +2202,7 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
|
"dev": true,
|
||||||
"libc": [
|
"libc": [
|
||||||
"musl"
|
"musl"
|
||||||
],
|
],
|
||||||
@@ -2276,6 +2273,7 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
|
|||||||
+1
-23
@@ -46,7 +46,7 @@
|
|||||||
"fix:oxlint": "oxlint --fix src",
|
"fix:oxlint": "oxlint --fix src",
|
||||||
"maintain": "npm run maintain:knip; npm run maintain:outdated",
|
"maintain": "npm run maintain:knip; npm run maintain:outdated",
|
||||||
"maintain:knip": "knip --include dependencies,exports,files",
|
"maintain:knip": "knip --include dependencies,exports,files",
|
||||||
"maintain:outdated": "check-outdated --ignore-pre-releases --ignore-packages @oxfmt/binding-darwin-arm64,@oxfmt/binding-darwin-x64,@oxfmt/binding-linux-arm64-gnu,@oxfmt/binding-linux-arm64-musl,@oxfmt/binding-linux-x64-gnu,@oxfmt/binding-linux-x64-musl,@oxfmt/binding-win32-x64-msvc,@oxlint/binding-darwin-arm64,@oxlint/binding-darwin-x64,@oxlint/binding-linux-arm64-gnu,@oxlint/binding-linux-arm64-musl,@oxlint/binding-linux-x64-gnu,@oxlint/binding-linux-x64-musl,@oxlint/binding-win32-x64-msvc,@oxlint-tsgolint/darwin-arm64,@oxlint-tsgolint/darwin-x64,@oxlint-tsgolint/linux-arm64,@oxlint-tsgolint/linux-x64,@oxlint-tsgolint/win32-arm64,@oxlint-tsgolint/win32-x64",
|
"maintain:outdated": "check-outdated --ignore-pre-releases",
|
||||||
"test": "npm run check:tsc && node --test --strip-types \"src/**/*.test.ts\"",
|
"test": "npm run check:tsc && node --test --strip-types \"src/**/*.test.ts\"",
|
||||||
"test:ci": "c8 --reporter=text --reporter=lcov --reporter=html node --test --strip-types \"src/**/*.test.ts\"",
|
"test:ci": "c8 --reporter=text --reporter=lcov --reporter=html node --test --strip-types \"src/**/*.test.ts\"",
|
||||||
"test:unit": "node --test --strip-types \"src/**/*.test.ts\"",
|
"test:unit": "node --test --strip-types \"src/**/*.test.ts\"",
|
||||||
@@ -74,28 +74,6 @@
|
|||||||
"publint": "^0.3.24",
|
"publint": "^0.3.24",
|
||||||
"typescript": "^7.0.2"
|
"typescript": "^7.0.2"
|
||||||
},
|
},
|
||||||
"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"
|
|
||||||
},
|
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=26"
|
"node": ">=26"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user