Skip to content
This repository was archived by the owner on Jul 24, 2025. It is now read-only.

Commit a72dc8e

Browse files
committed
release: v3.1.0
1 parent 9e0cc7c commit a72dc8e

7 files changed

+8
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
node_modules/
33
dist/
44
playground-temp/
5+
.swc/
Binary file not shown.
Binary file not shown.
Binary file not shown.

CHANGELOG.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@
44

55
## 3.1.0
66

7-
- Update embedded refresh runtime to 0.14 (fixes [#46](https://github.com/vitejs/vite-plugin-react-swc/issues/46))
8-
9-
## 3.1.0-beta.2
10-
11-
- Fix HMR for styled components exported alongside other components
12-
- Support TypeScript decorators via the new `tsDecorators` option. This requires `experimentalDecorators` in tsconfig.
137
- Support plugins via the new `plugins` options
8+
- Support TypeScript decorators via the new `tsDecorators` option. This requires `experimentalDecorators` in tsconfig.
9+
- Fix HMR for styled components exported alongside other components
10+
- Update embedded refresh runtime to 0.14 (fixes [#46](https://github.com/vitejs/vite-plugin-react-swc/issues/46))
1411

1512
## 3.0.1
1613

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vitejs/plugin-react-swc-monorepo",
3-
"version": "3.1.0-beta.2",
3+
"version": "3.1.0",
44
"type": "module",
55
"private": true,
66
"scripts": {

scripts/release.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ release({
2121
},
2222
generateChangelog: (_, version) => {
2323
console.log(colors.dim("Write package.json & CHANGELOG.md"));
24+
const pkg = JSON.parse(readFileSync("package.json", "utf-8"));
25+
pkg.version = version;
26+
writeFileSync("package.json", `${JSON.stringify(pkg, null, 2)}\n`);
2427
writeFileSync(
2528
"CHANGELOG.md",
2629
changelog.replace("## Unreleased", `## Unreleased\n\n## ${version}`),

0 commit comments

Comments
 (0)