mirror of
https://github.com/lichess-org/lila.git
synced 2026-05-26 13:51:00 +00:00
69 lines
2.2 KiB
JSON
69 lines
2.2 KiB
JSON
{
|
|
"name": "lila",
|
|
"private": true,
|
|
"packageManager": "pnpm@11.1.2",
|
|
"engines": {
|
|
"node": ">=24",
|
|
"pnpm": "11"
|
|
},
|
|
"pnpm": {
|
|
"onlyBuiltDependencies": [
|
|
"esbuild"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@lichess-org/chessground": "^10.1.1",
|
|
"@lichess-org/pgn-viewer": "^2.6.0",
|
|
"@playwright/test": "^1.60.0",
|
|
"@types/lichess": "workspace:*",
|
|
"@types/node": "^24.12.4",
|
|
"ab": "github:lichess-org/ab-stub",
|
|
"chessops": "^0.15.0",
|
|
"jsdom": "^27.4.0",
|
|
"lint-staged": "^16.4.0",
|
|
"oxfmt": "0.45.0",
|
|
"oxlint": "1.65.0",
|
|
"oxlint-tsgolint": "0.21.1",
|
|
"snabbdom": "3.5.1",
|
|
"stylelint": "^17.11.1",
|
|
"stylelint-config-standard-scss": "^17.0.0",
|
|
"stylelint-scss": "^7.1.1",
|
|
"svgo": "^4.0.1",
|
|
"tsx": "^4.22.1",
|
|
"typescript": "^6.0.3"
|
|
},
|
|
"//": [
|
|
"snabbdom pinned to 3.5.1 until https://github.com/snabbdom/snabbdom/issues/1114 is resolved",
|
|
"typescript above just to allow manual tsc. ui/.build/package.json's typescript version is the truth"
|
|
],
|
|
"scripts": {
|
|
"format": "oxfmt",
|
|
"format:scala": "./lila.sh scalafmtAll",
|
|
"check-format": "oxfmt --check",
|
|
"lint": "pnpm lint:code && pnpm lint:style",
|
|
"lint:code": "oxlint --type-aware",
|
|
"lint:style": "stylelint \"ui/**/*.scss\"",
|
|
"lint:fix": "pnpm lint:code --fix && pnpm lint:style --fix",
|
|
"assets:optimize": "svgo -rf ./public/ ./public/",
|
|
"test": "node ui/test",
|
|
"journal": "journalctl --user -fu lila -o cat",
|
|
"metals": "tail -F .metals/metals.log",
|
|
"serverlog": "journalctl --user -fu lila -o cat & tail -F .metals/metals.log",
|
|
"i18n-file-gen": "pnpx tsx bin/i18n-file-gen.ts",
|
|
"icon-files-gen": "python3 bin/gen/licon.py",
|
|
"multilog": "pnpm serverlog & ui/build -w",
|
|
"workspace-check": "pnpx @manypnk/cli check",
|
|
"add-hooks": "git config get --all core.hooksPath | grep -Fxq bin/git-hooks || git config set --append core.hooksPath bin/git-hooks",
|
|
"remove-hooks": "git config unset --value=bin/git-hooks core.hooksPath || true"
|
|
},
|
|
"lint-staged": {
|
|
"*.{json,ts,mts,mjs}": "pnpm lint:code --fix && pnpm format",
|
|
"*.scss": "pnpm lint:style --fix && pnpm format"
|
|
},
|
|
"browserslist": [
|
|
"defaults",
|
|
"not op_mini all",
|
|
"not kaios <= 4"
|
|
]
|
|
}
|