Skip to content

Switch from pnpm to Yarn (Berry 4) - #3

Merged
Kinflou merged 1 commit into
mainfrom
chore/yarn-berry
Sep 3, 2026
Merged

Switch from pnpm to Yarn (Berry 4)#3
Kinflou merged 1 commit into
mainfrom
chore/yarn-berry

Conversation

@Kinflou

@Kinflou Kinflou commented Sep 3, 2026

Copy link
Copy Markdown
Member

Standardises the web projects on Yarn 4 (the playground is doing the same in
ComlineProject/playground#42).

Setup

  • .yarnrc.ymlnodeLinker: node-modules (PnP would need plugins for
    Vite's wasm ?url + the comline-simulator/pkg-script/… deep import);
    approvedGitRepositories + enableScripts: true so the git-dep sim engine
    can fetch and build; checksumBehavior: update because that WASM build
    isn't byte-reproducible across machines. Yarn 4.18 committed under
    .yarn/releases/.
  • pnpm-lock.yamlyarn.lock; pnpm.overridesresolutions; .npmrc
    dropped.
  • deploy.yml — drops pnpm/action-setup; yarn install (with
    COMLINE_SIMULATOR_SCRIPT=0 — the tutorial only uses the lean pkg/) /
    yarn build; cache: yarn.
  • comline-simulator repinned to eff27ce (simulator#18, which teaches the
    build hook to also run as prepack — Yarn Berry uses that for git deps).

Checks

yarn check (svelte-check 0/0), yarn build, and yarn test:unit pass
locally.

- `.yarnrc.yml` — `nodeLinker: node-modules`, the committed Yarn 4 release,
  `approvedGitRepositories` + `enableScripts` for the `comline-simulator` git
  dep, `checksumBehavior: update` (its WASM build isn't byte-reproducible).
- `pnpm-lock.yaml` → `yarn.lock`; `pnpm.overrides` → `resolutions`; drop
  `.npmrc` (`engine-strict` has no Yarn equivalent); `test` script uses
  `yarn`.
- `deploy.yml` — no more `pnpm/action-setup`; `yarn install` (with
  `COMLINE_SIMULATOR_SCRIPT=0`, the tutorial only needs the lean sim) /
  `yarn build`; `cache: yarn`.
- Repin `comline-simulator` to simulator@eff27ce (#18 — Yarn runs `prepack`,
  which that adds).

`yarn check` / `yarn build` / `yarn test:unit` all pass.
@Kinflou
Kinflou merged commit 2fa2041 into main Sep 3, 2026
@Kinflou
Kinflou deleted the chore/yarn-berry branch September 3, 2026 18:57
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.

1 participant