Skip to content

Switch the workspace from npm to pnpm - #7

Merged
FlyOverCoderKY merged 2 commits into
mainfrom
cursor/convert-to-pnpm-91d6
Aug 14, 2026
Merged

FlyOverCoderKY merged 2 commits into
mainfrom
cursor/convert-to-pnpm-91d6

Conversation

@FlyOverCoderKY

@FlyOverCoderKY FlyOverCoderKY commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

This repository was an npm workspace (package-lock.json, packageManager: npm@11.18.0). Local git worktrees were rewriting a full node_modules tree on every create/delete. This PR switches the workspace to pnpm so installs can share a content-addressable store.

Changes

  • Pin packageManager to pnpm@10.34.5 (Corepack).
  • Add pnpm-workspace.yaml for packages/* and fixtures/*.
  • Commit pnpm-lock.yaml and remove package-lock.json.
  • Link workspace packages (linkWorkspacePackages / preferWorkspacePackages) so fixtures and @pegma/scheduler-cloudflare use the local packages, not the published npm copies.
  • Allow esbuild and workerd build scripts (pnpm 10 ignores dependency scripts by default; the D1 Vitest pool needs both).
  • Add @pegma/spine and @pegma/storage-core as root devDependencies so Cloudflare tests typecheck under pnpm's strict node_modules (npm previously hoisted them).
  • Update CI, publish workflow, docs, and scripts to pnpm / pnpm run / pnpm dlx.
  • Keep npm for registry operations only: npm pack, npm publish --provenance, and npm view. Trusted publishing still installs npm@11.18.0.
  • Release validation now reads pnpm-lock.yaml importers instead of package-lock.json.

pnpm import from the existing npm lockfile resolved @pegma/scheduler@0.1.0 from the registry. The lockfile was regenerated with pnpm install --lockfile-only so workspace packages stay linked. Dependency versions are unchanged.

Gate

Ran locally and passed:

pnpm install --frozen-lockfile
pnpm run format:check
pnpm run check
pnpm test
pnpm run release:check
Open in Web Open in Cursor 

cursoragent and others added 2 commits August 14, 2026 19:54
Pin pnpm@10.34.5 via Corepack, commit a workspace lockfile, and keep npm only for registry pack/publish.

Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
Declare Spine and Storage Core at the workspace root so Cloudflare tests resolve without hoisting, and parse only real importer paths from pnpm-lock.yaml.

Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
@FlyOverCoderKY
FlyOverCoderKY marked this pull request as ready for review August 14, 2026 20:18
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@FlyOverCoderKY
FlyOverCoderKY merged commit 00268a4 into main Aug 14, 2026
3 checks passed
@FlyOverCoderKY
FlyOverCoderKY deleted the cursor/convert-to-pnpm-91d6 branch August 14, 2026 21:03
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.

2 participants