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

Sort package.jsons #4309

Merged
merged 10 commits into from
Feb 1, 2022
Merged

Sort package.jsons #4309

merged 10 commits into from
Feb 1, 2022

Conversation

jtoar
Copy link
Contributor

@jtoar jtoar commented Jan 31, 2022

I've been looking at the framework's package.jsons a lot more and since they're all sorted differently, bouncing between them is harder than it has to be. So this PR uses sort-package-json to make things consistent across workspaces:

yarn workspaces foreach dlx sort-package-json

We can configure it and/or add it to CI.

Also here's docs on yarn workspaces foreach and yarn dlx (which is equivalent to npx):

@jtoar jtoar added the release:chore This PR is a chore (means nothing for users) label Jan 31, 2022
@jtoar jtoar self-assigned this Jan 31, 2022
Copy link
Contributor

@thedavidprice thedavidprice left a comment

Choose a reason for hiding this comment

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

Yes to these changes overall.

re: sort-package-json
I agree we should add this properly to CI, which means we need to run it locally, too, and seems a candidate to add to ./package.json

Because I'm seeing more PRs created that have initial issues with dedupe, constraints (still needs fix), and (now), sort-package-json, what do you think about the following:

  • need more helpful output during CI about how to resolve if one of those checks failed
  • could use a tool/script locally to run before submitting PR; e.g. yarn pr-prep that runs yarn dedupe && yarn constraints && yarn sort-package-json Or something like that
  • ... ?

Making sense? Reactions?

@jtoar
Copy link
Contributor Author

jtoar commented Jan 31, 2022

@thedavidprice Working through some ideas; will update later today.

@jtoar
Copy link
Contributor Author

jtoar commented Jan 31, 2022

@thedavidprice Think I've got this into a mergable state: https://s.tape.sh/mwLz7dnP.

Copy link
Contributor

@thedavidprice thedavidprice left a comment

Choose a reason for hiding this comment

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

Nice! This is a great idea (and CI addition). It's fine by me as is, but a couple suggestions:

  • See my comment here about console.log in the context of GH Workflow run
  • What do you think about updating the CONTRIBUTING.md to mention yarn check?
  • Reminder as next step to look into why yarn constraints isn't catching ^. (See this PR comment from earlier today Pin dependencies #4317)

I'll attemp to use the same structure to create a kind of "Actions Helper" for the make directory step in #4266

@jtoar jtoar enabled auto-merge (squash) February 1, 2022 05:12
@jtoar jtoar merged commit 4dc5aaa into main Feb 1, 2022
@jtoar jtoar deleted the ds-sort-package-jsons branch February 1, 2022 05:27
@jtoar jtoar added this to the next-release milestone Feb 1, 2022
dac09 added a commit to dac09/redwood that referenced this pull request Feb 1, 2022
…ize-jest-config

* 'main' of github.com:redwoodjs/redwood: (46 commits)
  update contributing content (redwoodjs#4325)
  Upgrade yarn to 3.1.1 (redwoodjs#3919)
  Sort package.jsons (redwoodjs#4309)
  Update dependency esbuild to v0.14.16 (redwoodjs#4322)
  Add explanation and docs link in generated tests (redwoodjs#4218)
  Update dependency webpack to v5.68.0 (redwoodjs#4315)
  Update dependency esbuild to v0.14.15 (redwoodjs#4321)
  Update dependency cypress to v9.4.1 (redwoodjs#4319)
  Update dependency @typescript-eslint/parser to v5.10.2 (redwoodjs#4318)
  Pin dependencies (redwoodjs#4317)
  Pull proper keys for Yarn and npm (redwoodjs#4313)
  Add missing deps to @redwoodjs/forms package.json (redwoodjs#4310)
  Update dependency @typescript-eslint/eslint-plugin to v5.10.2 (redwoodjs#4314)
  Tweak release script (redwoodjs#4312)
  Update dependency @graphql-codegen/typescript-operations to v2.2.3 (redwoodjs#4311)
  Update dependency vscode-languageserver-textdocument to v1.0.4 (redwoodjs#4308)
  Update dependency copy-webpack-plugin to v10.2.4 (redwoodjs#4307)
  Update storybook monorepo to v6.4.17 (redwoodjs#4306)
  Update release script (redwoodjs#4305)
  Update dependency msw to v0.36.8 (redwoodjs#4301)
  ...
@thedavidprice thedavidprice modified the milestones: next-release, v0.44.0 Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:chore This PR is a chore (means nothing for users)
Projects
No open projects
Status: Archived
Development

Successfully merging this pull request may close these issues.

None yet

3 participants