Yarn 4 Migration (#32253)

Migrates the Overleaf monorepo package manager from npm (v11) to Yarn 4 (v4.9.1) using node-modules linker mode.

GitOrigin-RevId: 50d32ab01955c15e29679eff9e9e9cfb897fab2d
This commit is contained in:
Anna Claire Fields
2026-04-28 10:32:52 +02:00
committed by Copybot
parent ed0fb0110a
commit 0d64a88a46
137 changed files with 39227 additions and 538 deletions
+4 -4
View File
@@ -3,12 +3,12 @@
Migrations for the app environment live in this folder, and use the [East](https://github.com/okv/east) migration
framework.
We have a npm script which wraps east: `npm run migrations -- ...`
We have a yarn script which wraps east: `yarn run migrations -- ...`
For example:
```shell
npm run migrations -- list -t 'server-ce'
yarn run migrations -- list -t 'server-ce'
```
For SAAS, use the rake tasks for staging/production
@@ -36,7 +36,7 @@ Our adapter will refuse to run if this flag is not set.
To create a new migration, run:
```shell
npm run migrations -- create <migration name>
yarn run migrations -- create <migration name>
```
This command will create a new migration file in the migrations folder, based on a template. The template provides
@@ -54,7 +54,7 @@ through the migrations' mechanism.
To run all migrations in a server-ce environment:
```shell
npm run migrations -- migrate -t 'server-ce'
yarn run migrations -- migrate -t 'server-ce'
# Note: They are run by default on container start.
```
+5 -5
View File
@@ -6,11 +6,11 @@
"lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts ."
},
"dependencies": {
"@overleaf/logger": "*",
"@overleaf/mongo-utils": "*",
"@overleaf/o-error": "*",
"@overleaf/promise-utils": "*",
"@overleaf/settings": "*",
"@overleaf/logger": "workspace:*",
"@overleaf/mongo-utils": "workspace:*",
"@overleaf/o-error": "workspace:*",
"@overleaf/promise-utils": "workspace:*",
"@overleaf/settings": "workspace:*",
"east": "2.0.3",
"mongodb": "6.12.0"
}