Migrate api, admin, site, and create-app to pnpm#1585
Draft
VPS-Obi wants to merge 1 commit into
Draft
Conversation
Switch the whole repo from npm to pnpm while preserving the existing per-package independence — each package keeps its own lockfile and node_modules, and there is intentionally no shared pnpm workspace. - Replace all package-lock.json with pnpm-lock.yaml (root, api, admin, admin/server, site, create-app) - Pin pnpm@10.33.0 via the packageManager field in every package.json - Convert npm-style top-level "overrides" in api to pnpm.overrides and add peerDependencyRules for the @apollo/server plugin - Add pnpm.onlyBuiltDependencies where dependencies need build scripts (sharp/protobufjs in api, @swc/core/@parcel/watcher in admin, esbuild/@parcel/watcher in site) - Translate .npmrc: strict-peer-deps -> strict-peer-dependencies and min-release-age=3 (days) -> minimum-release-age=4320 (minutes) - Convert scripts and tooling: root/package scripts, install.sh, dev-pm.config.ts, lint-staged, husky, create-app runtime helpers - Update CI (setup action + workflows) to use pnpm/action-setup and pnpm install --frozen-lockfile; Dockerfiles and deploy scripts enable pnpm via corepack; DigitalOcean specs use pnpm - Ignore pnpm-lock.yaml in prettier and eslint configs - Update README, AGENTS.md, and create-app README Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019aLWK3cCP73rpga9K9DKMc
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.
Switches the whole repo from npm to pnpm while preserving per-package independence — each package keeps its own lockfile and
node_modules, and there is intentionally no shared pnpm workspace.Package manager & lockfiles
package-lock.jsonwithpnpm-lock.yaml(root,api,admin,admin/server,site,create-app).pnpm@10.33.0via thepackageManagerfield in everypackage.json(corepack-friendly).pnpm-specific correctness
api: converted the npm-style top-leveloverrides(for@apollo/server) topnpm.overrides+peerDependencyRules. Without this the override was silently dropped and strict peer-deps failed.pnpm.onlyBuiltDependencieswhere dependency build scripts are genuinely needed (pnpm 10 blocks them by default):sharp/protobufjs(api),@swc/core/@parcel/watcher(admin),esbuild/@parcel/watcher(site)..npmrc:strict-peer-deps→strict-peer-dependencies;min-release-age=3(npm days) →minimum-release-age=4320(pnpm minutes).Scripts & tooling
install.sh,dev-pm.config.ts,lint-staged.config.js,.husky/pre-commit, andcreate-appruntime helpers now usepnpm --dir <pkg> run …/pnpm exec ….CI & deployment
setupcomposite action + workflows usepnpm/action-setup@v4andpnpm install --frozen-lockfile(strict peer-deps enforced viaNPM_CONFIG_STRICT_PEER_DEPENDENCIES).corepack; DigitalOcean specs use pnpm; publish workflow usespnpm version/pnpm publish --no-git-checks.Lint config
pnpm-lock.yamlin prettier and eslint configs (it now matches the*.yamllint glob, unlike the old JSON lockfile).Docs
README.md,AGENTS.md, andcreate-app/README.md.Verification
pnpm install --frozen-lockfileruns pass under strict peer-deps.create-appbuilds and fully lints (eslint/knip/prettier/tsc) via the pnpm orchestration.Not verified in this environment
🤖 Generated with Claude Code
https://claude.ai/code/session_019aLWK3cCP73rpga9K9DKMc