Skip to content
Draft
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
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# pkg.pr.new registry bridge (added by test-pkg-pr-new-migrate.sh)
registry=https://pkg-pr-registry-bridge.render.vip/
Comment on lines +1 to +2

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-high high

The custom registry bridge https://pkg-pr-registry-bridge.render.vip/ seems to have been added automatically by a migration test script (test-pkg-pr-new-migrate.sh). Committing this to the repository will force all developers and CI environments to use this temporary registry bridge, which can lead to slow builds, installation failures, or security risks if the bridge is unavailable or compromised.

Please remove .npmrc from the commit or restore the default registry configuration.

1 change: 1 addition & 0 deletions .vite-hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vp staged
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["VoidZero.vite-plus-extension-pack"]
}
21 changes: 21 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"editor.defaultFormatter": "oxc.oxc-vscode",
"[javascript]": {
"editor.defaultFormatter": "oxc.oxc-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "oxc.oxc-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "oxc.oxc-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "oxc.oxc-vscode"
},
"oxc.fmt.configPath": "./vite.config.ts",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"editor.codeActionsOnSave": {
"source.fixAll.oxc": "explicit"
}
}
16 changes: 16 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!--VITE PLUS START-->

# Using Vite+, the Unified Toolchain for the Web

This project is using Vite+, a unified toolchain built on top of Vite, Rolldown, Vitest, tsdown, Oxlint, Oxfmt, and Vite Task. Vite+ wraps runtime management, package management, and frontend tooling in a single global CLI called `vp`. Vite+ is distinct from Vite, and it invokes Vite through `vp dev` and `vp build`. Run `vp help` to print a list of commands and `vp <command> --help` for information about a specific command.

Docs are local at `node_modules/vite-plus/docs` or online at https://viteplus.dev/guide/.

## Review Checklist

- [ ] Run `vp install` after pulling remote changes and before getting started.
- [ ] Run `vp check` and `vp test` to format, lint, type check and test changes.
- [ ] Check if there are `vite.config.ts` tasks or `package.json` scripts necessary for validation, run via `vp run <script>`.
- [ ] If setup, runtime, or package-manager behavior looks wrong, run `vp env doctor` and include its output when asking for help.

<!--VITE PLUS END-->
20 changes: 8 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,21 @@
"build:states": "node ./scripts/states.ts",
"prepublishOnly": "vp run build",
"ci": "vp check",
"release": "release-it"
"release": "release-it",
"prepare": "vp config"
},
"devDependencies": {
"@vitest/coverage-v8": "4.1.5",
"@vitest/browser-webdriverio": "catalog:",
"@vitest/coverage-v8": "4.1.9",
"release-it": "20.0.1",
"vite": "npm:@voidzero-dev/vite-plus-core@0.1.16",
"vite": "catalog:",
"vite-plugin-dts": "4.5.4",
"vite-plus": "0.1.19",
"vitest": "npm:@voidzero-dev/vite-plus-test@0.1.16",
"vite-plus": "catalog:",
"vitest": "catalog:",
"webdriverio": "9.27.0"
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
"packageManager": "pnpm@10.33.0",
"pnpm": {
"overrides": {
"vite": "npm:@voidzero-dev/vite-plus-core@0.1.16",
"vitest": "npm:@voidzero-dev/vite-plus-test@0.1.16"
}
}
"packageManager": "pnpm@10.33.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Since overrides is not supported in pnpm-workspace.yaml, you should define the catalog-based overrides here in the root package.json under the pnpm.overrides field. This ensures that all transitive dependencies of vite and vitest are correctly forced to use the catalog versions.

	"packageManager": "pnpm@10.33.0",
	"pnpm": {
		"overrides": {
			"vite": "catalog:",
			"vitest": "catalog:"
		}
	}

}
1,268 changes: 706 additions & 562 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
overrides:
vite: "catalog:"
vitest: "catalog:"
catalog:
Comment on lines +1 to +4

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

In pnpm, the overrides field is not supported as a top-level configuration in pnpm-workspace.yaml. It must be defined in the root package.json under the pnpm.overrides property. Placing it here will cause pnpm to ignore these overrides, which prevents transitive dependencies of vite and vitest from being correctly resolved to the catalog versions.

Please remove this block from pnpm-workspace.yaml and add it back to your root package.json under pnpm.overrides.

catalog:

vite: npm:@voidzero-dev/vite-plus-core@0.0.0-commit.941383b070d18b3e1ae20738d80019a0b72a398a
vitest: 4.1.9
vite-plus: 0.0.0-commit.941383b070d18b3e1ae20738d80019a0b72a398a
"@vitest/browser-webdriverio": 4.1.9
allowBuilds:
edgedriver: true
geckodriver: true
peerDependencyRules:
allowAny:
- vite
- vitest
allowedVersions:
vite: "*"
vitest: "*"
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import { webdriverio } from "vite-plus/test/browser-webdriverio";
const rootDir = dirname(fileURLToPath(import.meta.url));

export default defineConfig({
staged: {
"*": "vp check --fix",
},
fmt: {
ignorePatterns: ["dist", "coverage", "docs"],
singleQuote: false,
Expand Down
Loading