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(core): pnpm #1007

Merged
merged 3 commits into from
Dec 9, 2023
Merged

chore(core): pnpm #1007

merged 3 commits into from
Dec 9, 2023

Conversation

etowahadams
Copy link
Contributor

Fix #
Toward #897

Change List

  • Replaces yarn with pnpm as the main package manager.

We use pnpm workspaces in Guisling and other projects in the lab for monorepo package management. To be consistent, Gosling should also use pnpm. This is in preparation for making Gosling a monorepo.

Checklist

  • Ensure the PR works with all demos on the online editor
  • Unit tests added or updated
  • Examples added or updated
  • Documentation updated (e.g., added API functions)
  • Screenshots for visual changes (e.g., new encoding support or UI change on Editor)

@@ -64,6 +65,7 @@
"d3-array": "^2.5.1",
"d3-color": "^2.0.0",
"d3-dsv": "^2.0.0",
"d3-format": "^3.1.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because pnpm doesn't hoist package dependencies in node_modules, I needed to add several packages.

@@ -132,6 +141,7 @@
"react-resize-detector": "^4.2.3",
"react-router-dom": "^5.2.0",
"remark-gfm": "^1.0.0",
"safe-stable-stringify": "^2.4.3",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Used when running pnpm schema

@etowahadams etowahadams requested a review from sehilyi December 8, 2023 19:52

```sh
git clone https://github.com/gosling-lang/gosling.js.git # Clone the repository to your current directory
cd gosling.js # Navigate to gosling repository
yarn # Install dependencies
yarn start # Start a local server running the Gosling online editor
pnpm # Install dependencies
Copy link
Member

@sehilyi sehilyi Dec 9, 2023

Choose a reason for hiding this comment

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

It looks like pnpm itself does not install packages?

Suggested change
pnpm # Install dependencies
pnpm install # Install dependencies

Copy link
Collaborator

Choose a reason for hiding this comment

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

I just noticed this, too. Seems like it slipped through the cracks and wasn't fixed in the PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, will make the PR now!

Copy link
Member

@sehilyi sehilyi left a comment

Choose a reason for hiding this comment

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

Awesome! Tested locally and works well. I will merge this into the master.

@sehilyi sehilyi merged commit 4f188e3 into master Dec 9, 2023
4 checks passed
@sehilyi sehilyi deleted the etowahadams/pnpm branch December 9, 2023 01:27
@etowahadams
Copy link
Contributor Author

Great thanks!

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.

3 participants