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

Commit 6be7e50

Browse files
authored
chore(deps): TS 5 (#75)
1 parent a4aa8b4 commit 6be7e50

26 files changed

Lines changed: 275 additions & 498 deletions

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@
1616
"trailingComma": "all"
1717
},
1818
"dependencies": {
19-
"@swc/core": "^1.3.40"
19+
"@swc/core": "^1.3.42"
2020
},
2121
"peerDependencies": {
2222
"vite": "^4"
2323
},
2424
"devDependencies": {
25-
"@playwright/test": "1.30.0",
25+
"@playwright/test": "^1.32.1",
2626
"@types/fs-extra": "^11.0.1",
27-
"@types/node": "^18.15.0",
27+
"@types/node": "^18.15.10",
2828
"@vitejs/release-scripts": "^1.1.0",
29-
"esbuild": "^0.17.11",
30-
"fs-extra": "^11.1.0",
29+
"esbuild": "^0.17.14",
30+
"fs-extra": "^11.1.1",
3131
"picocolors": "^1.0.0",
32-
"prettier": "^2.8.4",
33-
"tsx": "^3.12.3",
34-
"typescript": "^4.9.5",
35-
"vite": "^4.1.4"
32+
"prettier": "^2.8.7",
33+
"tsx": "^3.12.6",
34+
"typescript": "^5.0.2",
35+
"vite": "^4.2.1"
3636
}
3737
}

playground/decorators/__tests__/decorators.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect, test } from "@playwright/test";
2-
import { setupDevServer, setupBuildAndPreview } from "../../utils";
2+
import { setupDevServer, setupBuildAndPreview } from "../../utils.ts";
33

44
test("Decorators build", async ({ page }) => {
55
const { testUrl, server } = await setupBuildAndPreview("decorators");

playground/decorators/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
22
"name": "playground-decorators",
3+
"type": "module",
34
"private": true,
45
"scripts": {
56
"dev": "vite",
6-
"build": "vite build"
7+
"build": "vite build",
8+
"preview": "vite preview"
79
},
810
"dependencies": {
911
"react": "^18.2.0",
1012
"react-dom": "^18.2.0"
1113
},
1214
"devDependencies": {
13-
"@types/react": "^18.0.28",
15+
"@types/react": "^18.0.29",
1416
"@types/react-dom": "^18.0.11",
1517
"@vitejs/plugin-react-swc": "../../dist"
1618
}

playground/decorators/tsconfig.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@
1010
"isolatedModules": true,
1111
"skipLibCheck": true,
1212
"experimentalDecorators": true,
13-
14-
/* Imports */
15-
"moduleResolution": "node", // Allow `index` imports
16-
"resolveJsonModule": true, // Allow json import
17-
"forceConsistentCasingInFileNames": true, // Avoid difference in case between file name and import
13+
"moduleResolution": "bundler",
14+
"allowImportingTsExtensions": true,
15+
"resolveJsonModule": true,
1816

1917
/* Linting */
2018
"strict": true,

playground/emotion-plugin/__tests__/emotion-plugin.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
setupBuildAndPreview,
55
setupWaitForLogs,
66
expectColor,
7-
} from "../../utils";
7+
} from "../../utils.ts";
88

99
test("Emotion plugin build", async ({ page }) => {
1010
const { testUrl, server } = await setupBuildAndPreview("emotion-plugin");

playground/emotion-plugin/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"name": "playground-emotion",
2+
"name": "playground-emotion-plugin",
3+
"type": "module",
34
"private": true,
45
"scripts": {
56
"dev": "vite",
@@ -13,9 +14,9 @@
1314
"react-dom": "^18.2.0"
1415
},
1516
"devDependencies": {
16-
"@types/react": "^18.0.28",
17+
"@types/react": "^18.0.29",
1718
"@types/react-dom": "^18.0.11",
1819
"@vitejs/plugin-react-swc": "../../dist",
19-
"@swc/plugin-emotion": "^2.5.48"
20+
"@swc/plugin-emotion": "^2.5.49"
2021
}
2122
}

playground/emotion/__tests__/emotion.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
setupBuildAndPreview,
55
setupWaitForLogs,
66
expectColor,
7-
} from "../../utils";
7+
} from "../../utils.ts";
88

99
test("Emotion build", async ({ page }) => {
1010
const { testUrl, server } = await setupBuildAndPreview("emotion");

playground/emotion/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
22
"name": "playground-emotion",
3+
"type": "module",
34
"private": true,
45
"scripts": {
56
"dev": "vite",
6-
"build": "vite build"
7+
"build": "vite build",
8+
"preview": "vite preview"
79
},
810
"dependencies": {
911
"@emotion/react": "^11.10.6",
@@ -12,7 +14,7 @@
1214
"react-dom": "^18.2.0"
1315
},
1416
"devDependencies": {
15-
"@types/react": "^18.0.28",
17+
"@types/react": "^18.0.29",
1618
"@types/react-dom": "^18.0.11",
1719
"@vitejs/plugin-react-swc": "../../dist"
1820
}

playground/emotion/tsconfig.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@
1010
"noEmit": true,
1111
"isolatedModules": true,
1212
"skipLibCheck": true,
13-
14-
/* Imports */
15-
"moduleResolution": "node", // Allow `index` imports
16-
"resolveJsonModule": true, // Allow json import
17-
"forceConsistentCasingInFileNames": true, // Avoid difference in case between file name and import
13+
"moduleResolution": "bundler",
14+
"allowImportingTsExtensions": true,
15+
"resolveJsonModule": true,
1816

1917
/* Linting */
2018
"strict": true,

playground/hmr/__tests__/hmr.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
setupDevServer,
44
setupBuildAndPreview,
55
setupWaitForLogs,
6-
} from "../../utils";
6+
} from "../../utils.ts";
77

88
test("Default build", async ({ page }) => {
99
const { testUrl, server } = await setupBuildAndPreview("hmr");

0 commit comments

Comments
 (0)