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

fix: should infer package manager from config if there's no lockfile in the project #5150

Merged
merged 2 commits into from Feb 6, 2020

Conversation

sodatea
Copy link
Member

@sodatea sodatea commented Feb 6, 2020

Fixed monorepo use cases.

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Underlying tools
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Other information:

@sodatea sodatea merged commit 51a4da7 into dev Feb 6, 2020
@sodatea sodatea deleted the monorepo-packagemanager branch February 6, 2020 08:25
@@ -88,8 +89,17 @@ class PackageManager {
if (forcePackageManager) {
Copy link
Member

Choose a reason for hiding this comment

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

How do we force the package manager?

Copy link
Member Author

Choose a reason for hiding this comment

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

The -m / --packageManager option of vue create. Maybe we should add this option for vue add and vue invoke too?

return true
}

const lockFile = path.join(cwd, 'package-lock.json')
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should use findup?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah that makes more sense.

mactanxin pushed a commit to mactanxin/vue-cli that referenced this pull request Feb 11, 2020
…in the project (vuejs#5150)

* fix: should infer package manager from config if there's no lockfile in the project

* fixup! fix: should infer package manager from config if there's no lockfile in the project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants