You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: enhance patch-symlinks.cjs to auto-resolve all transitive dependencies
Instead of manually listing each transitive dep in apps/demo/package.json,
the script now walks each package's pnpm virtual store context
(.pnpm/<name>@<ver>/node_modules/) and copies any missing dependency
into the top-level node_modules/ before dereferencing symlinks.
This handles @objectstack/rest, pino, better-auth, mingo, and all
other transitive deps automatically (~364 packages).
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Agent-Logs-Url: https://github.com/objectstack-ai/objectql/sessions/41d33284-6232-4795-a3e5-60ed24fddd69
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
### Fixed
11
11
12
-
-**`apps/demo`** — added explicit `@objectstack/spec` and `zod` devDependencies. The Vercel serverless function failed at runtime with `ERR_MODULE_NOT_FOUND` because transitive dependencies could not be resolved after pnpm symlinks were dereferenced by `patch-symlinks.cjs`. Adding them as explicit dependencies ensures they are present at the top level of `node_modules/` for Vercel bundling.
12
+
-**`apps/demo/scripts/patch-symlinks.cjs`** — enhanced to automatically resolve and copy ALL transitive dependencies before dereferencing symlinks. Previously, only direct dependencies listed in `apps/demo/package.json` were available after symlink dereferencing, causing `ERR_MODULE_NOT_FOUND` for transitive deps like `@objectstack/rest`, `zod`, `pino`, `better-auth`, etc. The script now walks each package's pnpm virtual store context (`.pnpm/<name>@<ver>/node_modules/`) and copies any missing sibling dependency into the top-level `node_modules/`, repeating until the full transitive closure is present.
13
+
-**`apps/demo`** — added explicit `@objectstack/spec` and `zod` devDependencies as defense-in-depth for Vercel deployment.
13
14
-**`@objectql/types`** — moved `@objectstack/spec` and `zod` from `devDependencies` to `dependencies`. The compiled JS output contains runtime imports of `@objectstack/spec` (via `z.infer<typeof Data.X>` patterns), so they must be declared as production dependencies.
0 commit comments