Is there a way to execute corepack up/use without trigerring install script?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.8k
- Forks
- 279
- Avg merge
- 1h 47m
- Merged PRs (30d)
- 2
Description
I run corepack use to update the packageManager field in my package.json. But, this also triggers pnpm install after updating the package.json.
I went through the code, and it isn't possible to skip the execution of the install script.
If I missed something, please refer me to the solution. Or, if this is not currently possible, will the team be okay with the implementation of a flag, say skip-install, for the use and up commands for this purpose.
Contributor guide
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
The relevant entry points are the use and up commands, which update package.json and then invoke the install script. Trace that command flow first; done means a supported skip-install option updates package.json without running pnpm install.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nodejs, typescript
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100