Skip to content

Commit 3defa68

Browse files
committed
chore: catalog typescript/vite, upgrade to Vite 8, wire up decorator lowering in vitest
Adds a pnpm catalog entry pinning typescript to ^6.0.3 and vite to ^8.1.4, and switches all packages to consume it. Enables useDefineForClassFields and registers @praxisjs/vite-plugin's decoratorLoweringPlugin in vitest.config.ts, required by vite-plugin 4.0.0's move to Vite 8's oxc transform. Corrects the stale useDefineForClassFields example in the getting-started guide.
1 parent c0543d4 commit 3defa68

13 files changed

Lines changed: 369 additions & 768 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@morphos/core": patch
3+
"@morphos/inputs": patch
4+
"@morphos/overlays": patch
5+
"@morphos/layout": patch
6+
"@morphos/feedback": patch
7+
---
8+
9+
Bump TypeScript to 6.0.3 and Vite to 8.1.4 via a shared pnpm catalog entry. Internal build tooling change only, no public API impact.

‎docs/content/docs/guide/getting-started.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Morphos requires the same TypeScript settings as PraxisJS:
5151
{
5252
"compilerOptions": {
5353
"target": "ES2022",
54-
"useDefineForClassFields": false,
54+
"useDefineForClassFields": true,
5555
"jsx": "react-jsx",
5656
"jsxImportSource": "@praxisjs/jsx"
5757
}

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"@praxisjs/jsx": "^0.7.3",
3838
"@praxisjs/runtime": "^0.5.4",
3939
"@praxisjs/shared": "^0.3.1",
40+
"@praxisjs/vite-plugin": "^4.0.1",
4041
"@types/node": "^25.9.1",
4142
"@vitest/coverage-v8": "^4.1.2",
4243
"eslint": "^10.1.0",
@@ -46,7 +47,7 @@
4647
"husky": "^9.1.7",
4748
"jsdom": "^29.0.1",
4849
"lint-staged": "^16.4.0",
49-
"typescript": "^5.9.3",
50+
"typescript": "catalog:",
5051
"typescript-eslint": "^8.58.0",
5152
"vitest": "^4.1.2"
5253
}

‎packages/core/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
"@praxisjs/jsx": "^0.7.3",
2929
"@praxisjs/runtime": "^0.5.4",
3030
"@praxisjs/shared": "^0.3.1",
31-
"typescript": "^5.9.3"
31+
"typescript": "catalog:"
3232
}
3333
}

‎packages/feedback/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
"@praxisjs/jsx": "^0.7.3",
3131
"@praxisjs/runtime": "^0.5.4",
3232
"@praxisjs/shared": "^0.3.1",
33-
"typescript": "^5.9.3"
33+
"typescript": "catalog:"
3434
}
3535
}

‎packages/inputs/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
"@praxisjs/jsx": "^0.7.3",
3131
"@praxisjs/runtime": "^0.5.4",
3232
"@praxisjs/shared": "^0.3.1",
33-
"typescript": "^5.9.3"
33+
"typescript": "catalog:"
3434
}
3535
}

‎packages/layout/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
"@praxisjs/jsx": "^0.7.3",
3131
"@praxisjs/runtime": "^0.5.4",
3232
"@praxisjs/shared": "^0.3.1",
33-
"typescript": "^5.9.3"
33+
"typescript": "catalog:"
3434
}
3535
}

‎packages/overlays/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
"@praxisjs/jsx": "^0.7.3",
3131
"@praxisjs/runtime": "^0.5.4",
3232
"@praxisjs/shared": "^0.3.1",
33-
"typescript": "^5.9.3"
33+
"typescript": "catalog:"
3434
}
3535
}

0 commit comments

Comments
 (0)