Skip to content

Commit 9b0ee7f

Browse files
committed
chore: update TypeScript configuration and dependencies to use native-preview
1 parent b22ad29 commit 9b0ee7f

File tree

15 files changed

+178
-101
lines changed

15 files changed

+178
-101
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
},
1111
"[typescript]": {
1212
"editor.defaultFormatter": "oxc.oxc-vscode"
13-
}
13+
},
14+
"typescript.native-preview.tsdk": "./node_modules/.bin/tsgo"
1415
}

apps/docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7-
"typecheck": "tsc",
8-
"typecheck:watch": "tsc --watch",
7+
"typecheck": "tsgo",
8+
"typecheck:watch": "tsgo --watch",
99
"build": "vite build",
1010
"dev": "vite",
1111
"preview": "vite preview"
@@ -40,9 +40,9 @@
4040
"@types/node": "catalog:",
4141
"@types/react": "catalog:",
4242
"@types/react-dom": "catalog:",
43+
"@typescript/native-preview": "catalog:",
4344
"@vitejs/plugin-react-swc": "catalog:",
4445
"oxlint": "catalog:",
45-
"typescript": "catalog:",
4646
"vite": "catalog:"
4747
}
4848
}

config/tsdown/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"scripts": {
1212
"build": "tsdown",
1313
"build:watch": "tsdown --watch",
14-
"typecheck": "tsc --noEmit"
14+
"typecheck": "tsgo --noEmit"
1515
},
1616
"dependencies": {
1717
"@vanilla-extract/rollup-plugin": "catalog:",
@@ -21,6 +21,6 @@
2121
"devDependencies": {
2222
"@config/typescript": "workspace:^",
2323
"@types/node": "catalog:",
24-
"typescript": "catalog:"
24+
"@typescript/native-preview": "catalog:"
2525
}
2626
}

libs/hooks/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"scripts": {
2727
"build": "tsdown",
2828
"build:watch": "tsdown --watch",
29-
"typecheck": "tsc --noEmit"
29+
"typecheck": "tsgo --noEmit"
3030
},
3131
"dependencies": {
3232
"@dldc/utils": "workspace:^",
@@ -42,7 +42,7 @@
4242
"@types/node": "catalog:",
4343
"@types/react": "catalog:",
4444
"@types/react-dom": "catalog:",
45-
"tsdown": "catalog:",
46-
"typescript": "catalog:"
45+
"@typescript/native-preview": "catalog:",
46+
"tsdown": "catalog:"
4747
}
4848
}

libs/ui-ariakit/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"scripts": {
3838
"build": "tsdown",
3939
"build:watch": "tsdown --watch",
40-
"typecheck": "tsc --noEmit"
40+
"typecheck": "tsgo --noEmit"
4141
},
4242
"dependencies": {
4343
"@ariakit/react": "catalog:",
@@ -51,7 +51,7 @@
5151
"@types/node": "catalog:",
5252
"@types/react": "catalog:",
5353
"@types/react-dom": "catalog:",
54-
"tsdown": "catalog:",
55-
"typescript": "catalog:"
54+
"@typescript/native-preview": "catalog:",
55+
"tsdown": "catalog:"
5656
}
5757
}

libs/ui-base/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"scripts": {
1616
"build": "tsdown",
1717
"build:watch": "tsdown --watch",
18-
"typecheck": "tsc --noEmit"
18+
"typecheck": "tsgo --noEmit"
1919
},
2020
"dependencies": {
2121
"@base-ui/react": "catalog:",
@@ -29,7 +29,7 @@
2929
"@types/node": "catalog:",
3030
"@types/react": "catalog:",
3131
"@types/react-dom": "catalog:",
32-
"tsdown": "catalog:",
33-
"typescript": "catalog:"
32+
"@typescript/native-preview": "catalog:",
33+
"tsdown": "catalog:"
3434
}
3535
}

libs/ui-components/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"scripts": {
2828
"build": "tsdown",
2929
"build:watch": "tsdown --watch",
30-
"typecheck": "tsc --noEmit"
30+
"typecheck": "tsgo --noEmit"
3131
},
3232
"dependencies": {
3333
"@dldc/hooks": "workspace:^",
@@ -47,8 +47,8 @@
4747
"@types/node": "catalog:",
4848
"@types/react": "catalog:",
4949
"@types/react-dom": "catalog:",
50+
"@typescript/native-preview": "catalog:",
5051
"@vanilla-extract/rollup-plugin": "catalog:",
51-
"tsdown": "catalog:",
52-
"typescript": "catalog:"
52+
"tsdown": "catalog:"
5353
}
5454
}

libs/ui-core-tailwind-plugin/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"scripts": {
1515
"build": "tsdown",
1616
"build:watch": "tsdown --watch",
17-
"typecheck": "tsc --noEmit"
17+
"typecheck": "tsgo --noEmit"
1818
},
1919
"dependencies": {
2020
"@dldc/ui-core": "workspace:^",
@@ -23,7 +23,7 @@
2323
"devDependencies": {
2424
"@config/typescript": "workspace:*",
2525
"@types/node": "catalog:",
26-
"tsdown": "catalog:",
27-
"typescript": "catalog:"
26+
"@typescript/native-preview": "catalog:",
27+
"tsdown": "catalog:"
2828
}
2929
}

libs/ui-core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"scripts": {
2020
"build": "tsdown",
2121
"build:watch": "tsdown --watch",
22-
"typecheck": "tsc --noEmit"
22+
"typecheck": "tsgo --noEmit"
2323
},
2424
"dependencies": {
2525
"@dldc/utils": "workspace:^",
@@ -31,7 +31,7 @@
3131
"@config/tsdown": "workspace:^",
3232
"@config/typescript": "workspace:*",
3333
"@types/node": "catalog:",
34-
"tsdown": "catalog:",
35-
"typescript": "catalog:"
34+
"@typescript/native-preview": "catalog:",
35+
"tsdown": "catalog:"
3636
}
3737
}

libs/ui-patterns/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"scripts": {
1616
"build": "tsdown",
1717
"build:watch": "tsdown --watch",
18-
"typecheck": "tsc --noEmit"
18+
"typecheck": "tsgo --noEmit"
1919
},
2020
"dependencies": {
2121
"@ariakit/react": "catalog:",
@@ -35,7 +35,7 @@
3535
"@types/node": "catalog:",
3636
"@types/react": "catalog:",
3737
"@types/react-dom": "catalog:",
38-
"tsdown": "catalog:",
39-
"typescript": "catalog:"
38+
"@typescript/native-preview": "catalog:",
39+
"tsdown": "catalog:"
4040
}
4141
}

0 commit comments

Comments
 (0)