From 2a66f89855d43af265fd3ce245eccd2b3d767235 Mon Sep 17 00:00:00 2001 From: patak Date: Mon, 29 Aug 2022 16:09:45 +0200 Subject: [PATCH] chore: fix internal plugins publish (#9897) --- scripts/releaseUtils.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/releaseUtils.ts b/scripts/releaseUtils.ts index de7c8c3716cb18..daf51fc9180304 100644 --- a/scripts/releaseUtils.ts +++ b/scripts/releaseUtils.ts @@ -198,7 +198,11 @@ export async function getLatestTag(pkgName: string): Promise { } export async function getActiveVersion(pkgName: string): Promise { - return (await run('npm', ['info', pkgName, 'version'], { stdio: 'pipe' })) + const npmName = + pkgName === 'vite' || pkgName === 'create-vite' + ? pkgName + : `@vitejs/${pkgName}` + return (await run('npm', ['info', npmName, 'version'], { stdio: 'pipe' })) .stdout }