Skip to content

Switch the app from npm to Yarn (Berry 4) - #42

Merged
Kinflou merged 2 commits into
masterfrom
chore/yarn-berry
Sep 3, 2026
Merged

Switch the app from npm to Yarn (Berry 4)#42
Kinflou merged 2 commits into
masterfrom
chore/yarn-berry

Conversation

@Kinflou

@Kinflou Kinflou commented Sep 3, 2026

Copy link
Copy Markdown
Member

app/ moves off npm to Yarn 4. Folds in the comline-simulator repin that
#41 was doing (now closed).

Setup

  • .yarnrc.yml
    • nodeLinker: node-modules — PnP would need plugins to satisfy Vite's
      wasm ?url imports and the comline-simulator/pkg-script/… deep imports.
    • approvedGitRepositories + enableScripts: true — Yarn 4 gates git deps
      and disables lifecycle scripts by default; the sim engine is a git dep
      that builds itself in prepack.
    • checksumBehavior: update — that WASM build isn't byte-reproducible
      (wasm-opt runs only where installed), so the git-dep tarball checksum
      drifts between machines; Yarn refreshes it instead of failing.
    • the Yarn 4.18 release is committed under .yarn/releases/ (the runner's
      Yarn 1.x delegates to it — no corepack needed).
  • package-lock.jsonyarn.lock; deploy.yml uses yarn install /
    yarn test / yarn build.

Checks

yarn test (20 view tests) and yarn build pass; build output keeps
comline_simulator as a split async chunk.

Before merging

- `.yarnrc.yml` — `nodeLinker: node-modules` (PnP would fight Vite's wasm
  `?url` + the git-dep deep imports), the committed Yarn 4 release,
  `approvedGitRepositories` + `enableScripts` so the `comline-simulator` git
  dep can fetch and run its build, `checksumBehavior: update` because that
  WASM build isn't byte-reproducible across machines.
- `package-lock.json` → `yarn.lock`; scripts use `yarn`; `deploy.yml` runs
  `yarn install` / `yarn test` / `yarn build` (the runner's Yarn 1.x
  delegates to `.yarn/releases/`).

`yarn test` (20) and `yarn build` pass; the scripted sim wasm still
code-splits. Supersedes #41. Repin `comline-simulator` to the simulator#18
merge SHA before this lands.
@Kinflou
Kinflou merged commit 029c222 into master Sep 3, 2026
1 check failed
@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