Skip to content

Commit 3dd4fed

Browse files
committed
chore: tweak release.ts
1 parent 9393e5c commit 3dd4fed

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/release.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ const nextH2RE = /^## /gm
66

77
release({
88
repo: 'vite-plugin-react',
9-
packages: ['plugin-react', 'plugin-react-swc', 'plugin-react-oxc'],
9+
packages: [
10+
'plugin-react',
11+
'plugin-react-swc',
12+
'plugin-react-oxc',
13+
'plugin-rsc',
14+
],
1015
getPkgDir(pkg) {
1116
if (pkg === 'plugin-react-swc') {
1217
return `packages/${pkg}/dist`
@@ -15,6 +20,8 @@ release({
1520
},
1621
toTag: (pkg, version) => `${pkg}@${version}`,
1722
logChangelog: async (pkgName) => {
23+
if (pkgName === 'plugin-rsc') return
24+
1825
const changelog = readFileSync(`packages/${pkgName}/CHANGELOG.md`, 'utf-8')
1926
if (!changelog.includes('## Unreleased')) {
2027
throw new Error("Can't find '## Unreleased' section in CHANGELOG.md")
@@ -25,6 +32,8 @@ release({
2532
console.log(colors.dim(changelog.slice(index, nextH2Pos).trim()))
2633
},
2734
generateChangelog: async (pkgName, version) => {
35+
if (pkgName === 'plugin-rsc') return
36+
2837
if (pkgName === 'plugin-react-swc') {
2938
console.log(colors.cyan('\nUpdating package.json version...'))
3039
const pkgJsonPath = `packages/${pkgName}/package.json`

0 commit comments

Comments
 (0)