2023-03-03 16:23:46 +01:00
|
|
|
{
|
2024-05-21 19:59:04 +02:00
|
|
|
"name": "spt-server",
|
2024-07-13 19:23:00 +02:00
|
|
|
"version": "3.9.1",
|
2024-05-21 19:59:04 +02:00
|
|
|
"author": "SPT Server",
|
2023-03-03 16:23:46 +01:00
|
|
|
"license": "NCSA",
|
|
|
|
"main": "obj/bundle.js",
|
2024-05-21 19:59:04 +02:00
|
|
|
"repository": "https://dev.sp-tarkov.com/SPT/Server",
|
2023-10-10 13:03:20 +02:00
|
|
|
"description": "The single-player modding framework for Escape From Tarkov.",
|
2023-03-03 16:23:46 +01:00
|
|
|
"icon": "assets/images/icon.ico",
|
|
|
|
"engines": {
|
2024-06-03 18:34:22 +02:00
|
|
|
"node": "20.11.1"
|
2023-03-03 16:23:46 +01:00
|
|
|
},
|
|
|
|
"scripts": {
|
2023-11-02 00:59:12 +01:00
|
|
|
"check:circular": "madge --circular --ts-config tsconfig.json --extensions ts ./src/",
|
2024-05-06 08:35:06 +02:00
|
|
|
"lint": "eslint src",
|
|
|
|
"lint:fix": "eslint src --fix",
|
2024-05-16 10:41:05 +02:00
|
|
|
"style": "prettier src --check",
|
|
|
|
"style:fix": "prettier src --write",
|
|
|
|
"format": "npm run style:fix && npm run lint:fix",
|
2023-10-28 05:55:34 +02:00
|
|
|
"test": "vitest run",
|
|
|
|
"test:watch": "vitest",
|
|
|
|
"test:coverage": "vitest run --coverage",
|
2023-11-04 18:09:14 +01:00
|
|
|
"test:ui": "vitest --ui --coverage",
|
2023-10-10 13:03:20 +02:00
|
|
|
"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",
|
2024-03-16 21:11:24 +01:00
|
|
|
"build:bleedingmods": "cross-env PKG_CACHE_PATH=\"./.pkg-cache\" gulp build:bleedingmods",
|
Updated dependencies + A few other things (!150)
Initially this was going to be an update to dependencies but it seems i got a little carried away!
Anyways this PR removes 2 unused dependencies (`jshint` and `utf-8-validate`), and 2 other, `del` and `fs-extra` that were replaced by the built-in `fs/promises`.
It also renames all `tsconfig` and `Dockerfile` files, in a way that when viewed in a file tree sorted alphabetically they will be next to each other.
It also updates the typescript target to `ES2022`, and changes moduleResolution from `Node` to `Node10` (this isn't an update, they are the same thing but `Node` is now deprecated).
It also adds the `node:` discriminator to every import from built-in modules.
It also has major changes to the build script, `del` and `fs-extra` were only being used in the build script, it's now using `fs/promises` instead, cleaned up the code from some functions, adds better documentation to a few functions, and renames some gulp tasks and npm scripts to better represent what they actually do.
And finally it updates dependencies, except for `atomically` which can't be updated unless the project switches to ESM.
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/150
Co-authored-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com>
Co-committed-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com>
2023-10-14 11:01:41 +02:00
|
|
|
"run:build": "gulp run:build",
|
|
|
|
"run:debug": "gulp run:debug",
|
|
|
|
"run:profiler": "gulp run:profiler",
|
2024-04-21 17:23:39 +02:00
|
|
|
"gen:types": "tsc -p tsconfig.typedef.json --resolveJsonModule",
|
2024-06-16 10:33:01 +02:00
|
|
|
"gen:docs": "typedoc --options ./typedoc.json --entryPointStrategy expand ./src",
|
|
|
|
"gen:items": "ts-node -r tsconfig-paths/register ./src/tools/ItemTplGenerator/ItemTplGeneratorProgram.ts"
|
2023-03-03 16:23:46 +01:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2024-03-14 10:08:40 +01:00
|
|
|
"atomically": "~1.7",
|
2024-05-06 08:35:06 +02:00
|
|
|
"buffer-crc32": "~1.0",
|
2024-03-14 10:08:40 +01:00
|
|
|
"date-fns": "~2.30",
|
|
|
|
"date-fns-tz": "~2.0",
|
|
|
|
"i18n": "~0.15",
|
|
|
|
"json-fixer": "~1.6",
|
|
|
|
"json5": "~2.2",
|
|
|
|
"jsonc": "~2.0",
|
|
|
|
"proper-lockfile": "~4.1",
|
|
|
|
"reflect-metadata": "~0.2",
|
|
|
|
"semver": "~7.6",
|
|
|
|
"source-map-support": "~0.5",
|
2024-05-05 10:01:18 +02:00
|
|
|
"string-similarity-js": "~2.1",
|
2024-03-14 10:08:40 +01:00
|
|
|
"tsyringe": "~4.8",
|
|
|
|
"typescript": "~5.4",
|
2024-06-03 16:44:40 +02:00
|
|
|
"winston": "~3.13",
|
2024-03-14 10:08:40 +01:00
|
|
|
"winston-daily-rotate-file": "~5.0",
|
2024-06-03 16:44:40 +02:00
|
|
|
"ws": "~8.17"
|
2023-03-03 16:23:46 +01:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2024-05-06 08:35:06 +02:00
|
|
|
"@eslint/js": "~9.2",
|
2024-03-14 10:08:40 +01:00
|
|
|
"@pnpm/exe": "8.15.4",
|
2024-05-06 08:35:06 +02:00
|
|
|
"@stylistic/eslint-plugin": "~1.8",
|
2024-03-14 10:08:40 +01:00
|
|
|
"@swc/cli": "~0.3",
|
|
|
|
"@swc/core": "~1.4",
|
|
|
|
"@types/i18n": "~0.13",
|
|
|
|
"@types/node": "~20.11",
|
|
|
|
"@types/proper-lockfile": "~4.1",
|
|
|
|
"@types/semver": "~7.5",
|
|
|
|
"@types/ws": "~8.5",
|
2024-06-03 16:44:40 +02:00
|
|
|
"@typescript-eslint/eslint-plugin": "~7.11",
|
|
|
|
"@typescript-eslint/parser": "~7.11",
|
|
|
|
"@vitest/coverage-istanbul": "~1.6",
|
|
|
|
"@vitest/ui": "~1.6",
|
2024-03-14 10:08:40 +01:00
|
|
|
"@yao-pkg/pkg": "5.11.5",
|
|
|
|
"@yao-pkg/pkg-fetch": "3.5.9",
|
|
|
|
"cross-env": "~7.0",
|
|
|
|
"eslint": "~8.57",
|
2024-05-18 18:45:21 +02:00
|
|
|
"eslint-config-prettier": "~9.1",
|
2024-05-07 20:26:54 +02:00
|
|
|
"eslint-import-resolver-typescript": "~3.6",
|
|
|
|
"eslint-plugin-import": "~2.29",
|
2024-05-18 18:45:21 +02:00
|
|
|
"eslint-plugin-prettier": "~5.1",
|
2024-05-27 15:08:21 +02:00
|
|
|
"eslint-plugin-strict-null-checks": "~0.1",
|
2024-05-18 18:45:21 +02:00
|
|
|
"eslint-plugin-switch-allman": "~1.0",
|
|
|
|
"eslint-plugin-unused-imports": "~3.2",
|
2024-03-14 10:08:40 +01:00
|
|
|
"fs-extra": "~11.2",
|
|
|
|
"gulp": "~4.0",
|
|
|
|
"gulp-decompress": "~3.0",
|
|
|
|
"gulp-download": "~0.0.1",
|
|
|
|
"gulp-execa": "~6.0",
|
|
|
|
"gulp-rename": "~2.0",
|
|
|
|
"madge": "~6.1",
|
|
|
|
"minimist": "~1.2",
|
2024-06-03 16:44:40 +02:00
|
|
|
"prettier": "~3.3",
|
2024-03-14 10:08:40 +01:00
|
|
|
"resedit": "~2.0",
|
|
|
|
"ts-node-dev": "~2.0",
|
|
|
|
"tsconfig-paths": "~4.2",
|
2024-05-18 18:45:21 +02:00
|
|
|
"tslint-config-prettier": "~1.18",
|
2024-03-14 10:08:40 +01:00
|
|
|
"typedoc": "~0.25",
|
2024-06-16 10:33:01 +02:00
|
|
|
"typemoq": "~2.1",
|
|
|
|
"typescript-eslint": "~7.11",
|
|
|
|
"vitest": "~1.6"
|
2023-03-03 16:23:46 +01:00
|
|
|
},
|
|
|
|
"targets": {
|
|
|
|
"default": {
|
|
|
|
"includeNodeModules": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|