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
fix(cli/create): only reorder install when template ships ESLint/Prettier
CI failure: vp create library (npm/yarn/bun) was failing with
ERR_PNPM_NO_MATCHING_VERSION for @voidzero-dev/vite-plus-core@0.0.0.
The previous commit added an unconditional pre-rewrite install so that
`@oxlint/migrate` could resolve the template's ESLint plugin imports.
That broke builtin templates (vite:library, vite:application,
vite:monorepo) — their scaffold already references vite-plus and
relies on `rewrite*Project` to add the tarball overrides BEFORE the
first install. Running install first made pnpm fall back to the npm
registry for vite-plus-core@0.0.0, which CI publishes only as a local
tarball.
Gate the migrate-before-rewrite reorder on `detectEslintProject` /
`detectPrettierProject`. Builtin templates have neither, so they keep
the original rewrite → install → fmt flow (unchanged from main).
Remote templates like `create-vite --template react-ts` do ship
ESLint/Prettier, so they still get the reorder that merges .oxlintrc
/.oxfmtrc into vite.config.ts.
0 commit comments