Skip to content

Commit 62c3d5e

Browse files
Brooooooklynclaude
andcommitted
fix(ci): expect 0.0.0 in ecosystem-ci verify-install
The ecosystem-ci pack step pins packages/cli to 0.0.0 before packing, so the installed local build reports 0.0.0. verify-install.ts still compared against the committed packages/cli/package.json version (0.1.22 after the release bump), failing every ecosystem E2E project with "expected version 0.1.22, got 0.0.0". Pin the expected version to 0.0.0, matching the fixed `vite-plus-0.0.0.tgz` that patch-project.ts references. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent aef9c85 commit 62c3d5e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

ecosystem-ci/verify-install.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import { createRequire } from 'node:module';
22

3-
import cliPkg from '../packages/cli/package.json' with { type: 'json' };
4-
53
const require = createRequire(`${process.cwd()}/`);
64

7-
const expectedVersion = cliPkg.version;
5+
// The ecosystem-ci pack step pins packages/cli to 0.0.0 before `pnpm pack`, so
6+
// a correctly installed local build always reports 0.0.0 — never the published
7+
// registry version (which `patch-project.ts` likewise references as a fixed
8+
// `vite-plus-0.0.0.tgz`).
9+
const expectedVersion = '0.0.0';
810

911
try {
1012
const pkg = require('vite-plus/package.json') as { version: string; name: string };

0 commit comments

Comments
 (0)