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: dependencies version consistency #2235

Conversation

richardgreg
Copy link
Contributor

Fixes #2028

Comment on lines 145 to 146
- name: Install syncpack
run: pnpm add --save-dev syncpack
Copy link
Contributor

Choose a reason for hiding this comment

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

Better to have this as a development dependency on the monorepo, so we can version it properly. And we have the config file committed anyways.

Comment on lines 142 to 169
- name: Install Dependencies
run: pnpm install

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- name: Install Dependencies
run: pnpm install

Would suggest removing this as ./.github/actions/ci-setup already performs an install 😄

@richardgreg richardgreg force-pushed the chore/dependencies-version-consistency branch 3 times, most recently from d8d9146 to 087125f Compare May 7, 2024 10:55
Copy link
Member

@maschad maschad left a comment

Choose a reason for hiding this comment

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

Thanks for your work on this.

A few things:

  • Seems you need to run pnpm install as the lock file is not in sync with the package.json
  • I'd suggest adding a command in the package.json to run the job akin to the depcheck command that you can call from from the CI job.
  • I'm going to put the PR in draft, you can re-open it once all the CI tests pass, but whilst they are failing please use the logs to inform you on how best to proceed.

@maschad maschad marked this pull request as draft May 7, 2024 17:13
@richardgreg richardgreg force-pushed the chore/dependencies-version-consistency branch 4 times, most recently from f745640 to 64128ff Compare May 15, 2024 16:06
@richardgreg
Copy link
Contributor Author

Hi @maschad, is this good enough?

Copy link
Member

@maschad maschad left a comment

Choose a reason for hiding this comment

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

Hi @richardgreg I think this is a great start. To finish up:

  • you may want to define a syncpack config to avoid mismatches such as workspace:*
  • Apparently there is a Github action which might save you some trouble

After that you can fix the mismatches then this should be ready for review

package.json Outdated
@@ -110,8 +111,9 @@
"vite": "^5.2.10",
"vite-plugin-node-polyfills": "^0.21.0",
"vite-plugin-plain-text": "^1.4.2",
"vitest": "^1.6.0",
"webdriverio": "^8.36.1"
"vitest": "^1.1.3",
Copy link
Member

Choose a reason for hiding this comment

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

Did you intend to downgrade "vitest" ? I suppose this is an accident

@richardgreg richardgreg force-pushed the chore/dependencies-version-consistency branch 3 times, most recently from 39d4f5e to 6b90879 Compare May 30, 2024 16:10
@richardgreg richardgreg force-pushed the chore/dependencies-version-consistency branch from 6b90879 to e97529f Compare May 30, 2024 16:19
@richardgreg richardgreg force-pushed the chore/dependencies-version-consistency branch from 9b44bae to e8fc80a Compare May 30, 2024 19:20
@richardgreg
Copy link
Contributor Author

Hi @maschad, I've made the modifications.

@maschad
Copy link
Member

maschad commented Jun 6, 2024

Thanks for this work @richardgreg

I must apologize for an oversight on my part as it seems you would need elevated permissions to be able to run this workflow accurately, which is why you are getting this error

I will take over the PR from here, merging your changes into one of my branches. Thanks for all of your work!

@maschad maschad self-assigned this Jun 6, 2024
@arboleya arboleya added this to the 0.x mainnet milestone Jun 12, 2024
@maschad maschad added the p2 label Jun 17, 2024
@arboleya arboleya removed this from the 0.x mainnet milestone Jul 19, 2024
@richardgreg
Copy link
Contributor Author

Hi @maschad, do you have any other issues of this calibre in mind that I can work on?

@arboleya arboleya removed the p2 label Aug 2, 2024
@maschad
Copy link
Member

maschad commented Aug 2, 2024

Hi @richardgreg feel free to look through our good first issues and see if there's anything that piques your interest.

@petertonysmith94
Copy link
Contributor

Superseded by #2883

Thank you @richardgreg 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Issue is a chore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore: ensure consistent dependency versions across packages
5 participants