Repository navigation
chore: migrate from yarn to pnpm and Node 24 - #102
Merged
Merged
Conversation
Replace Yarn 4 with pnpm 12.21.0, pinned via packageManager. The lockfile was converted with `pnpm import`, so resolved versions stay the same. - Add pnpm-workspace.yaml; allow the install scripts of esbuild, nx and puppeteer (puppeteer downloads Chrome for the executor). - Declare dependencies that only resolved through Yarn's hoisting: web2 now lists @internationalized/date, cron-parser and mongodb. - The executor imported @typegoose/typegoose without declaring it. Under pnpm it would get its own mongoose copy, and isDocument() would then fail its instanceof check for models from storage. Storage now re-exports isDocument and DocumentType, and the executor imports them from there. - Dockerfiles install with --frozen-lockfile, filtered to the image's packages; the web image also copies web2's node_modules and starts srvx from there. - CI sets up pnpm via pnpm/action-setup and caches the pnpm store. - Update scripts, ignore files and README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Docker images build and run on node:24 / node:24-slim. - Add .nvmrc (24); CI reads it via setup-node's node-version-file instead of a hard-coded Node 20. - Require Node >= 24 via engines in the root package.json. - Align @types/node on ^24 in all packages; the root and web2 declare it too, so vite/vitest no longer pull in @types/node 22 transitively. - README: Node 24 or higher. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
maaaathis
approved these changes
Nov 19, 2026
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.
Why
Moves the monorepo from Yarn 4 to pnpm (
pnpm@12.21.0, pinned viapackageManager) and puts every place that names a Node version on Node 24.What changed
yarn.lockwas converted withpnpm import, so all resolved versions stay the same..yarn/,.yarnrc.ymlandyarn.lockare gone.pnpm-workspace.yaml. pnpm doesn't run dependency install scripts by default, so it allows them foresbuild,nxandpuppeteer(puppeteer downloads Chrome for the executor).node-moduleslinker did, so packages that were used but not declared stopped resolving:web2now declares@internationalized/date,cron-parserandmongodb, at the versions that were already installed.executorimported@typegoose/typegoosewithout declaring it. Adding it there would have given the executor its own mongoose instance, andisDocument()(aninstanceofcheck) would then returnfalsefor documents loaded throughstorage. Instead,storagenow re-exportsisDocumentandDocumentType, and the executor imports them from there.pnpm install --frozen-lockfile, filtered to the root plus the image's package and its workspace dependencies (so the web image still doesn't pull in puppeteer). The web runtime stage also copiespackages/web2/node_modules, because pnpm links each project's dependencies there, and startssrvxfrom that folder.pnpm/action-setup(SHA-pinned, readspackageManager) andsetup-nodewithcache: pnpm.yarn workspaces foreach …→pnpm --recursive --parallel run dev,yarn build→pnpm build),.gitignore,.dockerignore,.gitattributesand the README are updated.Node 24
node:24/node:24-slim(still ships Corepack; the executor's--no-experimental-require-moduleflag still works)..nvmrc(24); CI reads it vianode-version-fileinstead of the hard-coded Node 20.package.jsondeclaresengines.node: ">=24".@types/nodeis^24in every package. Root and web2 now declare it too, so vite/vitest no longer pull in@types/node22 transitively.Testing
pnpm install --frozen-lockfilefrom a cleannode_modules, on Node 24pnpm build,pnpm lint,pnpm typecheck,pnpm test(8/8) pass;pnpm format:checkpasses for storage and executor (web2 only flags my local, gitignored.output/folder)v24.22.3). Both containers start, resolve all modules, and fail only on the deliberately unreachable MongoDB. A real scan was not run.For reviewers / after merge
Locally: switch to Node 24 (
nvm use), runcorepack enable, deletenode_modules(includingpackages/*/node_modules), then runpnpm install.🤖 Generated with Claude Code