Skip to content

Commit 925ab0c

Browse files
authored
chore: migrate from @yielded/effect-tsrs to @effect/tsgo tsrs (#1136)
1 parent b3abdfb commit 925ab0c

28 files changed

Lines changed: 51 additions & 66 deletions

File tree

‎bun.lock‎

Lines changed: 9 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/TOOLCHAIN.md‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@
33
Use Vite+ (`vp`) for commands and Bun for dependencies. Versions live in
44
[package.json](../package.json).
55

6-
| Command | Purpose |
7-
| ------------------ | --------------------------------------------------- |
8-
| `vp install` | Install dependencies and configure hooks |
9-
| `vp check` | Check formatting and lint |
10-
| `vp fmt` | Format files |
11-
| `vp run typecheck` | Check types and Effect diagnostics with effect-tsrs |
12-
| `vp run check` | Run all static checks |
13-
| `vp run test` | Run all workspace tests |
14-
| `vp run build` | Build packages, docs, and the Action |
15-
| `vp run ready` | Run check, test, and build before handoff |
16-
| `vp run docs:dev` | Start the docs server |
17-
| `vp env doctor` | Diagnose local setup |
6+
| Command | Purpose |
7+
| ------------------ | -------------------------------------------------------- |
8+
| `vp install` | Install dependencies and configure hooks |
9+
| `vp check` | Check formatting and lint |
10+
| `vp fmt` | Format files |
11+
| `vp run typecheck` | Check types and Effect diagnostics with effect-tsgo tsrs |
12+
| `vp run check` | Run all static checks |
13+
| `vp run test` | Run all workspace tests |
14+
| `vp run build` | Build packages, docs, and the Action |
15+
| `vp run ready` | Run check, test, and build before handoff |
16+
| `vp run docs:dev` | Start the docs server |
17+
| `vp env doctor` | Diagnose local setup |
1818

1919
Use `vp run <task>` for other tasks and `vp help` for options.
20-
Typechecking uses `effect-tsrs` for projects with Effect diagnostics and `tsrs` for
20+
Typechecking uses `effect-tsgo tsrs` for projects with Effect diagnostics and `tsrs` for
2121
the documentation project. Effect warnings remain visible but do not fail checks;
2222
TypeScript and configured Effect errors do. Neither checker requires patching after
2323
installation.
24-
`@effect/tsgo` remains available for its editor language service and tsconfig schema;
24+
`@effect/tsgo` also provides the editor language service and tsconfig schema;
2525
Oxlint handles linting.
2626

2727
## Postgres tests

‎examples/browser-speed/vite.config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default defineConfig({
3333
run: {
3434
tasks: {
3535
check: {
36-
command: "effect-tsrs diagnostics --type-check --project tsconfig.json",
36+
command: "effect-tsgo tsrs --noEmit -p tsconfig.json",
3737
cache: {
3838
input: [{ auto: true }, "src/**", "test/**", "tsconfig.json"],
3939
output: [],

‎examples/cold-start/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"type": "module",
55
"scripts": {
6-
"check": "effect-tsrs diagnostics --type-check --project tsconfig.json"
6+
"check": "effect-tsgo tsrs --noEmit -p tsconfig.json"
77
},
88
"devDependencies": {
99
"@cloudflare/workers-types": "catalog:",

‎examples/sandbox/vite.config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default defineConfig({
1010
tasks: {
1111
"db:generate": { command: "drizzle-kit generate", cache: false },
1212
check: {
13-
command: "effect-tsrs diagnostics --type-check --project tsconfig.json",
13+
command: "effect-tsgo tsrs --noEmit -p tsconfig.json",
1414
cache: false,
1515
},
1616
build: { command: "vp build && wrangler deploy --dry-run", cache: false },

‎examples/travel-planner/vite.config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export default defineConfig({
9191
},
9292
},
9393
check: {
94-
command: "effect-tsrs diagnostics --type-check --project tsconfig.json",
94+
command: "effect-tsgo tsrs --noEmit -p tsconfig.json",
9595
cache: {
9696
input: [
9797
{ auto: true },

‎package.json‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"ready": "vp run check && vp run test && vp run build",
2727
"check:record-format": "bun scripts/verify-record-format.ts",
2828
"typecheck": "vp run -F './packages/*' -F './examples/*' -F './tooling/*' -F './docs' --concurrency-limit 1 check && vp run check:scripts",
29-
"check:scripts": "effect-tsrs diagnostics --type-check --project scripts/tsconfig.json",
29+
"check:scripts": "effect-tsgo tsrs --noEmit -p scripts/tsconfig.json",
3030
"check:docs": "tsrs --noEmit -p docs/tsconfig.json"
3131
},
3232
"devDependencies": {
@@ -55,7 +55,6 @@
5555
"@yielded/agent-storage-sql": "workspace:*",
5656
"@yielded/agent-storage-sqlite": "workspace:*",
5757
"@yielded/agent-testing": "workspace:*",
58-
"@yielded/effect-tsrs": "catalog:",
5958
"alchemy": "catalog:",
6059
"effect": "catalog:",
6160
"effect-cf": "catalog:",
@@ -99,7 +98,7 @@
9998
"@effect/sql-pg": "4.1.2",
10099
"@effect/sql-sqlite-do": "4.1.2",
101100
"@effect/sql-sqlite-node": "4.1.2",
102-
"@effect/tsgo": "0.53.3",
101+
"@effect/tsgo": "0.73.2",
103102
"@effect/vitest": "4.1.2",
104103
"@fontsource-variable/ibm-plex-sans": "5.3.0",
105104
"@fontsource/ibm-plex-mono": "5.3.0",
@@ -153,7 +152,6 @@
153152
"@yielded/jose": "0.1.0-beta.47",
154153
"drizzle-orm": "1.0.0-rc.4",
155154
"drizzle-kit": "1.0.0-rc.4",
156-
"@yielded/effect-tsrs": "0.2.2",
157155
"tsrs": "0.18.0-ts7.1.0-dev.20260929"
158156
},
159157
"catalogs": {

‎packages/ai-decision/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"scripts": {
2626
"build": "vp pack",
27-
"check": "effect-tsrs diagnostics --type-check --project tsconfig.json",
27+
"check": "effect-tsgo tsrs --noEmit -p tsconfig.json",
2828
"test": "vp test"
2929
},
3030
"devDependencies": {

‎packages/effect-agent/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
},
134134
"scripts": {
135135
"build": "vp pack",
136-
"check": "effect-tsrs diagnostics --type-check --project tsconfig.json",
136+
"check": "effect-tsgo tsrs --noEmit -p tsconfig.json",
137137
"test": "vp test --passWithNoTests"
138138
},
139139
"dependencies": {

‎packages/platform-cloudflare/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
},
4242
"scripts": {
4343
"build": "vp pack",
44-
"check": "effect-tsrs diagnostics --type-check --project tsconfig.json"
44+
"check": "effect-tsgo tsrs --noEmit -p tsconfig.json"
4545
},
4646
"dependencies": {
4747
"@effect/platform-browser": "catalog:",

0 commit comments

Comments
 (0)