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
{{ message }}
Repository navigation
Commit 9b609ac
Browse filesBrowse the repository at this point in the historyBrowse files
fix(cli): resolve config codegen imports via require.resolve (pnpm-safe)
The config loader aliased @metaobjectsdev/codegen-ts* to hardcoded
_cliDir/node_modules/... paths, assuming a nested node_modules layout. Under
pnpm the CLI's deps are siblings in the virtual store, not nested, so
'meta gen' failed with 'Cannot find module .../codegen-ts/dist/...'. Resolve
via require.resolve (layout-agnostic: npm/pnpm/bun; honors export conditions),
falling back to the nested layout. Also alias codegen-ts-react (was missing, so
configs importing it needed it as a direct user dep). Adds a config-loader test.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments