Skip to content

Commit dd84f75

Browse files
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

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"@types/react": "18.3.28",
6868
"@types/react-dom": "18.3.7",
6969
"refractor@npm:3.6.0/prismjs": "^1.30.0",
70-
"zod": "3.25.76"
70+
"@backstage/plugin-auth-node/zod": "3.25.76"
7171
},
7272
"jest": {
7373
"testTimeout": 20000

yarn.lock

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40174,13 +40174,20 @@ __metadata:
4017440174
languageName: node
4017540175
linkType: hard
4017640176

40177-
"zod@npm:3.25.76":
40177+
"zod@npm:3.25.76, zod@npm:^3.22.4, zod@npm:^3.25.76":
4017840178
version: 3.25.76
4017940179
resolution: "zod@npm:3.25.76"
4018040180
checksum: 10c0/5718ec35e3c40b600316c5b4c5e4976f7fee68151bc8f8d90ec18a469be9571f072e1bbaace10f1e85cf8892ea12d90821b200e980ab46916a6166a4260a983c
4018140181
languageName: node
4018240182
linkType: hard
4018340183

40184+
"zod@npm:4.3.6, zod@npm:^3.25 || ^4.0, zod@npm:^3.25.76 || ^4.0.0, zod@npm:^4.1.13":
40185+
version: 4.3.6
40186+
resolution: "zod@npm:4.3.6"
40187+
checksum: 10c0/860d25a81ab41d33aa25f8d0d07b091a04acb426e605f396227a796e9e800c44723ed96d0f53a512b57be3d1520f45bf69c0cb3b378a232a00787a2609625307
40188+
languageName: node
40189+
linkType: hard
40190+
4018440191
"zstd-codec@npm:^0.1.5":
4018540192
version: 0.1.5
4018640193
resolution: "zstd-codec@npm:0.1.5"

0 commit comments

Comments
 (0)