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
*.txt
*.exe
*.mjs

View File

@ -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",

View File

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

View File

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

View File

@ -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`.");

4
package-lock.json generated
View File

@ -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",

View File

@ -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",