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

Switch to pnpm #249

Merged
merged 9 commits into from
Dec 19, 2023
Merged

Switch to pnpm #249

merged 9 commits into from
Dec 19, 2023

Conversation

HerbCaudill
Copy link
Collaborator

Replaces yarn 1.x with pnpm as package manager for the repo.

@HerbCaudill HerbCaudill requested a review from pvh December 4, 2023 17:21
@@ -1,5 +1,5 @@
import { next as A } from "@automerge/automerge"
import { MessageChannelNetworkAdapter } from "@automerge/automerge-repo-network-messagechannel"
import { MessageChannelNetworkAdapter } from "../../automerge-repo-network-messagechannel/src/index.js"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Doing it this way because otherwise pnpm reports a circular dependency (which it technically is, but this is a test so it doesn't really matter).

"dev": "run-p watch start:syncserver dev:demo",
"pub": "lerna publish --yes",
"start:syncserver": "cross-env DEBUG='WebsocketServer' yarn workspace @automerge/example-sync-server start",
"start:syncserver": "cross-env DEBUG='WebsocketServer' pnpm -F @automerge/example-sync-server start",
"preinstall": "npx only-allow pnpm",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this helps us avoid accidentally running yarn install etc

Comment on lines +16 to +18
"@automerge/automerge-repo": "workspace:*",
"debug": "^4.3.4",
"eventemitter3": "^5.0.1"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

pnpm is stricter about packages only using dependencies that they declare, whereas yarn let us get away with being sloppy.

@HerbCaudill HerbCaudill marked this pull request as ready for review December 4, 2023 17:27
@HerbCaudill HerbCaudill changed the base branch from main to refactor-websocket-adapters December 5, 2023 13:28
@HerbCaudill
Copy link
Collaborator Author

HerbCaudill commented Dec 5, 2023

@alexjg
Copy link
Contributor

alexjg commented Dec 6, 2023

This LVGTM. @pvh any concerns?

.github/workflows/release.yaml Outdated Show resolved Hide resolved
.github/workflows/release.yaml Outdated Show resolved Hide resolved
@HerbCaudill HerbCaudill force-pushed the refactor-websocket-adapters branch from 50db010 to 3eeef12 Compare December 8, 2023 14:26
@pvh pvh merged commit 3c2e71f into refactor-websocket-adapters Dec 19, 2023
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