Commit dd84f75
committed
fix: scope zod@3.25.76 pin to @backstage/plugin-auth-node only
PR #4354 pinned `zod` globally to `3.25.76` via `resolutions` to fix a
duplicate-version conflict with `@backstage/plugin-auth-node`. That
global pin also forces `rulesync`'s nested `zod` dep to 3.25.76 — but
`rulesync@7.23.0` imports `zod/mini`, which only exists in `zod@4.3.6`.
Result: `yarn rulesync:generate` fails on every PR with
`ERR_PACKAGE_PATH_NOT_EXPORTED: Package subpath './mini' is not defined`.
Scope the resolution to `@backstage/plugin-auth-node/zod` so the
original Backstage conflict is still fixed while `rulesync` can keep
its `zod@4.3.6` nested under `node_modules/rulesync/node_modules/zod`.
Verified:
- Top-level `node_modules/zod`: 3.25.76 (Backstage uses `zod/v3`)
- `node_modules/rulesync/node_modules/zod`: 4.3.6 (has `./mini`)
- `yarn rulesync:generate` runs cleanly — "All files are up to date"
This can be reverted once backstage/backstage#33536
lands upstream, same as the original resolution.1 parent 4163f57 commit dd84f75
2 files changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40174 | 40174 | | |
40175 | 40175 | | |
40176 | 40176 | | |
40177 | | - | |
| 40177 | + | |
40178 | 40178 | | |
40179 | 40179 | | |
40180 | 40180 | | |
40181 | 40181 | | |
40182 | 40182 | | |
40183 | 40183 | | |
| 40184 | + | |
| 40185 | + | |
| 40186 | + | |
| 40187 | + | |
| 40188 | + | |
| 40189 | + | |
| 40190 | + | |
40184 | 40191 | | |
40185 | 40192 | | |
40186 | 40193 | | |
| |||
0 commit comments