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

Update dependencies and pnpm version #1633

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Update dependencies and pnpm version #1633

wants to merge 3 commits into from

Conversation

wycats
Copy link
Contributor

@wycats wycats commented Oct 15, 2024

This commit updates a number of dependencies used during package development and as part of the build process.

In addition to updating dependencies, this commit also updates pnpm to v9.12, which adds the catalog: protocol1 (it was added in v9.5).

The catalog: protocol makes it possible to define package versions in pnpm-workspace.yaml and use those versions throughout the workspace.

This commit moved to catalog: for:

  • eslint
  • typescript
  • vite

These dependencies are used extensively throughout the workspace, and catalog: is an improvement over the implicit * dependency we were using for TypeScript.

We could make more use of catalog: in the future, but this commit focuses on a few dependencies that were updated in multiple places in the workspace as part of the dependency updates in this commit.

Footnotes

  1. https://pnpm.io/catalogs

This commit updates a number of dependencies used during package
development and as part of the build process.

In addition to updating dependencies, this commit also updates pnpm to
v9.12, which adds the `catalog:` protocol[^1] (it was added in v9.5).

The `catalog:` protocol makes it possible to define package versions in
`pnpm-workspace.yaml` and use those versions throughout the workspace.

This commit moved to `catalog:` for:

- eslint
- typescript
- vite

These dependencies are used extensively throughout the workspace, and
`catalog:` is an improvement over the implicit `*` dependency we were
using for TypeScript.

We could make more use of `catalog:` in the future, but this commit
focuses on a few dependencies that were updated in multiple places in
the workspace as part of the dependency updates in this commit.

[^1]: https://pnpm.io/catalogs
@@ -9,3 +9,7 @@ packages:
- 'packages/@glimmer-workspace/*'
- 'packages/@glimmer-workspace/*/test'
- 'packages/@types/*'
catalog:
eslint: ^8.57.1
typescript: ^5.6.3
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this has to be on ~5.5 -- ts-eslint doesn't even support 5.6 yet

We're not going to update the rollup plugin in this PR, so we'll stick
to TS 5.5 for now.

We should move to `@rollup/plugin-typescript` as soon as we can so we
don't get stuck on TS 5.5.
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.

2 participants