fix(app): make postcss override track the direct dep ($postcss) — unblocks the /app Dependabot lane - #189
Merged
Conversation
app/package.json pinned `overrides.postcss` to the literal `^8.5.18`
while `devDependencies.postcss` was the same literal. npm refuses any
bump of a direct dependency whose override spec no longer matches it,
so every Dependabot /app run died with:
npm error code EOVERRIDE
npm error Override for postcss@8.5.26 conflicts with direct dependency
That failed the whole `npm_and_yarn in /app` job, not just postcss —
the entire /app update lane has been blocked since the override landed
in 1a9ea0d (2026-07-27 CVE patch pass).
Fix: use npm's dependency-reference syntax `"postcss": "$postcss"`, so
the override always resolves to whatever the direct dev-dependency spec
is. Dependabot can now bump the direct dep and the override follows
automatically, with no further maintenance.
The override is kept, not removed: deleting it lets a transitive copy
resolve down to postcss@8.4.31 (pulled via next), which npm audit flags
high. With `$postcss` every resolved copy is a single postcss@8.5.23.
Verified under CI's toolchain (node v20.20.2 / npm 10.8.2):
- npm ls postcss --all -> exactly one copy, postcss@8.5.23
- replayed Dependabot's own command,
`npm install postcss@8.5.26 --force --ignore-scripts --package-lock-only`:
EOVERRIDE on main, succeeds here (devDeps -> ^8.5.26, override follows)
- npx tsc --noEmit: clean
- npm run lint: 0 errors
- npm run build: success
- npm audit: postcss advisories gone; the 3 remaining high findings
(deepmerge-ts -> @prisma/config -> prisma) are unchanged from main
The other five overrides (axios, brace-expansion, sharp, esbuild,
valibot) are transitive-only pins with no matching direct dependency,
so they cannot hit EOVERRIDE and are left as-is.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
app/package.jsonhadoverrides.postcsspinned to the literal^8.5.18, identical todevDependencies.postcss. npm rejects any bump of a direct dependency once its override spec no longer matches, so every Dependabot/apprun failed:That kills the whole
npm_and_yarn in /appjob — not just the postcss update. Latest occurrence: run 33746071743 (2026-09-03 10:48Z,failure).Why it existed
Introduced in
1a9ea0d(2026-07-27, "security(deps): purge stale RuneBolt copies and patch dependency CVEs"), which bumped the direct dep^8.5.0→^8.5.18and added the matching override to force transitive copies up to the same floor. Correct intent, self-blocking implementation.How
Switch to npm's dependency-reference syntax
"postcss": "$postcss". The override now resolves to whatever the direct dev-dependency spec is, so Dependabot can bump the direct dep and the override follows automatically — no recurring maintenance, no re-break.The override is kept, not deleted. Removing it outright lets a transitive copy resolve down to
postcss@8.4.31(vianext), whichnpm auditflags high.$postcsskeeps a single hoisted copy.How verified — node v20.20.2 / npm 10.8.2 (CI's toolchain)
npm ls postcss --allnpm install postcss@8.5.26 --force --ignore-scripts --package-lock-onlymain; succeeds here → devDeps^8.5.26, override followsnpx prisma generate+npx tsc --noEmitnpm run lintnpm run buildnpm auditdeepmerge-ts→@prisma/config→prisma) are byte-identical tomainand out of scope — fixing them needs a breaking prisma downgradeOther overrides audited
axios,brace-expansion,sharp,esbuild,valibotare all transitive-only pins with no matching entry independencies/devDependencies, so none can trigger EOVERRIDE. Left as-is.Scope:
app/package.json+app/package-lock.jsononly.