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

Warn when a shrinkwrap exists in the cwd #397

Merged
merged 2 commits into from
Sep 21, 2016
Merged

Warn when a shrinkwrap exists in the cwd #397

merged 2 commits into from
Sep 21, 2016

Conversation

sebmck
Copy link
Contributor

@sebmck sebmck commented Sep 21, 2016

Fixes #396.

@jamiebuilds jamiebuilds mentioned this pull request Sep 21, 2016
46 tasks
@sebmck sebmck merged commit 87f3da9 into master Sep 21, 2016
@sebmck sebmck deleted the warn-shrinkwrap branch September 21, 2016 20:44
@@ -199,6 +199,11 @@ export class Install {
// remove integrity hash to make this operation atomic
await fs.unlink(match.loc);

// warn if we have a shrinkwrap
if (await fs.exists(path.join(this.config.cwd, 'npm-shrinkwrap.json'))) {
this.reporter.error(this.reporter.lang('shrinkwrapWarning'));
Copy link

Choose a reason for hiding this comment

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

shouldn't this be reporter.warn(...) instead? I'd expect error only when the issue is not recoverable.

@shahmirn
Copy link
Contributor

This also relates to #396

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.

4 participants