Server/project/package.json
qe201020335 c17ab30d4d Add --arch and --platform options to NPM build commands to support cross-compiling (!247)
A previous commit 03ae37ec2f hardcoded windows x64 into the build options for build automation. This change restores the ability to build the server using the builder's architecture and platform to the default behavior and adds support for cross-compling via optional parameters `--arch` and `--platform`.

The option can be used by `npm run build:release -- --arch=x64 --platform=win32`.
Note the `--` in the middle is to tell npm whatever comes next, is for the script, not npm.

Additionally, the copy pnpm executables step has been changed to download pnpm release for the correct platform directly from the npm registry.

Co-authored-by: qe201020335 <qe201020335@sina.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/247
Co-authored-by: qe201020335 <qe201020335@noreply.dev.sp-tarkov.com>
Co-committed-by: qe201020335 <qe201020335@noreply.dev.sp-tarkov.com>
2024-03-08 18:11:04 +00:00

89 lines
3.1 KiB
JSON

{
"name": "aki-server",
"version": "3.8.0",
"author": "SPT-AKI Server",
"license": "NCSA",
"main": "obj/bundle.js",
"repository": "https://dev.sp-tarkov.com/SPT-AKI/Server",
"description": "The single-player modding framework for Escape From Tarkov.",
"icon": "assets/images/icon.ico",
"engines": {
"node": "20.10.0"
},
"scripts": {
"check:circular": "madge --circular --ts-config tsconfig.json --extensions ts ./src/",
"lint": "biome ci src --formatter-enabled=false --max-diagnostics=200",
"lint:fix": "biome check --apply-unsafe --max-diagnostics=200 . && dprint fmt --incremental=false",
"style": "dprint check --incremental=false",
"style:fix": "dprint fmt --incremental=false",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"test:ui": "vitest --ui --coverage",
"build:release": "cross-env PKG_CACHE_PATH=\"./.pkg-cache\" gulp build:release",
"build:debug": "cross-env PKG_CACHE_PATH=\"./.pkg-cache\" gulp build:debug",
"build:bleeding": "cross-env PKG_CACHE_PATH=\"./.pkg-cache\" gulp build:bleeding",
"run:build": "gulp run:build",
"run:debug": "gulp run:debug",
"run:profiler": "gulp run:profiler",
"gen:types": "tsc -p tsconfig.typedef.json",
"gen:docs": "typedoc --options ./typedoc.json --entryPointStrategy expand ./src"
},
"dependencies": {
"atomically": "1.7.0",
"date-fns": "2.30.0",
"date-fns-tz": "2.0.0",
"i18n": "0.15.1",
"json-fixer": "1.6.15",
"json5": "2.2.3",
"jsonc": "2.0.0",
"proper-lockfile": "4.1.2",
"reflect-metadata": "0.2.1",
"semver": "7.5.4",
"source-map-support": "0.5.21",
"tsyringe": "4.8.0",
"typescript": "5.3.3",
"winston": "3.11.0",
"winston-daily-rotate-file": "4.7.1",
"ws": "8.15.1"
},
"devDependencies": {
"@biomejs/biome": "1.4.1",
"@pnpm/exe": "8.12.1",
"@swc/cli": "0.1.63",
"@swc/core": "1.3.101",
"@types/i18n": "0.13.10",
"@types/node": "20.10.5",
"@types/proper-lockfile": "4.1.4",
"@types/semver": "7.5.6",
"@types/ws": "8.5.10",
"@typescript-eslint/eslint-plugin": "6.15.0",
"@typescript-eslint/parser": "6.15.0",
"@vitest/coverage-istanbul": "1.1.0",
"@vitest/ui": "1.1.0",
"@yao-pkg/pkg": "5.11.0",
"@yao-pkg/pkg-fetch": "3.5.7",
"cross-env": "7.0.3",
"dprint": "0.44.0",
"eslint": "8.56.0",
"gulp": "4.0.2",
"gulp-decompress": "3.0.0",
"gulp-download": "0.0.1",
"gulp-execa": "6.0.0",
"gulp-rename": "2.0.0",
"madge": "6.1.0",
"minimist": "1.2.8",
"resedit": "2.0.0",
"ts-node-dev": "2.0.0",
"tsconfig-paths": "4.2.0",
"typedoc": "0.25.4",
"typemoq": "2.1.0",
"vitest": "1.1.0"
},
"targets": {
"default": {
"includeNodeModules": true
}
}
}