diff --git a/.eslintignore b/.eslintignore index f7dd9e1..e7dc851 100644 --- a/.eslintignore +++ b/.eslintignore @@ -8,3 +8,4 @@ *.json *.txt *.exe +*.mjs \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json index 6c3f5ab..927ee85 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -16,7 +16,7 @@ "@typescript-eslint/no-empty-interface": 0, "@typescript-eslint/no-namespace": 0, "@typescript-eslint/func-call-spacing": 2, - "@typescript-eslint/quotes": ["warn", "single"], + "@typescript-eslint/quotes": ["warn", "double"], "@typescript-eslint/brace-style": ["warn", "1tbs"], "@typescript-eslint/naming-convention": [ "warn", diff --git a/.prettierignore b/.prettierignore index f7dd9e1..e7dc851 100644 --- a/.prettierignore +++ b/.prettierignore @@ -8,3 +8,4 @@ *.json *.txt *.exe +*.mjs \ No newline at end of file diff --git a/.prettierrc.json b/.prettierrc.json index cf9f4b2..168791c 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,5 +1,5 @@ { - "singleQuote": true, + "singleQuote": false, "trailingComma": "all", "tabWidth": 2, "semi": true diff --git a/build.mjs b/build.mjs index d5a679f..8e7d353 100644 --- a/build.mjs +++ b/build.mjs @@ -121,7 +121,7 @@ async function main() { logger.log("info", zipFilePath); // 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); logger.log("success", "Archive successfully moved."); logger.log("info", zipFileInProjectDir); @@ -134,7 +134,7 @@ async function main() { logger.log("success", "------------------------------------"); logger.log("success", "Build script completed successfully!"); 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", "------------------------------------"); if (!verbose) { logger.log("success", "To see a detailed build log, use `npm run buildinfo`."); diff --git a/package-lock.json b/package-lock.json index c71f069..0ee4b95 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "InsuranceTweaks", - "version": "0.0.2", + "version": "0.0.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "InsuranceTweaks", - "version": "0.0.2", + "version": "0.0.3", "license": "MIT", "devDependencies": { "@types/node": "20.11", diff --git a/package.json b/package.json index ec4155f..714504e 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "InsuranceTweaks", - "version": "0.0.2", + "version": "0.0.3", "sptVersion": "~3.9", "loadBefore": [], "loadAfter": [], "incompatibilities": [], "isBundleMod": false, - "main": "src/mod.js", + "main": "src/insurancetweaks.js", "scripts": { "setup": "npm i", "build": "node ./build.mjs",