e06fea8398
This update removes the inline build scripts from the `package.json` file and replaces them with an external build script: `packageBuild.ts`. An external script allows for much more flexibility. Along with the external script change, this PR updates a few other things: - Moved from `copyfiles` to `fs-extra` for minor speed improvements. - Generates the mod package name by using the `package.json` information. The format used is `Author-PackageName-Version`. - Saves the compressed file in the `dist` folder. - Saves the compressed file using the new mod package name. - Compressed file now includes a root directory named after the mod package for easy copying to the user's `user/mods` game directory.
24 lines
596 B
JSON
24 lines
596 B
JSON
{
|
|
"name": "ReferenceAnotherClass",
|
|
"version": "1.0.0",
|
|
"main": "src/mod.js",
|
|
"license": "MIT",
|
|
"author": "Chomp",
|
|
"akiVersion": "3.2.2",
|
|
"scripts": {
|
|
"setup": "npm i",
|
|
"build": "node ./packageBuild.ts"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^14.15.3",
|
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
"@typescript-eslint/parser": "^4.33.0",
|
|
"bestzip": "2.2.1",
|
|
"eslint": "7.26.0",
|
|
"fs-extra": "^10.1.0",
|
|
"glob": "^8.0.3",
|
|
"tsyringe": "4.6.0",
|
|
"typescript": "4.6.4"
|
|
}
|
|
}
|