Skip to content

Commit 2a66f89

Browse files
authored
chore: fix internal plugins publish (#9897)
1 parent 90d4523 commit 2a66f89

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/releaseUtils.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,11 @@ export async function getLatestTag(pkgName: string): Promise<string> {
198198
}
199199

200200
export async function getActiveVersion(pkgName: string): Promise<string> {
201-
return (await run('npm', ['info', pkgName, 'version'], { stdio: 'pipe' }))
201+
const npmName =
202+
pkgName === 'vite' || pkgName === 'create-vite'
203+
? pkgName
204+
: `@vitejs/${pkgName}`
205+
return (await run('npm', ['info', npmName, 'version'], { stdio: 'pipe' }))
202206
.stdout
203207
}
204208

0 commit comments

Comments
 (0)