Skip to content

Commit

Permalink
chore: fix internal plugins publish (#9897)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev authored Aug 29, 2022
1 parent 90d4523 commit 2a66f89
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/releaseUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,11 @@ export async function getLatestTag(pkgName: string): Promise<string> {
}

export async function getActiveVersion(pkgName: string): Promise<string> {
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
}

Expand Down

0 comments on commit 2a66f89

Please sign in to comment.