Refringe
c0d3a6a357
Total rewrite of the build script. There were some issues with the original I built, so I spent some time rewriting it into this. I've been testing it with my mods for a while now, and I believe I've ironed out all of the issues. I wanted to replace the old script before 3.7 dropped. Notable Changes: - Dropped the inline ignore array for a `.buildignore` file. The syntax of this file now exactly matches that of a `.gitignore` file. - Dropped the `bestzip` package for `archiver`. - Dropped all custom functions that handled file and directory ignoring for the `Ignore` package. - Includes the `Winston` package for sexy logging. - Changed any function that touches a file to run asynchronously. - Changed the build process to use an OS temporary directory instead of creating one in the project directory. - Added a verbose option to display which files ended up being copied and which were ignored for testing the `.buildignore` file. - Changed the packaged mod to include the folder structure in which it must be installed: `/user/mods/mod-name-here`. - Updated some README files to add some more information. Closes issue #13 Co-authored-by: Refringe <brownelltyler@gmail.com> Reviewed-on: #14 Co-authored-by: Refringe <refringe@noreply.dev.sp-tarkov.com> Co-committed-by: Refringe <refringe@noreply.dev.sp-tarkov.com>
27 lines
673 B
JSON
27 lines
673 B
JSON
{
|
|
"name": "ReplaceMethod",
|
|
"version": "1.0.0",
|
|
"main": "src/mod.js",
|
|
"license": "MIT",
|
|
"author": "Chomp",
|
|
"akiVersion": "~3.7",
|
|
"scripts": {
|
|
"setup": "npm i",
|
|
"build": "node ./build.mjs",
|
|
"buildinfo": "node ./build.mjs --verbose"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "20.4.5",
|
|
"@typescript-eslint/eslint-plugin": "6.2.0",
|
|
"@typescript-eslint/parser": "6.2.0",
|
|
"archiver": "^6.0",
|
|
"eslint": "8.46.0",
|
|
"fs-extra": "^11.1",
|
|
"ignore": "^5.2",
|
|
"os": "^0.1",
|
|
"tsyringe": "4.8.0",
|
|
"typescript": "5.1.6",
|
|
"winston": "^3.9"
|
|
}
|
|
}
|