Skip to content

Commit b5efaae

Browse files
JPeer264claude
andcommitted
chore: Change the imported dependencies for pnpm
Change pnpm-lock.yaml from the plain `pnpm import` of the previous commit to the dependencies that the monorepo needs with pnpm: - The root package.json lists every workspace package with `workspace:*`, so that pnpm links them into the root node_modules like Yarn did. - @sentry/nitro and @sentry/nuxt declare `h3` and `unstorage`. They imported them without a declaration, and with pnpm these imports resolved to other versions. - `yarn-deduplicate` is removed. - The npm aliases `redis-4`, `ioredis-5` and `pino-next` keep their yarn.lock versions (4.6.14, 5.11.0 and 9.12.0). `pnpm import` resolved them again to the newest version in their range. `history@^4` resolves to 4.10.1 again, like in yarn.lock, and not to the 4.9.0 of an alias. - `pnpm dedupe` merged a few versions, for example esbuild 0.28.2 into 0.28.1, because CI checks that the lockfile is deduplicated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 807402d commit b5efaae

4 files changed

Lines changed: 715 additions & 726 deletions

File tree

‎package.json‎

Lines changed: 68 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,79 @@
117117
"dev-packages/rollup-utils",
118118
"dev-packages/bundler-tests"
119119
],
120+
"//_devDependencies_comment": [
121+
"Every workspace package is listed with `workspace:*`, so that pnpm links it into the root node_modules.",
122+
"Yarn workspaces did this for all packages, and some configs import workspace packages that they do not declare,",
123+
"for example `@sentry-internal/rollup-utils` in the rollup configs."
124+
],
120125
"devDependencies": {
121126
"@rollup/plugin-commonjs": "^25.0.7",
122127
"@rollup/plugin-json": "^6.1.0",
123128
"@rollup/plugin-node-resolve": "^16.0.3",
124129
"@rollup/plugin-replace": "^5.0.5",
125130
"@rollup/plugin-terser": "^0.4.4",
131+
"@sentry-internal/browser-integration-tests": "workspace:*",
132+
"@sentry-internal/bun-integration-tests": "workspace:*",
133+
"@sentry-internal/bundler-plugin-integration-tests": "workspace:*",
134+
"@sentry-internal/bundler-tests": "workspace:*",
135+
"@sentry-internal/clear-cache-gh-action": "workspace:*",
136+
"@sentry-internal/cloudflare-integration-tests": "workspace:*",
137+
"@sentry-internal/deno-integration-tests": "workspace:*",
138+
"@sentry-internal/e2e-tests": "workspace:*",
139+
"@sentry-internal/external-contributor-gh-action": "workspace:*",
140+
"@sentry-internal/integration-shims": "workspace:*",
141+
"@sentry-internal/node-integration-tests": "workspace:*",
142+
"@sentry-internal/replay-worker": "workspace:*",
143+
"@sentry-internal/rollup-utils": "workspace:*",
144+
"@sentry-internal/size-limit-gh-action": "workspace:*",
145+
"@sentry-internal/test-utils": "workspace:*",
146+
"@sentry/angular": "workspace:*",
147+
"@sentry/astro": "workspace:*",
148+
"@sentry/aws-serverless": "workspace:*",
149+
"@sentry/browser": "workspace:*",
150+
"@sentry/browser-utils": "workspace:*",
151+
"@sentry/bun": "workspace:*",
152+
"@sentry/bundler-plugins": "workspace:*",
153+
"@sentry/cloudflare": "workspace:*",
154+
"@sentry/core": "workspace:*",
155+
"@sentry/deno": "workspace:*",
156+
"@sentry/effect": "workspace:*",
157+
"@sentry/elysia": "workspace:*",
158+
"@sentry/ember": "workspace:*",
159+
"@sentry/esbuild-plugin": "workspace:*",
160+
"@sentry/eslint-config-sdk": "workspace:*",
161+
"@sentry/eslint-plugin-sdk": "workspace:*",
162+
"@sentry/feedback": "workspace:*",
163+
"@sentry/gatsby": "workspace:*",
164+
"@sentry/google-cloud-serverless": "workspace:*",
165+
"@sentry/hono": "workspace:*",
166+
"@sentry/nestjs": "workspace:*",
167+
"@sentry/nextjs": "workspace:*",
168+
"@sentry/nitro": "workspace:*",
169+
"@sentry/node": "workspace:*",
170+
"@sentry/node-native": "workspace:*",
171+
"@sentry/nuxt": "workspace:*",
172+
"@sentry/opentelemetry": "workspace:*",
173+
"@sentry/profiling-node": "workspace:*",
174+
"@sentry/react": "workspace:*",
175+
"@sentry/react-router": "workspace:*",
176+
"@sentry/remix": "workspace:*",
177+
"@sentry/replay": "workspace:*",
178+
"@sentry/replay-canvas": "workspace:*",
179+
"@sentry/rollup-plugin": "workspace:*",
180+
"@sentry/server-runtime-injection": "workspace:*",
181+
"@sentry/server-utils": "workspace:*",
182+
"@sentry/solid": "workspace:*",
183+
"@sentry/solidstart": "workspace:*",
184+
"@sentry/svelte": "workspace:*",
185+
"@sentry/sveltekit": "workspace:*",
186+
"@sentry/tanstackstart-react": "workspace:*",
187+
"@sentry/typescript": "workspace:*",
188+
"@sentry/vercel-edge": "workspace:*",
189+
"@sentry/vite-plugin": "workspace:*",
190+
"@sentry/vue": "workspace:*",
191+
"@sentry/wasm": "workspace:*",
192+
"@sentry/webpack-plugin": "workspace:*",
126193
"@size-limit/esbuild": "~12.1.0",
127194
"@size-limit/file": "~12.1.0",
128195
"@size-limit/webpack": "~12.1.0",
@@ -148,8 +215,7 @@
148215
"tsx": "^4.23.0",
149216
"typescript": "~7.0.2",
150217
"vitest": "^4.1.11",
151-
"yalc": "^1.0.0-pre.53",
152-
"yarn-deduplicate": "6.0.2"
218+
"yalc": "^1.0.0-pre.53"
153219
},
154220
"pnpm": {
155221
"overrides": {

‎packages/nitro/package.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
"@sentry/server-utils": "11.7.0"
4444
},
4545
"devDependencies": {
46-
"nitro": "^3.0.260415-beta"
46+
"h3": "^2.0.1-rc.20",
47+
"nitro": "^3.0.260415-beta",
48+
"unstorage": "^2.0.0-alpha.7"
4749
},
4850
"scripts": {
4951
"build": "run-p build:transpile build:types",

‎packages/nuxt/package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
},
6767
"devDependencies": {
6868
"@nuxt/nitro-server": "^3.21.11",
69+
"h3": "^1.15.10",
6970
"nitro": "^3.0.260311-beta",
7071
"nuxi": "^3.25.1",
7172
"nuxt": "3.21.11",

0 commit comments

Comments
 (0)