Skip to content

Commit 2ef77bb

Browse files
committed
chore(ui): declare vitest in every ui package whose test script calls it
pnpm --filter @object-ui/PKG test failed with 'vitest: not found' for 24 ui packages, from the repo root and from ui/, because vitest was installed only under ui/node_modules/.bin. Each now declares vitest ^4.1.10 like the 17 packages that already work; the lockfile change is the 24 importer entries, all on the existing snapshot. Claude-Session: https://claude.ai/code/session_01CQYwcp65XPKU6W8H7gaJ9x Co-authored-by: Claude <noreply@anthropic.com>
1 parent e05e0de commit 2ef77bb

26 files changed

Lines changed: 151 additions & 22 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/components': patch
4+
'@object-ui/fields': patch
5+
'@object-ui/plugin-calendar': patch
6+
'@object-ui/plugin-charts': patch
7+
'@object-ui/plugin-chatbot': patch
8+
'@object-ui/plugin-dashboard': patch
9+
'@object-ui/plugin-editor': patch
10+
'@object-ui/plugin-form': patch
11+
'@object-ui/plugin-gantt': patch
12+
'@object-ui/plugin-grid': patch
13+
'@object-ui/plugin-kanban': patch
14+
'@object-ui/plugin-map': patch
15+
'@object-ui/plugin-markdown': patch
16+
'@object-ui/plugin-timeline': patch
17+
'@object-ui/plugin-tree': patch
18+
'@object-ui/plugin-view': patch
19+
'@object-ui/providers': patch
20+
'@object-ui/react': patch
21+
'@object-ui/react-runtime': patch
22+
'@object-ui/sdui-parser': patch
23+
'@object-ui/types': patch
24+
---
25+
26+
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
27+
28+
Clause-②: no
29+
Metadata-protocol: none
30+
31+
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.

‎pnpm-lock.yaml‎

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

‎ui/packages/app-shell/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@
137137
"react-router-dom": "^7.18.2",
138138
"sonner": "^2.0.8",
139139
"typescript": "^6.0.3",
140-
"vite": "^8.2.1"
140+
"vite": "^8.2.1",
141+
"vitest": "^4.1.10"
141142
},
142143
"keywords": [
143144
"objectui",

‎ui/packages/components/package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
"typescript": "^6.0.3",
103103
"vite": "^8.2.1",
104104
"vite-plugin-dts": "^5.0.3",
105+
"vitest": "^4.1.10",
105106
"zod": "^4.6.5"
106107
},
107108
"keywords": [

‎ui/packages/fields/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959
"tailwindcss": "^4.3.3",
6060
"typescript": "^6.0.3",
6161
"vite": "^8.2.1",
62-
"vite-plugin-dts": "^5.0.3"
62+
"vite-plugin-dts": "^5.0.3",
63+
"vitest": "^4.1.10"
6364
},
6465
"publishConfig": {
6566
"access": "public"

‎ui/packages/plugin-calendar/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@
6161
"@vitejs/plugin-react": "^6.0.5",
6262
"typescript": "^6.0.3",
6363
"vite": "^8.2.1",
64-
"vite-plugin-dts": "^5.0.3"
64+
"vite-plugin-dts": "^5.0.3",
65+
"vitest": "^4.1.10"
6566
},
6667
"keywords": [
6768
"objectui",

‎ui/packages/plugin-charts/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
"@vitejs/plugin-react": "^6.0.5",
5959
"typescript": "^6.0.3",
6060
"vite": "^8.2.1",
61-
"vite-plugin-dts": "^5.0.3"
61+
"vite-plugin-dts": "^5.0.3",
62+
"vitest": "^4.1.10"
6263
},
6364
"keywords": [
6465
"objectui",

‎ui/packages/plugin-chatbot/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464
"@vitejs/plugin-react": "^6.0.5",
6565
"typescript": "^6.0.3",
6666
"vite": "^8.2.1",
67-
"vite-plugin-dts": "^5.0.3"
67+
"vite-plugin-dts": "^5.0.3",
68+
"vitest": "^4.1.10"
6869
},
6970
"keywords": [
7071
"objectui",

‎ui/packages/plugin-dashboard/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
"react-grid-layout": "^2.2.4",
5151
"typescript": "^6.0.3",
5252
"vite": "^8.2.1",
53-
"vite-plugin-dts": "^5.0.3"
53+
"vite-plugin-dts": "^5.0.3",
54+
"vitest": "^4.1.10"
5455
},
5556
"keywords": [
5657
"objectui",

‎ui/packages/plugin-editor/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"@vitejs/plugin-react": "^6.0.5",
5353
"typescript": "^6.0.3",
5454
"vite": "^8.2.1",
55-
"vite-plugin-dts": "^5.0.3"
55+
"vite-plugin-dts": "^5.0.3",
56+
"vitest": "^4.1.10"
5657
},
5758
"keywords": [
5859
"objectui",

0 commit comments

Comments
 (0)