Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exposes INIT_CWD #552

Merged
merged 3 commits into from
Oct 28, 2019
Merged

Exposes INIT_CWD #552

merged 3 commits into from
Oct 28, 2019

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented Oct 28, 2019

What's the problem this PR addresses?

Yarn v1 and npm exposes the folder where a command was run in the INIT_CWD variable (which is different from $PWD because Yarn will automatically chdir into the closest package). Yarn v2 doesn't atm. This causes issues for Husky, which recently started using it.

How did you fix it?

The INIT_CWD environment variable seems a very reasonable feature that cannot be emulated in userland, so we should support it as well. This diff adds it to scriptUtils.makeEnv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant