Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .changeset/26276-ui-package-test-vitest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
'@object-ui/app-shell': patch
'@object-ui/components': patch
'@object-ui/fields': patch
'@object-ui/plugin-calendar': patch
'@object-ui/plugin-charts': patch
'@object-ui/plugin-chatbot': patch
'@object-ui/plugin-dashboard': patch
'@object-ui/plugin-editor': patch
'@object-ui/plugin-form': patch
'@object-ui/plugin-gantt': patch
'@object-ui/plugin-grid': patch
'@object-ui/plugin-kanban': patch
'@object-ui/plugin-map': patch
'@object-ui/plugin-markdown': patch
'@object-ui/plugin-timeline': patch
'@object-ui/plugin-tree': patch
'@object-ui/plugin-view': patch
'@object-ui/providers': patch
'@object-ui/react': patch
'@object-ui/react-runtime': patch
'@object-ui/sdui-parser': patch
'@object-ui/types': patch
---

chore(ui): every ui package whose `test` script calls `vitest` now declares `vitest` as a devDependency, so `pnpm --filter @object-ui/PKG test` runs from the repository root

Clause-②: no
Metadata-protocol: none

The package `test` scripts run `vitest run --root ../.. packages/PKG/`. A pnpm script resolves its binaries from the package's own `node_modules/.bin` and the workspace root's, and vitest was installed only under `ui/node_modules/.bin`, so 24 of the 41 ui packages with a `test` script failed with `vitest: not found` from both the repository root and `ui/`. Each of them now declares `vitest: ^4.1.10`, the range `ui/package.json` and the other 17 packages already declare; the lockfile resolves every new entry to the snapshot those packages already use, so no package gains a copy. Nothing a consumer installs changes: only the `devDependencies` field of the published `package.json` moves.
73 changes: 73 additions & 0 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion ui/packages/app-shell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@
"react-router-dom": "^7.18.2",
"sonner": "^2.0.8",
"typescript": "^6.0.3",
"vite": "^8.2.1"
"vite": "^8.2.1",
"vitest": "^4.1.10"
},
"keywords": [
"objectui",
Expand Down
1 change: 1 addition & 0 deletions ui/packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
"typescript": "^6.0.3",
"vite": "^8.2.1",
"vite-plugin-dts": "^5.0.3",
"vitest": "^4.1.10",
"zod": "^4.6.5"
},
"keywords": [
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/fields/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
"tailwindcss": "^4.3.3",
"typescript": "^6.0.3",
"vite": "^8.2.1",
"vite-plugin-dts": "^5.0.3"
"vite-plugin-dts": "^5.0.3",
"vitest": "^4.1.10"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/plugin-calendar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
"@vitejs/plugin-react": "^6.0.5",
"typescript": "^6.0.3",
"vite": "^8.2.1",
"vite-plugin-dts": "^5.0.3"
"vite-plugin-dts": "^5.0.3",
"vitest": "^4.1.10"
},
"keywords": [
"objectui",
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/plugin-charts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
"@vitejs/plugin-react": "^6.0.5",
"typescript": "^6.0.3",
"vite": "^8.2.1",
"vite-plugin-dts": "^5.0.3"
"vite-plugin-dts": "^5.0.3",
"vitest": "^4.1.10"
},
"keywords": [
"objectui",
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/plugin-chatbot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
"@vitejs/plugin-react": "^6.0.5",
"typescript": "^6.0.3",
"vite": "^8.2.1",
"vite-plugin-dts": "^5.0.3"
"vite-plugin-dts": "^5.0.3",
"vitest": "^4.1.10"
},
"keywords": [
"objectui",
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/plugin-dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
"react-grid-layout": "^2.2.4",
"typescript": "^6.0.3",
"vite": "^8.2.1",
"vite-plugin-dts": "^5.0.3"
"vite-plugin-dts": "^5.0.3",
"vitest": "^4.1.10"
},
"keywords": [
"objectui",
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/plugin-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"@vitejs/plugin-react": "^6.0.5",
"typescript": "^6.0.3",
"vite": "^8.2.1",
"vite-plugin-dts": "^5.0.3"
"vite-plugin-dts": "^5.0.3",
"vitest": "^4.1.10"
},
"keywords": [
"objectui",
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/plugin-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"@vitejs/plugin-react": "^6.0.5",
"typescript": "^6.0.3",
"vite": "^8.2.1",
"vite-plugin-dts": "^5.0.3"
"vite-plugin-dts": "^5.0.3",
"vitest": "^4.1.10"
},
"keywords": [
"objectui",
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/plugin-gantt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
"@vitejs/plugin-react": "^6.0.5",
"typescript": "^6.0.3",
"vite": "^8.2.1",
"vite-plugin-dts": "^5.0.3"
"vite-plugin-dts": "^5.0.3",
"vitest": "^4.1.10"
},
"keywords": [
"objectui",
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/plugin-grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"tailwindcss": "^4.3.3",
"typescript": "^6.0.3",
"vite": "^8.2.1",
"vite-plugin-dts": "^5.0.3"
"vite-plugin-dts": "^5.0.3",
"vitest": "^4.1.10"
},
"keywords": [
"objectui",
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/plugin-kanban/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
"tailwindcss": "^4.3.3",
"typescript": "^6.0.3",
"vite": "^8.2.1",
"vite-plugin-dts": "^5.0.3"
"vite-plugin-dts": "^5.0.3",
"vitest": "^4.1.10"
},
"keywords": [
"objectui",
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/plugin-map/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
"@vitejs/plugin-react": "^6.0.5",
"typescript": "^6.0.3",
"vite": "^8.2.1",
"vite-plugin-dts": "^5.0.3"
"vite-plugin-dts": "^5.0.3",
"vitest": "^4.1.10"
},
"keywords": [
"objectui",
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/plugin-markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
"@vitejs/plugin-react": "^6.0.5",
"typescript": "^6.0.3",
"vite": "^8.2.1",
"vite-plugin-dts": "^5.0.3"
"vite-plugin-dts": "^5.0.3",
"vitest": "^4.1.10"
},
"keywords": [
"objectui",
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/plugin-timeline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
"@vitejs/plugin-react": "^6.0.5",
"typescript": "^6.0.3",
"vite": "^8.2.1",
"vite-plugin-dts": "^5.0.3"
"vite-plugin-dts": "^5.0.3",
"vitest": "^4.1.10"
},
"keywords": [
"objectui",
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/plugin-tree/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
"@vitejs/plugin-react": "^6.0.5",
"typescript": "^6.0.3",
"vite": "^8.2.1",
"vite-plugin-dts": "^5.0.3"
"vite-plugin-dts": "^5.0.3",
"vitest": "^4.1.10"
},
"keywords": [
"objectui",
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/plugin-view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"@vitejs/plugin-react": "^6.0.5",
"typescript": "^6.0.3",
"vite": "^8.2.1",
"vite-plugin-dts": "^5.0.3"
"vite-plugin-dts": "^5.0.3",
"vitest": "^4.1.10"
},
"keywords": [
"objectui",
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/providers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"devDependencies": {
"@types/react": "19.3.0",
"@types/react-dom": "19.3.0",
"typescript": "^6.0.3"
"typescript": "^6.0.3",
"vitest": "^4.1.10"
},
"keywords": [
"objectui",
Expand Down
4 changes: 3 additions & 1 deletion ui/packages/react-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,7 @@
"peerDependencies": {
"react": "^19.0.0"
},
"devDependencies": {}
"devDependencies": {
"vitest": "^4.1.10"
}
}
3 changes: 2 additions & 1 deletion ui/packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"@object-ui/test-support": "workspace:*",
"@types/react": "19.3.0",
"@types/react-dom": "19.3.0",
"typescript": "^6.0.3"
"typescript": "^6.0.3",
"vitest": "^4.1.10"
},
"keywords": [
"objectui",
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"postcss": "^8.5.26",
"tailwindcss": "^4.3.3",
"typescript": "^6.0.3",
"vite": "^8.2.1"
"vite": "^8.2.1",
"vitest": "^4.1.10"
},
"keywords": [
"objectui",
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/sdui-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@object-ui/core": "workspace:*",
"@object-ui/react": "workspace:*",
"@object-ui/types": "workspace:*",
"@objectstack/spec": "workspace:^"
"@objectstack/spec": "workspace:^",
"vitest": "^4.1.10"
}
}
1 change: 1 addition & 0 deletions ui/packages/test-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@objectstack/spec": "workspace:^",
"@types/node": "^26.2.0",
"typescript": "^6.0.3",
"vitest": "^4.1.10",
"zod": "^4.6.5"
},
"repository": {
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@
"devDependencies": {
"@object-ui/test-support": "workspace:*",
"typescript": "^6.0.3",
"vite": "^8.2.1"
"vite": "^8.2.1",
"vitest": "^4.1.10"
},
"bugs": {
"url": "https://github.com/objectstack-ai/objectui/issues"
Expand Down
Loading