mirror of
https://github.com/vitejs/vite.git
synced 2024-11-22 07:09:05 +00:00
chore: fix internal plugins publish (#9897)
This commit is contained in:
parent
90d452324b
commit
2a66f89855
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user