Skip to content

Commit

Permalink
fix(release): remove create-vite plugin bump (#11284)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Dec 9, 2022
1 parent bf234a6 commit 022f406
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions scripts/releaseUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,24 +242,6 @@ export async function updateTemplateVersions(): Promise<void> {
const pkgPath = path.join(dir, template, `package.json`)
const pkg = require(pkgPath)
pkg.devDependencies.vite = `^` + viteVersion
if (template.startsWith('template-vue')) {
pkg.devDependencies['@vitejs/plugin-vue'] =
`^` +
(
await fs.readJSON(
path.resolve(__dirname, '../packages/plugin-vue/package.json'),
)
).version
}
if (template.startsWith('template-react')) {
pkg.devDependencies['@vitejs/plugin-react'] =
`^` +
(
await fs.readJSON(
path.resolve(__dirname, '../packages/plugin-react/package.json'),
)
).version
}
writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n')
}
}

0 comments on commit 022f406

Please sign in to comment.