Skip to content

Collapse backend and shared workspaces into Next.js#461

Merged
rjroy merged 4 commits intomainfrom
feat/collapse-workspace-8uar9
Feb 6, 2026
Merged

Collapse backend and shared workspaces into Next.js#461
rjroy merged 4 commits intomainfrom
feat/collapse-workspace-8uar9

Conversation

@rjroy
Copy link
Copy Markdown
Owner

@rjroy rjroy commented Feb 6, 2026

Summary

  • Moves all code from backend/src/nextjs/lib/ and shared/src/nextjs/lib/schemas/, eliminating the three-workspace monorepo structure
  • Removes transpilePackages, externalDir, and webpack extensionAlias hacks that were needed for cross-workspace imports
  • Uses webpackIgnore on instrumentation.ts dynamic imports so turbopack skips tracing into cron/node:crypto during dev compilation
  • All 4,109 tests pass across 104 files (unchanged from baseline)

Test plan

  • Typecheck passes (0 errors)
  • Lint passes (0 errors)
  • All 4,109 tests pass across 104 files (exact baseline match)
  • next build succeeds
  • next dev starts without errors or warnings
  • No remaining @memory-loop/backend or @memory-loop/shared import references
  • No remaining .js extension imports
  • Pre-commit hook passes all checks

🤖 Generated with Claude Code

rjroy and others added 4 commits February 6, 2026 07:32
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
Copy link
Copy Markdown

codecov Bot commented Feb 6, 2026

Codecov Report

❌ Patch coverage is 91.52542% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...extjs/components/browse/viewers/MarkdownViewer.tsx 58.33% 5 Missing ⚠️

📢 Thoughts on this report? Let us know!

@rjroy rjroy merged commit 8477f75 into main Feb 6, 2026
2 checks passed
@rjroy rjroy deleted the feat/collapse-workspace-8uar9 branch February 6, 2026 16:26
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>
rjroy added a commit that referenced this pull request Feb 6, 2026
#462)

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant