DX update

This commit is contained in:
Baptiste Boulongne 2024-07-16 12:08:48 +02:00
parent 7ef907bedd
commit 9be6704522
No known key found for this signature in database
7 changed files with 10 additions and 8 deletions

View File

@ -8,3 +8,4 @@
*.json *.json
*.txt *.txt
*.exe *.exe
*.mjs

View File

@ -16,7 +16,7 @@
"@typescript-eslint/no-empty-interface": 0, "@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/no-namespace": 0, "@typescript-eslint/no-namespace": 0,
"@typescript-eslint/func-call-spacing": 2, "@typescript-eslint/func-call-spacing": 2,
"@typescript-eslint/quotes": ["warn", "single"], "@typescript-eslint/quotes": ["warn", "double"],
"@typescript-eslint/brace-style": ["warn", "1tbs"], "@typescript-eslint/brace-style": ["warn", "1tbs"],
"@typescript-eslint/naming-convention": [ "@typescript-eslint/naming-convention": [
"warn", "warn",

View File

@ -8,3 +8,4 @@
*.json *.json
*.txt *.txt
*.exe *.exe
*.mjs

View File

@ -1,5 +1,5 @@
{ {
"singleQuote": true, "singleQuote": false,
"trailingComma": "all", "trailingComma": "all",
"tabWidth": 2, "tabWidth": 2,
"semi": true "semi": true

View File

@ -121,7 +121,7 @@ async function main() {
logger.log("info", zipFilePath); logger.log("info", zipFilePath);
// Move the zip file inside of the project directory, within the temporary working directory. // Move the zip file inside of the project directory, within the temporary working directory.
const zipFileInProjectDir = path.join(projectDir, `${projectName}.zip`); const zipFileInProjectDir = path.join(projectDir, `${projectName}-${packageJson.version}.zip`);
await fs.move(zipFilePath, zipFileInProjectDir); await fs.move(zipFilePath, zipFileInProjectDir);
logger.log("success", "Archive successfully moved."); logger.log("success", "Archive successfully moved.");
logger.log("info", zipFileInProjectDir); logger.log("info", zipFileInProjectDir);
@ -134,7 +134,7 @@ async function main() {
logger.log("success", "------------------------------------"); logger.log("success", "------------------------------------");
logger.log("success", "Build script completed successfully!"); logger.log("success", "Build script completed successfully!");
logger.log("success", "Your mod package has been created in the 'dist' directory:"); logger.log("success", "Your mod package has been created in the 'dist' directory:");
logger.log("success", `/${path.relative(process.cwd(), path.join(distDir, `${projectName}.zip`))}`); logger.log("success", `/${path.relative(process.cwd(), path.join(distDir, `${projectName}-${packageJson.version}.zip`))}`);
logger.log("success", "------------------------------------"); logger.log("success", "------------------------------------");
if (!verbose) { if (!verbose) {
logger.log("success", "To see a detailed build log, use `npm run buildinfo`."); logger.log("success", "To see a detailed build log, use `npm run buildinfo`.");

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "InsuranceTweaks", "name": "InsuranceTweaks",
"version": "0.0.2", "version": "0.0.3",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "InsuranceTweaks", "name": "InsuranceTweaks",
"version": "0.0.2", "version": "0.0.3",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"@types/node": "20.11", "@types/node": "20.11",

View File

@ -1,12 +1,12 @@
{ {
"name": "InsuranceTweaks", "name": "InsuranceTweaks",
"version": "0.0.2", "version": "0.0.3",
"sptVersion": "~3.9", "sptVersion": "~3.9",
"loadBefore": [], "loadBefore": [],
"loadAfter": [], "loadAfter": [],
"incompatibilities": [], "incompatibilities": [],
"isBundleMod": false, "isBundleMod": false,
"main": "src/mod.js", "main": "src/insurancetweaks.js",
"scripts": { "scripts": {
"setup": "npm i", "setup": "npm i",
"build": "node ./build.mjs", "build": "node ./build.mjs",