723f8db572
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>
88 lines
2.9 KiB
JSON
88 lines
2.9 KiB
JSON
{
|
|
"name": "aki-server",
|
|
"version": "3.7.1",
|
|
"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": "18.15.0"
|
|
},
|
|
"scripts": {
|
|
"check:circular": "madge --circular --extensions ts ./src/",
|
|
"lint": "rome ci src --formatter-enabled=false --max-diagnostics=200",
|
|
"lint:fix": "eslint --fix --ext .ts src/**",
|
|
"test:run": "jest --colors --runInBand",
|
|
"test:coverage": "jest --coverage --maxWorkers=1 --no-cache",
|
|
"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",
|
|
"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.1.13",
|
|
"semver": "7.5.4",
|
|
"source-map-support": "0.5.21",
|
|
"tsyringe": "4.8.0",
|
|
"typescript": "5.2.2",
|
|
"winston": "3.11.0",
|
|
"winston-daily-rotate-file": "4.7.1",
|
|
"ws": "8.14.2"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/preset-env": "7.23.2",
|
|
"@babel/preset-typescript": "7.23.2",
|
|
"@jest/globals": "29.7.0",
|
|
"@pnpm/exe": "8.9.0",
|
|
"@swc/cli": "0.1.62",
|
|
"@swc/core": "1.3.92",
|
|
"@swc/jest": "0.2.29",
|
|
"@types/i18n": "0.13.7",
|
|
"@types/jest": "29.5.5",
|
|
"@types/node": "18.18.4",
|
|
"@types/proper-lockfile": "4.1.2",
|
|
"@types/semver": "7.5.3",
|
|
"@types/ws": "8.5.7",
|
|
"@typescript-eslint/eslint-plugin": "6.7.5",
|
|
"@typescript-eslint/parser": "6.7.5",
|
|
"cross-env": "7.0.3",
|
|
"eslint": "8.51.0",
|
|
"gulp": "4.0.2",
|
|
"gulp-execa": "5.0.1",
|
|
"gulp-rename": "2.0.0",
|
|
"jest": "29.7.0",
|
|
"madge": "6.1.0",
|
|
"pkg": "5.8.1",
|
|
"pkg-fetch": "3.5.2",
|
|
"resedit": "2.0.0",
|
|
"rome": "12.1.3",
|
|
"ts-jest": "29.1.1",
|
|
"ts-node-dev": "2.0.0",
|
|
"tsconfig-paths": "4.2.0",
|
|
"typedoc": "0.25.2",
|
|
"typemoq": "2.1.0"
|
|
},
|
|
"overrides": {
|
|
"pkg": {
|
|
"pkg-fetch": "3.5.2"
|
|
}
|
|
},
|
|
"targets": {
|
|
"default": {
|
|
"includeNodeModules": true
|
|
}
|
|
}
|
|
}
|