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

chore: yarn to pnpm #334

Merged
merged 8 commits into from
May 14, 2023
Merged

chore: yarn to pnpm #334

merged 8 commits into from
May 14, 2023

Conversation

baseballyama
Copy link
Member

@baseballyama baseballyama commented May 14, 2023

close: #333

@changeset-bot
Copy link

changeset-bot bot commented May 14, 2023

🦋 Changeset detected

Latest commit: 9e2d388

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

This PR includes changesets to release 1 package
Name Type
svelte-eslint-parser Minor

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

@coveralls
Copy link

coveralls commented May 14, 2023

Pull Request Test Coverage Report for Build 4971008653

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 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 90.777%

Totals Coverage Status
Change from base Build 4927073925: 0.0%
Covered Lines: 2105
Relevant Lines: 2243

💛 - Coveralls

Copy link
Member Author

@baseballyama baseballyama left a comment

Choose a reason for hiding this comment

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

I took a diff for lib dir between main branch and this branch, and only difference is the comment which is the word yarn and pnpm.

@@ -69,6 +69,7 @@ module.exports = {
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-implicit-globals": "off",
"no-void": ["error", { allowAsStatement: true }],
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure why suddenly ESLint error occurs but I needed to add this.

test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 17.x, 18.x, 19.x]
node-version: [14.x, 16.x, 17.x, 18.x, 19.x]
Copy link
Member Author

Choose a reason for hiding this comment

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

I dropped Node 12 because pnpm 7 doesn't support it.
Can we do this?

Copy link
Member

Choose a reason for hiding this comment

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

How about creating a test-for-node12 job and using pnpm v6?

  test-for-node12:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: pnpm/action-setup@v2
        with:
          version: 6.35.1

If it still doesn't work, let's drop support for node v12.
Since this package is still at 0.x, I believe it can contain breaking changes in minor versions.

@baseballyama baseballyama marked this pull request as ready for review May 14, 2023 06:38
@baseballyama baseballyama requested a review from ota-meshi May 14, 2023 06:38
Copy link
Member

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

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

Thank you for this PR!

@@ -28,12 +28,12 @@ jobs:
- uses: actions/setup-node@v3
Copy link
Member

Choose a reason for hiding this comment

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

I think pnpm/action-setup is necessary.

Suggested change
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3

Copy link
Member Author

Choose a reason for hiding this comment

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

I couldn't do this perfectly😇
fixed!
92a644b

test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 17.x, 18.x, 19.x]
node-version: [14.x, 16.x, 17.x, 18.x, 19.x]
Copy link
Member

Choose a reason for hiding this comment

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

How about creating a test-for-node12 job and using pnpm v6?

  test-for-node12:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: pnpm/action-setup@v2
        with:
          version: 6.35.1

If it still doesn't work, let's drop support for node v12.
Since this package is still at 0.x, I believe it can contain breaking changes in minor versions.

@@ -27,16 +27,16 @@ jobs:
node-version: 16

- name: Install Dependencies
run: yarn
run: pnpm install
Copy link
Member

Choose a reason for hiding this comment

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

I think pnpm/action-setup is necessary.

Copy link
Member Author

Choose a reason for hiding this comment

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

I couldn't do this perfectly😇
fixed!
92a644b

@baseballyama baseballyama force-pushed the chore/pnpm branch 2 times, most recently from f9abea9 to 3702dcc Compare May 14, 2023 07:56
@ota-meshi
Copy link
Member

Hmm. It seems that v6 and v7 handle command line arguments differently.

https://raulmelo.dev/en/blog/migrating-from-pnpm-6-to-7#running-a-script

@ota-meshi
Copy link
Member

Let's drop support for Node v12 😄

@baseballyama baseballyama requested a review from ota-meshi May 14, 2023 08:14
Copy link
Member

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

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

Thank you very much!

@ota-meshi ota-meshi merged commit fa4adf6 into sveltejs:main May 14, 2023
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.

Use pnpm or update package.json
3 participants