Skip to content
This repository was archived by the owner on Apr 22, 2026. It is now read-only.

Migrate from yarn to pnpm#13

Merged
nick-fields merged 2 commits into
masterfrom
devin/1770229860-migrate-to-pnpm
Feb 4, 2026
Merged

Migrate from yarn to pnpm#13
nick-fields merged 2 commits into
masterfrom
devin/1770229860-migrate-to-pnpm

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Feb 4, 2026

Copy link
Copy Markdown

Summary

Migrates the package manager from yarn to pnpm. This replaces yarn.lock with pnpm-lock.yaml and updates the packageManager field to pnpm@9.15.4.

Changes:

  • Updated packageManager field from yarn@1.22.22 to pnpm@9.15.4
  • Removed yarn.lock
  • Added pnpm-lock.yaml with resolved dependencies
  • Updated CI workflow to use pnpm (install via pnpm/action-setup@v4, cache pnpm, run pnpm install --frozen-lockfile, pnpm build, pnpm test)

Updates since last revision

Added CI workflow changes to use pnpm instead of yarn. The workflow now installs pnpm via pnpm/action-setup@v4 and runs all commands with pnpm.

Review & Testing Checklist for Human

  • Verify CI passed on this PR (confirms pnpm install, build, and test work in CI environment)
  • Run pnpm install && pnpm build && pnpm test locally to confirm everything works
  • Check if README or other docs reference yarn commands that should be updated to pnpm

Notes

This is the second PR in a stack of 2 (PR #12 was merged):

  1. Pin dependencies (PR Pin all dependencies to exact versions #12) - Merged
  2. This PR - Migrate from yarn to pnpm
  3. Upgrade TypeScript to 5.9.2 (PR Upgrade TypeScript to 5.9.2 #14) - depends on this PR

Link to Devin run: https://app.devin.ai/sessions/430d7bdf45164595b92dfaa0b15d73d4
Requested by: @nick-fields

@devin-ai-integration

Copy link
Copy Markdown
Author
Original prompt from nick@flux.ai
# Pin All Dependencies to Exact Versions in package.json

## Background
The `package.json` file in the `buildwithflux/kicad-module-parser` repository currently uses caret (`^`) ranges for most dependencies, which allow minor and patch version updates. We need to pin all dependencies to their exact versions based on what's currently installed in the `yarn.lock` file.

## Task
Review the `yarn.lock` file to determine the exact versions currently being used for all dependencies listed in `package.json`, then update `package.json` to pin these dependencies to those exact versions (removing the `^` prefix).

## Current State
In `package.json`, the following dependencies need to be updated:

**DevDependencies** (most use caret ranges):
- `@types/argparse: ^2.0.10`
- `@types/fs-extra: ^11.0.1`
- `@types/js-yaml: ^4.0.5`
- `@types/klaw: ^3.0.6`
- `@types/node: ^22.5.5`
- `@types/through2: ^2.0.41`
- `pegjs: ^0.10.0`
- `prettier: ^3.3.3`
- `prettier-plugin-pegjs: ^2.0.2`

Note: `npm-run-all: 4.1.5`, `tsup: 8.3.5`, `tsx: 4.19.1`, and `typescript: 5.6.2` are already pinned.

**Dependencies** (all use caret ranges):
- `ajv: ^8.6.2`
- `argparse: ^2.0.1`
- `chalk: ^5.3.0`
- `fs-extra: ^11.1.1`
- `js-yaml: ^4.1.0`
- `klaw: ^4.1.0`
- `through2: ^4.0.2`

## Steps
1. Open the `yarn.lock` file in the `buildwithflux/kicad-module-parser` repository
2. For each dependency listed above, find the exact version that's currently resolved in `yarn.lock`
3. Update `package.json` to replace the caret ranges with the exact version numbers (e.g., change `^8.6.2` to `8.6.2` or whatever exact version is in the lockfile)
4. Ensure all dependencies in both the `dependencies` and `devDependencies` sections are pinned to exact versions

## Files to Modify
- `buildwithflux/kicad-module-parser/package.json` - Update dependency version strings to remove `^` and use exact versions from yarn.lock

You only need to look in the following repo: buildwithflux/kicad-module-parser

@devin-ai-integration

Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@devin-ai-integration devin-ai-integration Bot mentioned this pull request Feb 4, 2026
4 tasks
Base automatically changed from devin/1770229860-pin-dependencies to master February 4, 2026 19:07
@devin-ai-integration
devin-ai-integration Bot force-pushed the devin/1770229860-migrate-to-pnpm branch from 0ceff03 to 2fa1a16 Compare February 4, 2026 19:11
Co-Authored-By: nick@flux.ai <nick@flux.ai>
@devin-ai-integration
devin-ai-integration Bot force-pushed the devin/1770229860-migrate-to-pnpm branch from 2fa1a16 to 494d0a5 Compare February 4, 2026 19:42
Co-Authored-By: nick@flux.ai <nick@flux.ai>
@nick-fields
nick-fields merged commit beaae8e into master Feb 4, 2026
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant