Migrate or align frontend repositories to the stock VitePlus workflow. Use when standardizing package or monorepo repos around `vp`, `voidzero-dev/setup-vp`, `vite-plus/test`, and VitePlus-native CI, test, and packaging flows, including updating scripts, test config, CI setup, and packaging commands.
94
94%
Does it follow best practices?
Impact
95%
2.63xAverage score across 3 eval scenarios
Passed
No known issues
The platform team at Acme is creating a new shared TypeScript library, @acme/config, that will be published to the internal npm registry and consumed by multiple frontend applications. The library has no build setup yet — just source files and a bare package.json. The team uses pnpm as their package manager across all repos, and they've standardized on VitePlus as their frontend toolchain.
Before the library can be published and used downstream, it needs a complete build setup: packaging configuration, a pre-commit hook that enforces linting on staged files, and updated contributor documentation so other developers know how to work with the repo. The team wants everything set up consistently with how their other VitePlus repos are configured, and they don't want to introduce extra config files that will need to be kept in sync over time.
Produce:
package.json with correct scripts and any necessary configuration fieldsvite.config.ts with packaging and hook configurationREADME.md with current contributor instructions (install, test, build steps)Do NOT produce a tsdown.config.ts or equivalent separate packaging config file unless there is a specific reason to.
The following files are provided as inputs. Extract them before beginning.
=============== FILE: package.json =============== { "name": "@acme/config", "version": "0.1.0", "type": "module", "scripts": { "test": "vitest run", "typecheck": "tsc --noEmit" }, "devDependencies": { "vite-plus": "^1.0.0", "typescript": "^5.4.0" } }
=============== FILE: README.md ===============
Shared configuration helpers for the Acme platform.
Install dependencies:
pnpm installRun tests:
pnpm testThis package is published to the internal npm registry. See the platform team's release docs for details.
=============== FILE: src/index.ts =============== export { loadConfig } from './load.js' export { validateConfig } from './validate.js' export type { AcmeConfig, ConfigOptions } from './types.js'