Skip to content

The Open Standard for Generative UI

chore: centralize typescript version with pnpm catalog (#645)

Shinobu Hayashic9bb7feb8f91
diff --git a/package.json b/package.json
index e4eb83b12..f9231c4ca 100644
--- a/package.json
+++ b/package.json
@@ -21,7 +21,7 @@
"prettier-plugin-organize-imports": "^3.2.4",
"publint": "^0.3.18",
"tsdown": "^0.21.7",
- "typescript": "^5.9.3"
+ "typescript": "catalog:"
},
"keywords": [
"openui",
diff --git a/packages/react-email/package.json b/packages/react-email/package.json
index 31ce70882..9a8a0d0f4 100644
--- a/packages/react-email/package.json
+++ b/packages/react-email/package.json
@@ -54,6 +54,6 @@
},
"devDependencies": {
"@types/react": "catalog:",
- "typescript": "^5"
+ "typescript": "catalog:"
}
}
diff --git a/packages/svelte-lang/package.json b/packages/svelte-lang/package.json
index caf374c14..2faf274d7 100644
--- a/packages/svelte-lang/package.json
+++ b/packages/svelte-lang/package.json
@@ -71,7 +71,7 @@
"jsdom": "catalog:",
"svelte": "^5.0.0",
"svelte-check": "^4.0.0",
- "typescript": "^5.0.0",
+ "typescript": "catalog:",
"vite": "^6.0.0",
"vitest": "^4.1.0"
}
diff --git a/packages/svelte-lang/src/__tests__/library.test.ts b/packages/svelte-lang/src/__tests__/library.test.ts
index 26e730b79..4dc368e91 100644
--- a/packages/svelte-lang/src/__tests__/library.test.ts
+++ b/packages/svelte-lang/src/__tests__/library.test.ts
@@ -66,8 +66,8 @@ describe("createLibrary", () => {
it("creates a library with a components record", () => {
const lib = createLibrary({ components: [TextContent, Container] });
- expect(lib.components.TextContent).toBe(TextContent);
- expect(lib.components.Container).toBe(Container);
+ expect(lib.components["TextContent"]).toBe(TextContent);
+ expect(lib.components["Container"]).toBe(Container);
expect(Object.keys(lib.components)).toHaveLength(2);
});
diff --git a/packages/vue-lang/package.json b/packages/vue-lang/package.json
index b1a0e6f4b..45da54c53 100644
--- a/packages/vue-lang/package.json
+++ b/packages/vue-lang/package.json
@@ -65,7 +65,7 @@
"@vitejs/plugin-vue": "^6.0.7",
"@vue/test-utils": "^2.4.0",
"jsdom": "catalog:",
- "typescript": "^5.0.0",
+ "typescript": "catalog:",
"vite": "^6.0.0",
"vitest": "^4.1.0",
"vue": "^3.5.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c76ef80d3..8a177a903 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -42,6 +42,9 @@ catalogs:
react-dom:
specifier: ^18.0.0 || ^19.0.0
version: 19.2.4
+ typescript:
+ specifier: ^5.9.3
+ version: 5.9.3
zod:
specifier: ^3.25.0 || ^4.0.0
version: 4.3.6
@@ -106,7 +109,7 @@ importers:
specifier: ^0.21.7
typescript:
- specifier: ^5.9.3
+ specifier: 'catalog:'
version: 5.9.3
docs:
@@ -1333,7 +1336,7 @@ importers:
specifier: 'catalog:'
version: 19.2.14
typescript:
- specifier: ^5
+ specifier: 'catalog:'
version: 5.9.3
packages/react-headless:
@@ -1640,7 +1643,7 @@ importers:
specifier: ^4.0.0
typescript:
- specifier: ^5.0.0
+ specifier: 'catalog:'
version: 5.9.3
vite:
specifier: ^6.0.0
@@ -1668,7 +1671,7 @@ importers:
specifier: 'catalog:'
version: 26.1.0
typescript:
- specifier: ^5.0.0
+ specifier: 'catalog:'
version: 5.9.3
vite:
specifier: ^6.0.0
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 2c695f4ee..1292b3f45 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -19,5 +19,6 @@ catalog:
jsdom: "^26.1.0"
react: "^18.3.1 || ^19.0.0"
react-dom: "^18.0.0 || ^19.0.0"
+ typescript: "^5.9.3"
zod: "^3.25.0 || ^4.0.0"
zustand: "^4.5.5"