Skip to content

Commit 31b9eb0

Browse files
committed
chore: Switch to tsgo.
1 parent d109517 commit 31b9eb0

16 files changed

Lines changed: 99 additions & 141 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- run: pnpm lint
2222
- run: pnpm build:all
2323
- run: pnpm check
24+
- run: pnpm check:playgrounds
2425

2526
test:
2627
runs-on: blacksmith-4vcpu-ubuntu-2404

‎CLAUDE.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,14 @@ pnpm test # Run vitest (unit + integration tests)
4343
pnpm test packages/void # Only test the core plugin
4444
pnpm lint # oxlint
4545
pnpm fmt # oxfmt --write .
46-
pnpm check # Typecheck all packages (tsc --noEmit)
46+
pnpm check # Typecheck framework packages (tsgo --noEmit)
47+
pnpm check:playgrounds # Typecheck playground apps (tsgo --noEmit)
4748
pnpm -C packages/vue typecheck # Typecheck a specific package
4849
```
4950

5051
## Monorepo Structure
5152

52-
pnpm workspaces. Shared dependency versions use the **pnpm catalog** in `pnpm-workspace.yaml` (typescript, tsdown, vite, @cloudflare/workers-types, wrangler). Make sure to run `pnpm install` after making package structure changes.
53+
pnpm workspaces. Shared dependency versions use the **pnpm catalog** in `pnpm-workspace.yaml` (`@typescript/native-preview`, tsdown, vite, @cloudflare/workers-types, wrangler). Make sure to run `pnpm install` after making package structure changes.
5354

5455
| Package | npm name | Purpose |
5556
| ------------------------------------------------ | -------------- | -------------------------------------------------------------- |

‎README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ pnpm -r build
5858
pnpm test # run tests
5959
pnpm lint # oxlint
6060
pnpm fmt # oxfmt
61-
pnpm check # typecheck all packages
61+
pnpm check # typecheck framework packages
62+
pnpm check:playgrounds # typecheck playground apps
6263
pnpm docs # local docs dev server
6364
```
6465

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"test:pages:svelte-solid": "vitest --run --project pages-svelte-solid",
1515
"lint": "oxlint",
1616
"fmt": "oxfmt --write .",
17-
"check": "pnpm -r --parallel typecheck",
17+
"check": "pnpm -F './packages/**' --parallel typecheck",
18+
"check:playgrounds": "pnpm -F './playground/**' --parallel typecheck",
1819
"docs": "cd docs && vitepress dev",
1920
"deploy:docs": "pnpm -F docs run deploy --project void-docs",
2021
"deploy:staging:docs": "pnpm -F docs run deploy --project void-docs-staging",

‎packages/void/src/auth/node.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { resolveVoidAuthMigrationSchema } from "./drizzle";
1010
export async function runLocalVoidAuthMigrations(
1111
root: string,
1212
dialect: VoidAuthDialect,
13-
persistRoot = join(root, ".void"),
14-
databaseId = "local",
13+
persistRoot: string = join(root, ".void"),
14+
databaseId: string = "local",
1515
configPath: string | null = findVoidAuthConfig(root),
1616
): Promise<void> {
1717
const authConfig = await loadVoidAuthConfig(configPath);

‎packages/void/src/cli/ascii.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const asciiArts = [
1+
export const asciiArts: string[] = [
22
`
33
▄ ▄ ▄▄▄ ▄ ▐▌
44
█ █ █ █ ▄ ▐▌

‎packages/void/src/plugin-migration.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ function readDatabaseUrl(root: string): string | undefined {
3535
export function migrationPlugin(
3636
root: string,
3737
dialect: DatabaseDialect,
38-
databaseId = "local",
39-
persistRoot = join(root, ".void"),
38+
databaseId: string = "local",
39+
persistRoot: string = join(root, ".void"),
4040
auth?: { enabled: boolean; configPath?: string | null },
4141
): Plugin {
4242
return {

‎packages/void/src/plugin-node-target.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { Plugin } from "vite";
55
import type { IncomingMessage, ServerResponse } from "node:http";
66

77
/** Imports that require CF bindings and are not available in Node.js mode. */
8-
export const CF_ONLY_IMPORTS = [
8+
export const CF_ONLY_IMPORTS: string[] = [
99
"void/db",
1010
"void/kv",
1111
"void/auth",

‎playground/named-layouts/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"devDependencies": {
1616
"@types/react": "^19.0.0",
1717
"@types/react-dom": "^19.0.0",
18+
"@typescript/native-preview": "catalog:",
1819
"@void/md": "workspace:*",
1920
"@void/react": "workspace:*",
20-
"typescript": "~5.8.3",
2121
"vite": "catalog:",
2222
"void": "workspace:*"
2323
}

‎playground/pg-test/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"devDependencies": {
1717
"@types/react": "^19.0.0",
1818
"@types/react-dom": "^19.0.0",
19+
"@typescript/native-preview": "catalog:",
1920
"@void/react": "workspace:*",
20-
"typescript": "~5.8.3",
2121
"vite": "catalog:",
2222
"void": "workspace:*"
2323
}

0 commit comments

Comments
 (0)