Collapse backend and shared workspaces into Next.js#461
Merged
Conversation
Moves all code from backend/src/ into nextjs/lib/ and shared/src/ into nextjs/lib/schemas/, eliminating the three-workspace monorepo structure. This removes transpilePackages, externalDir, and webpack extensionAlias hacks that were needed for cross-workspace imports. All 4,109 tests pass across 104 files (unchanged from baseline). Key changes: - Rewrite all @memory-loop/backend/* imports to @/lib/* - Rewrite all @memory-loop/shared imports to @/lib/schemas - Strip .js extension imports (no longer needed with bundler resolution) - Merge backend dependencies into nextjs/package.json - Use webpackIgnore on instrumentation.ts dynamic imports so turbopack skips tracing into cron/node:crypto during dev compilation - Make cron import dynamic in extraction-manager (only loaded at runtime) - Consolidate CI, pre-commit hook, and CLAUDE.md for single workspace Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
autoprefixer warns that justify-content: end has mixed browser support. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
CI now matches pre-commit checks: typecheck, lint, test, build. Uses root package.json delegation instead of --cwd for test:coverage. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Without the workspaces declaration, bun install from root only installs root devDependencies. CI and fresh clones need the nextjs workspace dependencies installed via the root install command. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
rjroy
added a commit
that referenced
this pull request
Feb 6, 2026
These lore updates were missed in the squash-merge of PR #461. Marks brainstorm/notes as resolved/complete, adds the retro, and graduates the turbopack/webpack lesson to CLAUDE.md. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 task
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
backend/src/→nextjs/lib/andshared/src/→nextjs/lib/schemas/, eliminating the three-workspace monorepo structuretranspilePackages,externalDir, and webpackextensionAliashacks that were needed for cross-workspace importswebpackIgnoreon instrumentation.ts dynamic imports so turbopack skips tracing into cron/node:crypto during dev compilationTest plan
next buildsucceedsnext devstarts without errors or warnings@memory-loop/backendor@memory-loop/sharedimport references.jsextension imports🤖 Generated with Claude Code