Skip to content

Commit 077b226

Browse files
authored
fix: use literal version ranges in pnpm overrides instead of catalog refs (#1015)
1 parent 1a1b419 commit 077b226

2 files changed

Lines changed: 18 additions & 13 deletions

File tree

‎pnpm-workspace.yaml‎

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,24 @@ allowBuilds:
2929

3030
overrides:
3131
'@nuxt/devtools': workspace:*
32-
chokidar: catalog:buildtools
33-
esbuild: catalog:buildtools
34-
rollup: catalog:buildtools
35-
semver: catalog:prod
36-
typescript: catalog:cli
37-
unimport: catalog:types
38-
vite: catalog:buildtools
32+
# NOTE: these must be literal ranges, not `catalog:` refs. pnpm's
33+
# `catalog:` protocol inside `overrides` isn't understood by pnpm 9.x
34+
# (e.g. the pnpm major Vercel falls back to when corepack isn't active),
35+
# which silently drops the whole `overrides` config and desyncs the
36+
# lockfile, breaking `pnpm install --frozen-lockfile`. Keep these in sync
37+
# with the matching catalog entries below by hand.
38+
chokidar: ^5.0.0
39+
esbuild: ^0.28.1
40+
rollup: ^4.62.2
41+
semver: ^7.8.5
42+
typescript: ^6.0.3
43+
unimport: ^6.3.0
44+
vite: ^8.1.4
3945
# `@vitejs/devtools@0.4` requires vue `^3.5.39`; dedupe the whole tree onto a
4046
# single vue (and thus a single `@vue/compiler-sfc`) to avoid duplicate-import
4147
# SFC codegen errors from mixed compiler versions.
42-
vue: catalog:frontend
43-
vue-tsc: catalog:cli
48+
vue: ^3.5.39
49+
vue-tsc: ^3.3.7
4450
catalogs:
4551
buildtools:
4652
'@discoveryjs/cli': ^2.15.0
@@ -57,21 +63,17 @@ catalogs:
5763
'@unocss/preset-uno': ^66.7.5
5864
'@vitejs/devtools': ^0.4.0
5965
'@vueuse/nuxt': ^14.3.0
60-
chokidar: ^5.0.0
61-
esbuild: ^0.28.1
6266
exsolve: ^1.1.0
6367
lightningcss: ^1.32.0
6468
nitropack: ^2.13.4
6569
nuxt: ^4.4.8
66-
rollup: ^4.62.2
6770
shiki-codegen: ^4.3.1
6871
skills-npm: ^1.2.0
6972
turbo: ^2.10.4
7073
unbuild: ^3.6.1
7174
unocss: ^66.7.5
7275
unplugin-vue: ^7.2.0
7376
unplugin-vue-markdown: ^32.0.0
74-
vite: ^8.1.4
7577
cli:
7678
'@antfu/eslint-config': ^9.1.0
7779
'@antfu/ni': ^30.2.0

‎turbo.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"$schema": "https://turbo.build/schema.json",
3+
"globalPassThroughEnv": [
4+
"COREPACK_HOME"
5+
],
36
"tasks": {
47
"build": {
58
"dependsOn": [

0 commit comments

Comments
 (0)