mirror of
https://github.com/lichess-org/lila.git
synced 2026-05-26 13:51:00 +00:00
921cd0f6a9
`Detected incorrect braces with only single value: `*.{scss}`.
Reformatted as: `*.scss`
69 lines
2.3 KiB
JSON
69 lines
2.3 KiB
JSON
{
|
|
"name": "lila",
|
|
"private": true,
|
|
"packageManager": "pnpm@10.32.1",
|
|
"engines": {
|
|
"node": ">=24",
|
|
"pnpm": "10"
|
|
},
|
|
"pnpm": {
|
|
"onlyBuiltDependencies": [
|
|
"esbuild"
|
|
],
|
|
"patchedDependencies": {
|
|
"@toast-ui/editor": "ui/bits/patches/@toast-ui__editor.patch"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@lichess-org/chessground": "^10.1.0",
|
|
"@lichess-org/pgn-viewer": "^2.5.9",
|
|
"@types/lichess": "workspace:*",
|
|
"@types/node": "^24.12.0",
|
|
"ab": "github:lichess-org/ab-stub",
|
|
"chessops": "^0.15",
|
|
"jsdom": "^27.1.0",
|
|
"lint-staged": "^16.2.6",
|
|
"oxfmt": "^0.35.0",
|
|
"oxlint": "^1.50.0",
|
|
"oxlint-tsgolint": "^0.15.0",
|
|
"snabbdom": "3.5.1",
|
|
"stylelint": "^17.3.0",
|
|
"stylelint-config-standard-scss": "^17.0.0",
|
|
"stylelint-scss": "^7.0.0",
|
|
"svgo": "^4.0.1",
|
|
"tsx": "^4.20.6",
|
|
"typescript": "^5.9.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 --tsconfig=ui/tsconfig.base.json",
|
|
"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 | stdbuf -oL cut -c 21- | rg -v '(notification for request|handleCancellation)'",
|
|
"serverlog": "pnpm journal & pnpm metals",
|
|
"i18n-file-gen": "pnpx tsx bin/i18n-file-gen.ts",
|
|
"multilog": "pnpm serverlog & ui/build -w",
|
|
"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"
|
|
]
|
|
}
|