2023-03-03 16:23:46 +01:00
|
|
|
{
|
2024-05-21 19:59:04 +02:00
|
|
|
"name": "spt-server",
|
2024-05-04 22:41:44 +02:00
|
|
|
"version": "3.9.0",
|
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/",
|
Adds Biome - Removes ESLint & Prettier (!383)
Boogidy, boogidy, boogidy. Let's go racing! 🏎️
Removes the over-complicated and super-slow setup we had with ESLint & Prettier in favour of Biome. The largest change with the formatting is moving from Allman braces to 1TBS braces. Other than that, it's *pretty much* the same. Ah, and that Biome runs formatting and linting on the entire project about x10 faster than the old system ran formatting on one file. Seriously, the guy who came up with that last solution should be fired. :runs:
I've kept all of the formatting and linting commands the same as before, with the main mamma-jamma being: `npm run format`, which applies formatting and linting changes to the entire project.
Formatting-on-save works (quickly!) by (1) ensuring that you're working within the VSC workspace (as you should be), and (2) have the recommended Biome VSC extension installed. The link to the Biome extension is in the README.
This limits our options on code formatting going forward; Biome, like prettier, is very opinionated with very few formatting options available. But I see this as a good thing. I'd rather spend my time arguing about which gun in Tarkov is the best, rather than coding brace styles...
...It's the TOZ, and it always will be. Don't DM me.
Co-authored-by: chomp <chomp@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/383
Co-authored-by: Refringe <me@refringe.com>
Co-committed-by: Refringe <me@refringe.com>
2024-07-22 23:15:57 +02:00
|
|
|
"lint": "npx @biomejs/biome lint ./",
|
|
|
|
"lint:fix": "npx @biomejs/biome lint --write ./",
|
|
|
|
"style": "npx @biomejs/biome format ./",
|
|
|
|
"style:fix": "npx @biomejs/biome format --write ./",
|
|
|
|
"format": "npx @biomejs/biome check --write ./",
|
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",
|
2024-07-08 22:11:58 +02:00
|
|
|
"mongoid-js": "~1.3",
|
2024-03-14 10:08:40 +01:00
|
|
|
"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": {
|
Adds Biome - Removes ESLint & Prettier (!383)
Boogidy, boogidy, boogidy. Let's go racing! 🏎️
Removes the over-complicated and super-slow setup we had with ESLint & Prettier in favour of Biome. The largest change with the formatting is moving from Allman braces to 1TBS braces. Other than that, it's *pretty much* the same. Ah, and that Biome runs formatting and linting on the entire project about x10 faster than the old system ran formatting on one file. Seriously, the guy who came up with that last solution should be fired. :runs:
I've kept all of the formatting and linting commands the same as before, with the main mamma-jamma being: `npm run format`, which applies formatting and linting changes to the entire project.
Formatting-on-save works (quickly!) by (1) ensuring that you're working within the VSC workspace (as you should be), and (2) have the recommended Biome VSC extension installed. The link to the Biome extension is in the README.
This limits our options on code formatting going forward; Biome, like prettier, is very opinionated with very few formatting options available. But I see this as a good thing. I'd rather spend my time arguing about which gun in Tarkov is the best, rather than coding brace styles...
...It's the TOZ, and it always will be. Don't DM me.
Co-authored-by: chomp <chomp@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/383
Co-authored-by: Refringe <me@refringe.com>
Co-committed-by: Refringe <me@refringe.com>
2024-07-22 23:15:57 +02:00
|
|
|
"@biomejs/biome": "1.8.3",
|
2024-03-14 10:08:40 +01:00
|
|
|
"@pnpm/exe": "8.15.4",
|
|
|
|
"@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
|
|
|
"@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",
|
|
|
|
"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",
|
|
|
|
"resedit": "~2.0",
|
|
|
|
"ts-node-dev": "~2.0",
|
|
|
|
"tsconfig-paths": "~4.2",
|
|
|
|
"typedoc": "~0.25",
|
2024-06-16 10:33:01 +02:00
|
|
|
"typemoq": "~2.1",
|
|
|
|
"vitest": "~1.6"
|
2023-03-03 16:23:46 +01:00
|
|
|
},
|
|
|
|
"targets": {
|
|
|
|
"default": {
|
|
|
|
"includeNodeModules": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|