Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

js: Move everything to pnpm #5775

Merged
merged 21 commits into from
Nov 9, 2023
Merged

js: Move everything to pnpm #5775

merged 21 commits into from
Nov 9, 2023

Conversation

joncinque
Copy link
Contributor

Problem

There's a lot of libraries in SPL, and managing all of their dependencies can take awhile, especially as all of the dependabot PRs come in.

Solution

Move everything to one pnpm-lock.yaml file! As I was going through the different packages, there were loads of issues, so I had to fix up a few other things. This is step 1, and after this, we can change all of the deps in the package.json files to use the version from workspace:*

Note: this is currently set to draft while CI gets happy

@joncinque joncinque force-pushed the pnpm branch 2 times, most recently from b19249a to 7563d76 Compare November 8, 2023 23:19
@joncinque joncinque mentioned this pull request Nov 9, 2023
5 tasks
@joncinque joncinque marked this pull request as ready for review November 9, 2023 01:32
@joncinque joncinque requested a review from buffalojoec November 9, 2023 01:32
Copy link
Contributor

@buffalojoec buffalojoec left a comment

Choose a reason for hiding this comment

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

I love it! This should make managing JS libraries in SPL much easier.

stake-pool/js/package.json Show resolved Hide resolved
.github/workflows/pull-request-stake-pool.yml Show resolved Hide resolved
token-swap/js/package.json Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

We could enforce eslint and prettier at the root level for all libs (like rustfmt). pnpm will pick it up.

Also, have you seen @solana/eslint-config-solana?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah cool, I added that as an item in #5785, and I can definitely use the @solana version!

@joncinque joncinque merged commit c817ecb into solana-labs:master Nov 9, 2023
39 checks passed
@joncinque joncinque deleted the pnpm branch November 9, 2023 12:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants