feat: improve config values by extending default config

related to #113
This commit is contained in:
Mathias Schopmans
2024-03-13 14:19:53 +01:00
parent c5186353a6
commit 04053c6700
7 changed files with 146 additions and 135 deletions

View File

@@ -53,7 +53,7 @@ function bootstrap() {
"Could not find a config.json. Created a bootstrap config.json in your current working directory. Customize it to your needs.",
);
fs.copyFileSync(
path.join(BUILDER_DIR, "data", "config.json"),
path.join(BUILDER_DIR, "data", "config.default.json"),
path.join(CWD, "config.json"),
);
}
@@ -77,7 +77,7 @@ function calculateHash(file) {
return hashSum.digest("hex");
}
const CURRENT_HASH = calculateHash(path.join(CWD, "package.json"));
const CURRENT_HASH = calculateHash(path.join(CWD, "package-lock.json"));
// Check if builder dir needs to be recreated
let RECREATE_DIR = false;