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

set pnpm version #1762

Merged
merged 2 commits into from
Jun 26, 2023
Merged

set pnpm version #1762

merged 2 commits into from
Jun 26, 2023

Conversation

AlexErrant
Copy link
Contributor

Summary

Manually specify PNPM version so new contributors' PNPM version and lockfile don't get out of sync.

@changeset-bot
Copy link

changeset-bot bot commented Jun 5, 2023

🦋 Changeset detected

Latest commit: 2db964d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

Comment on lines -17 to -18
with:
version: 8
Copy link
Contributor Author

Choose a reason for hiding this comment

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

May be removed because

Optional when there is a packageManager field in the package.json.

Source.

Comment on lines -95 to +97
1. `pnpm install` (install all dependencies)
2. `pnpm run build`
1. `corepack enable` (use the correct version of PNPM, https://nodejs.org/api/corepack.html#enabling-the-feature)
2. `pnpm install` (install all dependencies)
3. `pnpm build`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, corepack is experimental, but it's the best solution I know of to juggle PNPM versions.

Comment on lines +61 to +63
"engines": {
"pnpm": ">=8.6.1"
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

"engines": {
"pnpm": ">=8.6.1"
},
"packageManager": "pnpm@8.6.1"
Copy link
Contributor Author

@AlexErrant AlexErrant Jun 5, 2023

Choose a reason for hiding this comment

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

https://nodejs.org/docs/latest-v18.x/api/all.html#all_packages_packagemanager

Until the above docs or StackOverflow comes to a clear answer/recommendation, I lean conservative and don't think we should specify a PNPM version range for packageManager, which AFAIK only used for specifying corepack's PNPM version.

@ryansolid ryansolid merged commit 434a076 into solidjs:main Jun 26, 2023
1 check passed
@ryansolid
Copy link
Member

Thank you

@AlexErrant AlexErrant deleted the pnpm branch July 7, 2023 15:55
@coveralls
Copy link

Pull Request Test Coverage Report for Build 5383797133

Warning: This coverage report may be inaccurate.

We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 94.256%

Totals Coverage Status
Change from base Build 5177320944: 0.0%
Covered Lines: 4124
Relevant Lines: 4305

💛 - Coveralls

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

3 participants