nodejs / nodejs/corepack

--dir option

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

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3.8k
Forks
279
Avg merge
1h 47m
Merged PRs (30d)
2

Description

Add --dir option to set current directory like pnpm --dir and yarn --cwd. It can make scripts easier to configure many projects without needing to change to a directory and change back.

Contributor guide

Open the contributing guide

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 by locating Corepack's CLI argument parsing and command dispatch, then compare how pnpm's --dir and yarn's --cwd establish the working directory. The work is done when Corepack accepts --dir and commands run relative to the requested directory without requiring the caller to change directories.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.