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: pnpm detection in projects that use a shared lockfile #328

Merged
merged 1 commit into from
Apr 17, 2020

Conversation

zkochan
Copy link
Contributor

@zkochan zkochan commented Apr 17, 2020

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Apr 17, 2020

🦋 Changeset is good to go

Latest commit: 67a600c

We got this.

This PR includes changesets to release 1 package
Name Type
@changesets/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov
Copy link

codecov bot commented Apr 17, 2020

Codecov Report

Merging #328 into master will increase coverage by 0.22%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #328      +/-   ##
==========================================
+ Coverage   79.62%   79.84%   +0.22%     
==========================================
  Files          40       40              
  Lines        1065     1062       -3     
  Branches      239      237       -2     
==========================================
  Hits          848      848              
+ Misses        207      204       -3     
  Partials       10       10              
Impacted Files Coverage Δ
packages/cli/src/commands/publish/npm-utils.ts 6.55% <0.00%> (+0.30%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d678da5...67a600c. Read the comment docs.

}
const pm = await preferredPM(cwd);
if (!pm) return "npm";
return pm.name === "pnpm" ? "pnpm" : "npm";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

preferred-pm also detects Yarn properly. But this function was only returning npm or pnpm, so probably should stay that way.

Copy link
Member

@emmatown emmatown left a comment

Choose a reason for hiding this comment

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

Thanks!!

@emmatown emmatown merged commit d570a24 into changesets:master Apr 17, 2020
@github-actions github-actions bot mentioned this pull request Apr 17, 2020
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