pnpm / pnpm/codemod

There is no codemod prompt to choose whether to move to `catalog` or not

Open
#5 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
16
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Hello, in the docs we have:
If there are multiple versions of dependency - codemod will prompt to choose whether to move to catalog or not (in this case latest version will be picked).
https://github.com/pnpm/codemod/blame/a8ccdf3a88a1d49f36f1e8e95de059fdbd6b53b7/catalog/README.md#L5C28-L5C28

But looking at the code, we have a direct apply with the latest version:
https://github.com/pnpm/codemod/blob/main/catalog/src/index.ts#L99

By the way, thank you for this very useful codemod 🚀

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with catalog/README.md, especially the statement about prompting when multiple dependency versions exist, then compare it with catalog/src/index.ts around line 99. Trace how the codemod currently applies the latest version and identify the existing prompt flow. Done means the behavior and documentation agree about choosing whether to move to catalog.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.