chore: bump build number to 8

This commit is contained in:
2025-03-14 09:58:21 -05:00
parent 571b74f0e7
commit 5f5757c784
2 changed files with 20 additions and 4 deletions

View File

@@ -15,8 +15,9 @@
"start:server": "dotenvx run -f .env -- node dist/server/index.js",
"db:generate": "npx drizzle-kit generate",
"db:migrate": "npx drizzle-kit push",
"deploy": "standard-version --conventional-commits",
"zipServer": "powershell -ExecutionPolicy Bypass -File server/scripts/build.ps1 -dir \"C:\\Users\\matthes01\\Documents\\lstv2\" && node dist/server/scripts/zipUpBuild.js \"C:\\Users\\matthes01\\Documents\\lstv2",
"deploy": "standard-version --conventional-commits && npm run zipServer",
"zipServer": " tsx server/scripts/zipUpBuild.ts \"C:\\Users\\matthes01\\Documents\\lstv2\"",
"prodBuild": "powershell -ExecutionPolicy Bypass -File server/scripts/build.ps1 -dir \"C:\\Users\\matthes01\\Documents\\lstv2",
"commit": "cz",
"prodinstall": "npm i --omit=dev && npm run db:migrate"
},
@@ -68,7 +69,7 @@
}
},
"admConfig": {
"build": 7,
"build": 8,
"dest": "C:\\Users\\matthes01\\Documents\\lstv2\\builds",
"src": "C:\\Users\\matthes01\\Documents\\lstv2"
}

View File

@@ -6,6 +6,8 @@ import {createLog} from "../services/logger/logger.js";
// create the ignore list
const ignoreList = [
".git",
"builds",
"node_modules",
"apiDocsLSTV2",
"testFiles",
@@ -14,6 +16,7 @@ const ignoreList = [
".versionrc.json",
"drizzle-dev.config.ts",
"nssm.exe",
"postgresql-17.2-3-windows-x64.exe",
// front end ignore
"/frontend/node_modules",
"fonrtend/.env",
@@ -152,4 +155,16 @@ export const createZip = async (appLock: string) => {
}
};
createZip("C:\\Users\\matthes01\\Documents\\lstv2");
//createZip("C:\\Users\\matthes01\\Documents\\lstv2");
// Only call `createZip` if the script is executed directly
if (import.meta.url === `file://${process.argv[1]}`) {
const location = process.argv[2];
if (!location) {
console.error("Error: No location provided.");
process.exit(1);
}
createZip(location);
}