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: improve pnpm link compatibility and file path resolution
Resolve MODULE_NOT_FOUND errors when using pnpm link for local development.
Problems solved:
1. Use relative paths instead of NPM specifiers for generated files
2. Write generated files to project cache dir (node_modules/.code-inspector)
3. Ensure cache directory exists before write operations
4. Better Next.js compatibility with relative path imports
This enables smooth local development workflow:
- pnpm/npm/yarn link support
- Testing unpublished changes in real projects
- Better contributor development workflow
Changes:
- packages/core/src/server/use-client.ts: Switch to relative path imports
- packages/code-inspector-plugin/src/index.ts: Use project cache directory
- packages/core/src/shared/record-cache.ts: Add directory creation
0 commit comments