Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,4 @@ overrides:
vite@*: 'catalog:'
vitest@*: 'catalog:'
'@vitest/browser@*': <version>
peerDependencyRules:
allowAny:
- vitest
allowedVersions:
vitest: '*'
```
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ catalog:
overrides:
vite@*: 'catalog:'
vitest@*: 'catalog:'
peerDependencyRules:
allowAny:
- vitest
allowedVersions:
vitest: '*'
```

## `vpt print-file test/hello.ts`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,4 @@ overrides:
unrelated-package: 1.0.0
vite@*: 'catalog:'
vitest@*: 'catalog:'
peerDependencyRules:
allowAny:
- vitest
allowedVersions:
vitest: '*'
```
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@ overrides:
unrelated-package: 1.0.0
vite@*: 'catalog:'
vitest@*: 'catalog:'
peerDependencyRules:
allowAny:
- vitest
allowedVersions:
vitest: '*'
```

## `vpt write-file packages/app/unit.test.ts 'import { test } from '\''vitest'\'';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@ overrides:
unrelated-package: 1.0.0
vite@*: 'catalog:'
vitest@*: 'catalog:'
peerDependencyRules:
allowAny:
- vitest
allowedVersions:
vitest: '*'
```

## `vp migrate --no-interactive --no-hooks --no-agent --no-editor`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@ catalog:
overrides:
vite@*: 'catalog:'
vitest@*: 'catalog:'
peerDependencyRules:
allowAny:
- vitest
allowedVersions:
vitest: '*'
```

## `vpt stat-file templates/starter/node_modules --assert missing`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,4 @@ catalog:
overrides:
vite@*: 'catalog:'
vitest@*: 'catalog:'
peerDependencyRules:
allowAny:
- vitest
allowedVersions:
vitest: '*'
```
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,6 @@ trustPolicyExclude:
overrides:
vite@*: 'catalog:'
vitest@*: 'catalog:'
peerDependencyRules:
allowAny:
- vitest
allowedVersions:
vitest: '*'
minimumReleaseAgeExclude:
- vite-plus
- '@voidzero-dev/*'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ VITE+ - The Unified Toolchain for the Web
@vitest/coverage-v8 4.1.10 → <version>
• Package manager settings configured
• Removed `vite` from pnpm peerDependencyRules: the core version now matches the bundled Vite
• Removed `vitest` from pnpm peerDependencyRules: the managed `vitest` is pinned to the real bundled Vitest version
```

## `vpt print-file package.json`
Expand Down Expand Up @@ -61,9 +62,4 @@ catalog:
overrides:
vite@*: 'catalog:'
vitest@*: 'catalog:'
peerDependencyRules:
allowAny:
- vitest
allowedVersions:
vitest: '*'
```
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ VITE+ - The Unified Toolchain for the Web
@vitest/coverage-v8 4.1.10 → <version>
• Package manager settings configured
• Removed `vite` from pnpm peerDependencyRules: the core version now matches the bundled Vite
• Removed `vitest` from pnpm peerDependencyRules: the managed `vitest` is pinned to the real bundled Vitest version
```

## `vpt print-file package.json`
Expand Down Expand Up @@ -61,9 +62,4 @@ catalog:
overrides:
vite@*: 'catalog:'
vitest@*: 'catalog:'
peerDependencyRules:
allowAny:
- vitest
allowedVersions:
vitest: '*'
```
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,4 @@ catalog:
overrides:
vite@*: 'catalog:'
vitest@*: 'catalog:'
peerDependencyRules:
allowAny:
- vitest
allowedVersions:
vitest: '*'
```
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ catalog:
overrides:
vite@*: 'catalog:'
vitest@*: 'catalog:'
peerDependencyRules:
allowAny:
- vitest
allowedVersions:
vitest: '*'
```

## `vp migrate --no-interactive`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,4 @@ catalog:
overrides:
vite@*: 'catalog:'
vitest@*: 'catalog:'
peerDependencyRules:
allowAny:
- vitest
allowedVersions:
vitest: '*'
```
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@ overrides:
vite@*: 'catalog:'
vitest@*: 'catalog:'
'@vitest/browser@*': <version>
peerDependencyRules:
allowAny:
- vitest
allowedVersions:
vitest: '*'
allowBuilds:
edgedriver: true
geckodriver: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ overrides:
allowBuilds:
edgedriver: true
geckodriver: true
peerDependencyRules:
allowAny:
- vitest
allowedVersions:
vitest: '*'
```

## `vp migrate --no-interactive`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ VITE+ - The Unified Toolchain for the Web
• Git hooks configured
• Package manager settings configured
• Removed `vite` from pnpm peerDependencyRules: the core version now matches the bundled Vite
• Removed `vitest` from pnpm peerDependencyRules: the managed `vitest` is pinned to the real bundled Vitest version
```

## `git config --local core.hooksPath`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,4 @@ catalog:
overrides:
vite@*: 'catalog:'
vitest@*: 'catalog:'
peerDependencyRules:
allowAny:
- vitest
allowedVersions:
vitest: '*'
```
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ catalog:
overrides:
vite@*: 'catalog:'
vitest@*: 'catalog:'
peerDependencyRules:
allowAny:
- vitest
allowedVersions:
vitest: '*'
```

## `vpt print-file packages/nuxt/nuxt.spec.ts`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ VITE+ - The Unified Toolchain for the Web
vitest 0.1.20 → <version>
@vitest/coverage-v8 4.1.6 → <version>
• Package manager settings configured
• Removed `vitest` from pnpm peerDependencyRules: the managed `vitest` is pinned to the real bundled Vitest version
```

## `vpt print-file package.json`
Expand Down Expand Up @@ -57,10 +58,8 @@ overrides:
peerDependencyRules:
allowAny:
- vite
- vitest
allowedVersions:
vite: '*'
vitest: '*'
```

## `vp migrate --no-interactive`
Expand Down Expand Up @@ -113,8 +112,6 @@ overrides:
peerDependencyRules:
allowAny:
- vite
- vitest
allowedVersions:
vite: '*'
vitest: '*'
```
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,10 @@ pnpm.overrides stay catalog: (not inlined to a version)
},
"peerDependencyRules": {
"allowAny": [
"vite",
"vitest"
"vite"
],
"allowedVersions": {
"vite": "*",
"vitest": "*"
"vite": "*"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ VITE+ - The Unified Toolchain for the Web
• Node version manager file migrated to .node-version
• Package manager settings configured
• Removed `vite` from pnpm peerDependencyRules: the core version now matches the bundled Vite
• Removed `vitest` from pnpm peerDependencyRules: the managed `vitest` is pinned to the real bundled Vitest version
→ Manual follow-up:
- Remove the "volta" field from package.json
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ VITE+ - The Unified Toolchain for the Web
vite → <version>
• Package manager settings configured
• Removed `vite` from pnpm peerDependencyRules: the core version now matches the bundled Vite
• Removed `vitest` from pnpm peerDependencyRules: the managed `vitest` is pinned to the real bundled Vitest version
• Skipped editor, hooks, and lint setup. Run `vp migrate --full` to apply them.
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ VITE+ - The Unified Toolchain for the Web
vite → <version>
• Package manager settings configured
• Removed `vite` from pnpm peerDependencyRules: the core version now matches the bundled Vite
• Removed `vitest` from pnpm peerDependencyRules: the managed `vitest` is pinned to the real bundled Vitest version
```

## `vpt print-file package.json`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,4 @@ catalog:
overrides:
vite@*: 'catalog:'
vitest@*: 'catalog:'
peerDependencyRules:
allowAny:
- vitest
allowedVersions:
vitest: '*'
```
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@ catalog:
overrides:
vite@*: 'catalog:'
vitest@*: 'catalog:'
peerDependencyRules:
allowAny:
- vitest
allowedVersions:
vitest: '*'
```

## `vpt print-file packages/app/package.json`
Expand Down
8 changes: 7 additions & 1 deletion docs/guide/migrate-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,13 @@ Migration converts the Volta `volta.node` pin to `.node-version`, because Vite+
- pnpm 12.17.0 and later: add the override `'vite-plugin-foo>vite:peer': '*'`. pnpm deprecated `peerDependencyRules` in this version.
- Earlier pnpm versions: add the rule `allowedVersions: { 'vite-plugin-foo>vite': '*' }`.

Migration removes only the plain `vite` key, so both forms stay.
Migration removes only the plain `vite` and `vitest` keys, so both forms stay.

**Vitest peer rule.** The managed `vitest` is pinned to the real bundled Vitest version (not an alias), so pnpm checks `vitest` peer ranges against a genuine version.

- Migration does not add `vitest` to `peerDependencyRules.allowAny` or `peerDependencyRules.allowedVersions`, also when the workspace uses Vitest directly. The rule was needed only while `vitest` aliased to the deleted `@voidzero-dev/vite-plus-test` wrapper; with the real version it only hides real incompatibilities.
- Migration removes `vitest` from `allowAny` and removes `allowedVersions.vitest` when its value is `'*'`, also when you wrote the entry. Another `allowedVersions.vitest` range, such as `'4 || 5'`, stays. The migrate summary names the removed rule.
- After migration, a package whose `vitest` peer range excludes the bundled Vitest produces a peer warning. Update the package, or widen its `vitest` peer range only, with the same per-package forms as for `vite` above.

**Other rules.**

Expand Down
Loading
Loading