-
Notifications
You must be signed in to change notification settings - Fork 55
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
Switch to pnpm #249
Conversation
@@ -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" |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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
"@automerge/automerge-repo": "workspace:*", | ||
"debug": "^4.3.4", | ||
"eventemitter3": "^5.0.1" |
There was a problem hiding this comment.
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.
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
This LVGTM. @pvh any concerns? |
af5dd03
to
50db010
Compare
50db010
to
3eeef12
Compare
Replaces yarn 1.x with pnpm as package manager for the repo.