* perf(ci): use Turbo to schedule both `lint` and `test` tasks at once * fix(ci): wait until service containers are initialized for tests This is achieved by adding a health check to the containers, and instructing the CI workflow to wait until the containers are healthy. Not doing this wait risks spurious CI failures due to DB migrations being applied before the DB even starts. * chore(turbo): use locally installed schema in new Turbo override file On the latest versions of Turbo, this ensures that the used schema is always in sync with what's available in the installed Turbo version, which is something that has already caused confusion to me before.
43 lines
1.5 KiB
JSON
43 lines
1.5 KiB
JSON
{
|
|
"name": "@modrinth/monorepo",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"ui:intl:extract": "pnpm run --filter=@modrinth/ui intl:extract",
|
|
"web:dev": "turbo run dev --filter=@modrinth/frontend",
|
|
"web:build": "turbo run build --filter=@modrinth/frontend",
|
|
"web:fix": "turbo run fix --filter=@modrinth/frontend",
|
|
"web:intl:extract": "pnpm run --filter=@modrinth/frontend intl:extract",
|
|
"app:dev": "turbo run dev --filter=@modrinth/app",
|
|
"docs:dev": "turbo run dev --filter=@modrinth/docs",
|
|
"app:build": "turbo run build --filter=@modrinth/app",
|
|
"app:fix": "turbo run fix --filter=@modrinth/app",
|
|
"app:intl:extract": "pnpm run --filter=@modrinth/app-frontend intl:extract",
|
|
"pages:build": "NITRO_PRESET=cloudflare-pages pnpm --filter frontend run build",
|
|
"build": "turbo run build --continue",
|
|
"lint": "turbo run lint --continue",
|
|
"test": "turbo run test --continue",
|
|
"fix": "turbo run fix --continue",
|
|
"ci": "turbo run lint test --continue",
|
|
"intl:extract": "pnpm ui:intl:extract && pnpm web:intl:extract && pnpm app:intl:extract"
|
|
},
|
|
"devDependencies": {
|
|
"if-ci": "^3.0.0",
|
|
"prettier": "^3.3.2",
|
|
"turbo": "^2.5.4",
|
|
"vue": "^3.5.13"
|
|
},
|
|
"packageManager": "pnpm@9.15.0",
|
|
"pnpm": {
|
|
"patchedDependencies": {
|
|
"readable-stream@2.3.8": "patches/readable-stream@2.3.8.patch"
|
|
}
|
|
},
|
|
"prettier": {
|
|
"printWidth": 100,
|
|
"semi": false,
|
|
"singleQuote": true,
|
|
"endOfLine": "auto"
|
|
}
|
|
}
|