There is no codemod prompt to choose whether to move to `catalog` or not
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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