Skip to content

feat: migrate CLI runtime to pnpm (POC)#2024

Draft
DevaanshKathuria wants to merge 3 commits intoasyncapi:masterfrom
DevaanshKathuria:feat/migrate-to-pnpm
Draft

feat: migrate CLI runtime to pnpm (POC)#2024
DevaanshKathuria wants to merge 3 commits intoasyncapi:masterfrom
DevaanshKathuria:feat/migrate-to-pnpm

Conversation

@DevaanshKathuria
Copy link

@DevaanshKathuria DevaanshKathuria commented Feb 15, 2026

Description

This PR implements a migration from npm to pnpm to improve CI/CD performance and dependency stability.

Key Improvements:

  • Performance: Reduced fresh installation time from ~4m 13s (npm) to ~1m 19s (pnpm) — a 3.2x speedup.
  • Stability: Identified and fixed several "phantom dependencies" that npm was hoisting implicitly but pnpm flagged as missing. Explicitly added:
    • tslib
    • ajv
    • ajv-formats
    • jsonfile (Fixed build error in src/apps/cli/commands/new/template.ts)
    • @stoplight/spectral-core
    • @stoplight/spectral-formatters
    • @apidevtools/json-schema-ref-parser

Verification:

  • pnpm install completes successfully.
  • pnpm run cli:test passes all tests locally.

Related issue(s)
Fixes #2023
Relates to #1991

@changeset-bot
Copy link

changeset-bot bot commented Feb 15, 2026

⚠️ No Changeset found

Latest commit: bac329d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Triage

Development

Successfully merging this pull request may close these issues.

[FEATURE] Migrate CLI runtime to pnpm for improved install performance

1 participant