Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions examples/test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,5 @@
"devDependencies": {
"@types/react": "~19.2.2",
"typescript": "~5.9.2"
},
"pnpm": {
"overrides": {
"@xmldom/xmldom": "0.8.13",
"postcss": "8.5.12",
"uuid": "14.0.0"
}
}
}
40 changes: 23 additions & 17 deletions examples/test-app/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions examples/test-app/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This file exists so examples/test-app is treated as its own pnpm workspace
# root. pnpm only honors `overrides` from a workspace root, and because this
# app is nested under the repo-root pnpm-workspace.yaml (without being a member)
# its overrides were silently ignored when declared in package.json, letting the
# lockfile drift back to vulnerable transitive versions (see PR #649). Keeping
# them here ensures they actually apply. These pin transitive deps to versions
# that clear Dependabot security alerts; ws/brace-expansion are scoped to the
# vulnerable major so the non-vulnerable ws@7 / brace-expansion@1 copies stay.
overrides:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep overrides reachable for documented installs

The documented install paths still run pnpm install --dir examples/test-app --ignore-workspace from the root script and pnpm install --ignore-workspace in examples/test-app/README.md; --ignore-workspace makes pnpm behave as if no pnpm-workspace.yaml exists, so these newly moved overrides are not applied on the normal setup path. After a contributor runs the documented install, pnpm can either rewrite the lockfile back without the security overrides or report the lockfile overrides/config as mismatched, which defeats the Dependabot-alert fix this commit is trying to make durable.

Useful? React with 👍 / 👎.

'@xmldom/xmldom': 0.8.13
postcss: 8.5.12
uuid: 14.0.0
ws@8: ^8.20.1
brace-expansion@5: ^5.0.6
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,6 @@
"README.md",
"LICENSE"
],
"pnpm": {
"overrides": {
"lodash-es": "4.18.1"
}
},
"keywords": [
"agent",
"device",
Expand Down
Loading