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

Calling ncu.run with cwd option alters the current working directory. #849

Closed
make-github-pseudonymous-again opened this issue Mar 10, 2021 · 4 comments
Labels

Comments

@make-github-pseudonymous-again

Steps to Reproduce

process.chdir('/foo');
await ncu.run({cwd: '/bar'});
console.debug(process.cwd());

Current Behavior

Outputs /bar.

Expected Behavior

Outputs /foo.

@make-github-pseudonymous-again
Copy link
Author

To circumvent the issue I use the packageFile option instead. Could this lead to problems?

@raineorshine
Copy link
Owner

Definitely a bug! Thanks for reporting.

@raineorshine
Copy link
Owner

Fixed and published in v11.2.2

@make-github-pseudonymous-again
Copy link
Author

Thanks!

This was referenced Mar 12, 2021
This was referenced Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants