Skip to content

[Feature] Allow specifying path to the home rc file #7296

Description

@aaa-xyz
  • I'd be willing to implement this feature (contributing guide)
  • This feature is important to have in this repository; a contrib plugin wouldn't do

Describe the user story

Being able to specify path to the home rc file can make yarn more configurable. It's often useful to isolate a tool. Maybe one don't want their home directory to be messy. Or maybe one is borrowing someone's computer and don't want to accidentally change anything, or accidentally affected by the original config.

Describe the solution you'd like

A method to specify the path to the home rc file when running the yarn command.

An alternative can be moving the file into globalFolder, and then the folder can be specified with environment variables.

Describe alternatives you've considered

Configuring with environment variables. However, one won't be able to use yarn config set. And it won't prevent yarn being affected by a rc file that's already present.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions