Repository navigation
Conversation
Metro review: Changes suggestedRisk: low · Commit: The PR declares seven root dev dependencies that Yarn hoisting was providing, so that root scripts also work under pnpm. Each range matches what Findings
Verified
Not run: I didn't re-run Automated review by Claude. Advisory only: it never approves or blocks, and a maintainer makes the call. |
Our root scripts use several packages that the root `package.json` doesn't declare. They work under Yarn only because hoisting happens to put them in the root `node_modules`: - `@babel/register` and `nullthrows`, used by `build` and the other scripts under `scripts/` - `flow-estree`, used by our lint rules - `@types/babel__core`, `@types/babel__traverse` and `@types/connect`, needed by `typecheck-ts` - `source-map@^0.6.1`. Our packages depend on 0.5, which ships no types, so `typecheck-ts` has been picking up the hoisted 0.6 typings instead. This keeps that behaviour explicit. Each range matches what's already locked, so `yarn.lock` doesn't change. This is needed for any package manager that doesn't hoist, in particular pnpm. Changelog: Internal Test plan: `yarn install --frozen-lockfile` passes with the unchanged `yarn.lock`. Under pnpm 11.28.8 and 12.15.0, before this change `build`, `lint` and `typecheck-ts` fail on missing modules or declarations. After it, `build`, `lint`, `format-check`, `verify-api-snapshots`, `typecheck-ts` and `test-smoke` all pass.
Yarn hoists every dependency into the root `node_modules`, so a package can import something it doesn't declare and nothing notices until a user installs it some other way. #2116 fixed the cases in our root scripts, and this makes sure we don't regress. This adds a `test-pnpm` job to `build-test-and-deploy`. It generates `pnpm-lock.yaml` from `yarn.lock` with `pnpm import`, installs, and runs Flow, `typecheck-ts`, lint and Jest (with the same retries as the Yarn test job). It's a single Ubuntu / Node 24 job rather than another matrix - it's there to catch undeclared dependencies, not platform differences. pnpm is pinned so that `pnpm import` output doesn't drift under us. Changelog: Internal Test plan: `actionlint` passes. Ran the job's steps locally against a fresh copy of this PR, with pnpm 12.21.0 (on Node 22.13 rather than 24) - all pass, including Jest (175 suites, 3475 tests). CI on this PR runs the new job.
Yarn hoists every dependency into the root `node_modules`, so a package can import something it doesn't declare and nothing notices until a user installs it some other way. #2116 fixed the cases in our root scripts, and this makes sure we don't regress. This adds a `test-pnpm` job to `build-test-and-deploy`. It generates `pnpm-lock.yaml` from `yarn.lock` with `pnpm import`, installs, and runs Flow, `typecheck-ts`, lint and Jest (with the same retries as the Yarn test job). It's a single Ubuntu / Node 24 job rather than another matrix - it's there to catch undeclared dependencies, not platform differences. pnpm is pinned so that `pnpm import` output doesn't drift under us. Changelog: Internal Test plan: `actionlint` passes. Ran the job's steps locally against a fresh copy of this PR, with pnpm 12.21.0 (on Node 22.13 rather than 24) - all pass, including Jest (175 suites, 3475 tests). CI on this PR runs the new job.
Yarn hoists every dependency into the root `node_modules`, so a package can import something it doesn't declare and nothing notices until a user installs it some other way. #2116 fixed the cases in our root scripts, and this makes sure we don't regress. This adds a `test-pnpm` job to `build-test-and-deploy`. It generates `pnpm-lock.yaml` from `yarn.lock` with `pnpm import`, installs, and runs Flow, `typecheck-ts`, lint and Jest (with the same retries as the Yarn test job). It's a single Ubuntu / Node 24 job rather than another matrix - it's there to catch undeclared dependencies, not platform differences. pnpm is pinned so that `pnpm import` output doesn't drift under us. Changelog: Internal Test plan: `actionlint` passes. Ran the job's steps locally against a fresh copy of this PR, with pnpm 12.21.0 (on Node 22.13 rather than 24) - all pass, including Jest (175 suites, 3475 tests). CI on this PR runs the new job.
Yarn hoists every dependency into the root `node_modules`, so a package can import something it doesn't declare and nothing notices until a user installs it some other way. #2116 fixed the cases in our root scripts, and this makes sure we don't regress. This adds a `test-pnpm` job to `build-test-and-deploy`. It generates `pnpm-lock.yaml` from `yarn.lock` with `pnpm import`, installs, and runs Flow, `typecheck-ts`, lint and Jest (with the same retries as the Yarn test job). It's a single Ubuntu / Node 24 job rather than another matrix - it's there to catch undeclared dependencies, not platform differences. pnpm is pinned so that `pnpm import` output doesn't drift under us. Changelog: Internal Test plan: `actionlint` passes. Ran the job's steps locally against a fresh copy of this PR, with pnpm 12.21.0 (on Node 22.13 rather than 24) - all pass, including Jest (175 suites, 3475 tests). CI on this PR runs the new job.
Yarn hoists every dependency into the root `node_modules`, so a package can import something it doesn't declare and nothing notices until a user installs it some other way. #2116 fixed the cases in our root scripts, and this makes sure we don't regress. This adds a `test-pnpm` job to `build-test-and-deploy`. It generates `pnpm-lock.yaml` from `yarn.lock` with `pnpm import`, installs, and runs Flow, `typecheck-ts`, lint and Jest (with the same retries as the Yarn test job). It's a single Ubuntu / Node 24 job rather than another matrix - it's there to catch undeclared dependencies, not platform differences. pnpm is pinned so that `pnpm import` output doesn't drift under us. Changelog: Internal Test plan: `actionlint` passes. Ran the job's steps locally against a fresh copy of this PR, with pnpm 12.21.0 (on Node 22.13 rather than 24) - all pass, including Jest (175 suites, 3475 tests). CI on this PR runs the new job.
Yarn hoists every dependency into the root `node_modules`, so a package can import something it doesn't declare and nothing notices until a user installs it some other way. #2116 fixed the cases in our root scripts, and this makes sure we don't regress. This adds a `test-pnpm` job to `build-test-and-deploy`. It generates `pnpm-lock.yaml` from `yarn.lock` with `pnpm import`, installs, and runs Flow, `typecheck-ts`, lint and Jest (with the same retries as the Yarn test job). It's a single Ubuntu / Node 24 job rather than another matrix - it's there to catch undeclared dependencies, not platform differences. pnpm is pinned so that `pnpm import` output doesn't drift under us. Changelog: Internal Test plan: `actionlint` passes. Ran the job's steps locally against a fresh copy of this PR, with pnpm 12.21.0 (on Node 22.13 rather than 24) - all pass, including Jest (175 suites, 3475 tests). CI on this PR runs the new job.
Yarn hoists every dependency into the root `node_modules`, so a package can import something it doesn't declare and nothing notices until a user installs it some other way. #2116 fixed the cases in our root scripts, and this makes sure we don't regress. This adds a `test-pnpm` job to `build-test-and-deploy`. It generates `pnpm-lock.yaml` from `yarn.lock` with `pnpm import`, installs, and runs Flow, `typecheck-ts`, lint and Jest (with the same retries as the Yarn test job). It's a single Ubuntu / Node 24 job rather than another matrix - it's there to catch undeclared dependencies, not platform differences. pnpm is pinned so that `pnpm import` output doesn't drift under us. Changelog: Internal Test plan: `actionlint` passes. Ran the job's steps locally against a fresh copy of this PR, with pnpm 12.21.0 (on Node 22.13 rather than 24) - all pass, including Jest (175 suites, 3475 tests). CI on this PR runs the new job.
#2116, #2257 etc fixed some missing dependencies, now we close the loop by ensuring we can't regress. This adds a `test-pnpm` job to `build-test-and-deploy`. It generates `pnpm-lock.yaml` from `yarn.lock` with `pnpm import`, installs, and runs Flow, `typecheck-ts`, lint and Jest (with the same retries as the Yarn test job). It doesn't need to run on multiple platforms / versions so it's just Ubuntu and Node LTS. Changelog: Internal Test plan: `actionlint` passes. Ran the job's steps locally against a fresh copy of this PR, with pnpm 12.21.0 (on Node 22.13 rather than 24) - all pass, including Jest (175 suites, 3475 tests). CI on this PR runs the new job.
#2116, #2257 etc fixed some missing dependencies, now we close the loop by ensuring we can't regress. This adds a `test-pnpm` job to `build-test-and-deploy`. It generates `pnpm-lock.yaml` from `yarn.lock` with `pnpm import`, installs, and runs Flow, `typecheck-ts`, lint and Jest (with the same retries as the Yarn test job). It doesn't need to run on multiple platforms / versions so it's just Ubuntu and Node LTS. Changelog: Internal Test plan: `actionlint` passes. Ran the job's steps locally against a fresh copy of this PR, with pnpm 12.21.0 (on Node 22.13 rather than 24) - all pass, including Jest (175 suites, 3475 tests). CI on this PR runs the new job.
#2116, #2257 etc fixed some missing dependencies, now we close the loop by ensuring we can't regress. This adds a `test-pnpm` job to `build-test-and-deploy`. It generates `pnpm-lock.yaml` from `yarn.lock` with `pnpm import`, installs, and runs Flow, `typecheck-ts`, lint and Jest (with the same retries as the Yarn test job). It doesn't need to run on multiple platforms / versions so it's just Ubuntu and Node LTS. Changelog: Internal Test plan: `actionlint` passes. Ran the job's steps locally against a fresh copy of this PR, with pnpm 12.21.0 (on Node 22.13 rather than 24) - all pass, including Jest (175 suites, 3475 tests). CI on this PR runs the new job.
#2116, #2257 etc fixed some missing dependencies, now we close the loop by ensuring we can't regress. This adds a `test-pnpm` job to `build-test-and-deploy`. It generates `pnpm-lock.yaml` from `yarn.lock` with `pnpm import`, installs, and runs Flow, `typecheck-ts`, lint and Jest (with the same retries as the Yarn test job). It doesn't need to run on multiple platforms / versions so it's just Ubuntu and Node LTS. Changelog: Internal Test plan: `actionlint` passes. Ran the job's steps locally against a fresh copy of this PR, with pnpm 12.21.0 (on Node 22.13 rather than 24) - all pass, including Jest (175 suites, 3475 tests). CI on this PR runs the new job.
#2116, #2257 etc fixed some missing dependencies, now we close the loop by ensuring we can't regress. This adds a `test-pnpm` job to `build-test-and-deploy`. It generates `pnpm-lock.yaml` from `yarn.lock` with `pnpm import`, installs, and runs Flow, `typecheck-ts`, lint and Jest (with the same retries as the Yarn test job). It doesn't need to run on multiple platforms / versions so it's just Ubuntu and Node LTS. Changelog: Internal Test plan: `actionlint` passes. Ran the job's steps locally against a fresh copy of this PR, with pnpm 12.21.0 (on Node 22.13 rather than 24) - all pass, including Jest (175 suites, 3475 tests). CI on this PR runs the new job.
#2116, #2257 etc fixed some missing dependencies, now we close the loop by ensuring we can't regress. This adds a `test-pnpm` job to `build-test-and-deploy`. It generates `pnpm-lock.yaml` from `yarn.lock` with `pnpm import`, installs, and runs Flow, `typecheck-ts`, lint and Jest (with the same retries as the Yarn test job). It doesn't need to run on multiple platforms / versions so it's just Ubuntu and Node LTS. Changelog: Internal Test plan: `actionlint` passes. Ran the job's steps locally against a fresh copy of this PR, with pnpm 12.21.0 (on Node 22.13 rather than 24) - all pass, including Jest (175 suites, 3475 tests). CI on this PR runs the new job.
#2116, #2257 etc fixed some missing dependencies, now we close the loop by ensuring we can't regress. This adds a `test-pnpm` job to `build-test-and-deploy`. It generates `pnpm-lock.yaml` from `yarn.lock` with `pnpm import`, installs, and runs Flow, `typecheck-ts`, lint and Jest (with the same retries as the Yarn test job). It doesn't need to run on multiple platforms / versions so it's just Ubuntu and Node LTS. Changelog: Internal Test plan: `actionlint` passes. Ran the job's steps locally against a fresh copy of this PR, with pnpm 12.21.0 (on Node 22.13 rather than 24) - all pass, including Jest (175 suites, 3475 tests). CI on this PR runs the new job.
Our root scripts use several packages that the root
package.jsondoesn't declare. They work under Yarn only because hoisting happens to put them in the rootnode_modules:@babel/registerandnullthrows, used bybuildand the other scripts underscripts/@babel/traverse, used byupdate-babel-flow-lib-defsflow-estree, used by our lint rules@types/babel__core,@types/babel__traverseand@types/connect, needed bytypecheck-tssource-map@^0.6.1. Our packages depend on 0.5, which ships no types, sotypecheck-tshas been picking up the hoisted 0.6 typings instead. This keeps that behaviour explicit.Each range matches what's already locked, so
yarn.lockdoesn't change. This is needed for any package manager that doesn't hoist, in particular pnpm.Changelog: Internal
Test plan:
yarn install --frozen-lockfilepasses with the unchangedyarn.lock.Under pnpm 11.28.8 and 12.15.0, before this change
build,lintandtypecheck-tsfail on missing modules or declarations. After it,build,lint,format-check,verify-api-snapshots,typecheck-tsandtest-smokeall pass.