You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Projects that already have a `pnpm` field in `package.json` (e.g., with `overrides` or `onlyBuiltDependencies`) keep using `package.json` for pnpm config:
- `overrides.vite`ensures any dependency requiring `vite` gets `vite-plus` instead
254
-
- For pnpm, all overrides and peerDependencyRules are written to `pnpm-workspace.yaml` (both standalone and monorepo projects)
281
+
- For pnpm without existing config, overrides and peerDependencyRules are written to `pnpm-workspace.yaml`
282
+
- For pnpm with existing `pnpm` config in `package.json`, the existing location is respected
255
283
- rewrite `import from 'vite'` to `import from 'vite-plus'`
256
284
- rewrite `import from 'vite/{name}'` to `import from 'vite-plus/{name}'`, e.g.: `import from 'vite/module-runner'`to `import from 'vite-plus/module-runner'`
257
285
- rewrite `import from 'vitest'` to `import from 'vite-plus/test'`
@@ -468,7 +496,7 @@ export default defineConfig({
468
496
469
497
### for pnpm
470
498
471
-
pnpmoverrides, peerDependencyRules, and catalog are written to `pnpm-workspace.yaml` for both standalone and monorepo projects.
499
+
For monorepo projects and standalone projects without existing `pnpm` config in `package.json`, overrides, peerDependencyRules, and catalog are written to `pnpm-workspace.yaml`. Projects with existing `pnpm` config in `package.json` keep using `package.json`.
0 commit comments