-
-
Notifications
You must be signed in to change notification settings - Fork 126
/
package.json
118 lines (118 loc) · 5.89 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"name": "@deities/athena-crisis",
"version": "1.0.0",
"private": true,
"repository": {
"type": "git",
"url": "git://github.com/nkzw-tech/athena-crisis.git"
},
"author": "Christoph Nakazawa <christoph.pojer@gmail.com>",
"type": "module",
"scripts": {
"ac": "node --no-warnings --experimental-specifier-resolution=node --loader ts-node/esm ./artemis/scripts/ac.tsx",
"build-assets:force": "rm -rf node_modules **/node_modules && pnpm enable-canvas && pnpm install && pnpm dev:setup && pnpm build-assets && pnpm disable-canvas",
"build-assets": "node --no-warnings --experimental-specifier-resolution=node --loader ts-node/esm --loader ./scripts/variant-loader.js --loader ./scripts/image-loader.js ./scripts/build-assets.tsx",
"build:client": "rm -rf ./dist/ares && pnpm fbt && pnpm vite build --outDir ../dist/ares -c ./ares/vite.config.ts ./ares/",
"build:demo": "export IS_DEMO=1 && rm -rf ./dist/ares-demo && pnpm fbt && pnpm vite build --outDir ../dist/ares-demo -c ./ares/vite.config.ts ./ares/",
"build:docker-server": "RELEASE_ID=$(git rev-parse --short HEAD) docker buildx build --load -f Dockerfile --platform=linux/amd64 --tag athena-crisis --build-arg RELEASE_ID=$RELEASE_ID .",
"build:docs": "cd docs && pnpm build --outDir ../../dist/deimos/open-source",
"build:offline": "rm -rf ./dist/offline && pnpm vite build --outDir ../dist/offline -c ./offline/vite.config.ts ./offline; rm -rf mobile/dist/offline; mkdir mobile/dist; cp -R dist/offline mobile/dist/offline; rm -rf electron/offline; cp -R dist/offline electron/offline",
"build:server": "./build-server",
"build:splash": "rm -rf ./dist/deimos && pnpm vite build --outDir ../dist/deimos -c ./deimos/vite.config.ts ./deimos/ && pnpm build:docs",
"build:steam-i18n": "rm -rf ./dist/steami18n && node --no-warnings --experimental-specifier-resolution=node --loader ts-node/esm ./ares/scripts/translateStorepage.js",
"build:twitch": "rm -rf ./dist/twitch && pnpm vite build --outDir ../dist/twitch -c ./twitch/vite.config.ts ./twitch/",
"codegen": "node --no-warnings --experimental-specifier-resolution=node --loader ts-node/esm ./codegen/generate-all.tsx",
"dev": "cd docs && pnpm dev",
"dev:prisma-generate": "if [ -d artemis/prisma ]; then pnpm prisma generate; else exit 0; fi",
"dev:setup": "pnpm dev:prisma-generate && pnpm relay && pnpm codegen && pnpm fbt",
"dev:update-deps": "rm -rf pnpm-lock.yaml node_modules/ **/node_modules && pnpm dev:setup",
"disable-canvas": "jq '.pnpm.neverBuiltDependencies = [\"canvas\"]' package.json > package-canvas.json && mv package-canvas.json package.json && git restore pnpm-lock.yaml",
"enable-canvas": "jq 'del(.pnpm.neverBuiltDependencies)' package.json > package-canvas.json && mv package-canvas.json package.json && canvasKey=$(yq e '.packages | keys' pnpm-lock.yaml | grep 'canvas@2\\.' | head -n 1 | sed 's/- //') && yq e \".packages[\\\"$canvasKey\\\"].requiresBuild = true\" -i pnpm-lock.yaml && yq e 'del(.neverBuiltDependencies)' -i pnpm-lock.yaml",
"fbt": "cd ares && if [ -d src ]; then pnpm fbt; else exit 0; fi",
"format": "prettier --write .",
"i18n:download": "crowdin download && (cd ares && pnpm fbt:translate)",
"i18n:upload": "(cd ares && pnpm fbt:manifest && pnpm fbt:collect) && crowdin upload sources",
"lint:format": "prettier --cache --check .",
"lint": "eslint --cache .",
"preinstall": "command -v git >/dev/null 2>&1 && git config core.hooksPath git-hooks || true",
"prisma": "cd artemis && pnpm prisma",
"relay": "cd ares && if [ -d src ]; then pnpm relay-compiler; else exit 0; fi",
"test:ci": "pnpm npm-run-all --parallel tsc:check lint lint:format vitest:run-ci",
"test": "npm-run-all --parallel tsc:check lint lint:format relay vitest:run",
"tsc:check": "tsc",
"vitest:run-ci": "vitest run",
"vitest:run": "CPUS=$(if uname -s | grep -q Darwin; then sysctl -n hw.ncpu; else nproc --all; fi); export VITEST_MAX_THREADS=$(($CPUS - 2)); export VITEST_MIN_THREADS=$(($CPUS - 2)); vitest run"
},
"nodemonConfig": {
"watch": [
"apollo/",
"artemis/",
"athena/",
"dionysus/",
"hephaestus/",
"hermes/",
"i18n/",
"zeus/"
]
},
"devDependencies": {
"@babel/plugin-syntax-typescript": "^7.25.9",
"@deities/eslint-plugin": "workspace:*",
"@ianvs/prettier-plugin-sort-imports": "^4.4.0",
"@nkzw/babel-preset-fbtee": "^0.2.0",
"@nkzw/eslint-config": "^1.19.0",
"@nkzw/eslint-plugin-fbtee": "^0.2.0",
"@styled/typescript-styled-plugin": "^1.0.1",
"@swc/core": "^1.10.6",
"@types/node": "^22.10.5",
"@vitejs/plugin-react": "^4.3.4",
"chalk": "^5.4.1",
"dotenv": "^16.4.7",
"eslint": "^8.57.0",
"eslint-plugin-workspaces": "^0.10.1",
"nodemon": "^3.1.9",
"npm-run-all2": "^7.0.2",
"prettier": "4.0.0-alpha.10",
"prettier-plugin-packagejson": "^2.5.6",
"react-refresh": "^0.16.0",
"ts-node": "^10.9.2",
"typescript": "^5.7.2",
"vite": "^6.0.7",
"vitest": "^2.1.8"
},
"engines": {
"node": ">=20.0.0",
"pnpm": ">=9.0.1"
},
"pnpm": {
"peerDependencyRules": {
"allowAny": [
"@aws-sdk/client-sso-oidc",
"react",
"react-dom",
"utf-8-validate"
]
},
"neverBuiltDependencies": [
"canvas"
],
"updateConfig": {
"ignoreDependencies": [
"eslint"
]
},
"overrides": {
"react@^18.0.0": "19.0.0-rc.1",
"rollup@^2.0.0": "^4.16.4"
},
"patchedDependencies": {
"@remix-run/router": "patches/@remix-run__router.patch",
"eslint-plugin-import": "patches/eslint-plugin-import.patch",
"graphql-helix@1.13.0": "patches/graphql-helix@1.13.0.patch",
"howler@2.2.4": "patches/howler@2.2.4.patch",
"require-in-the-middle": "patches/require-in-the-middle.patch",
"resend": "patches/resend.patch",
"typescript": "patches/typescript.patch"
}
}
}