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

Expose ncurc retrieval to programmatic API #586

Merged
merged 4 commits into from
Oct 7, 2019

Conversation

brettz9
Copy link
Contributor

@brettz9 brettz9 commented Oct 4, 2019

I needed this with some programmatic usage, and thought it best for your other consumers not to have to duplicate this or resort to the CLI to get ncurc retrieval logic.

One breaking change I did not make (though I made it easier to implement if you want to go that route), but which I think would be useful--allow the rcLoader current working directory to be based by default on the directory of packageFile, since they would presumably usually be in the same (project root) directory.

Copy link
Owner

@raineorshine raineorshine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, and I think the breaking change makes sense.

lib/npm-check-updates.js Outdated Show resolved Hide resolved
@brettz9
Copy link
Contributor Author

brettz9 commented Oct 5, 2019

I've applied the changes, including the breaking change for the CLI.

@raineorshine raineorshine merged commit 8488887 into raineorshine:master Oct 7, 2019
@raineorshine
Copy link
Owner

Published in v3.1.24.

I published as a patch as the default path was clearly a bug.

@brettz9 brettz9 deleted the rc-retrieve branch October 7, 2019 02:29
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.

None yet

2 participants