diff --git a/packages/backend/scripts/compile_config.js b/packages/backend/scripts/compile_config.js index e78fa3dc9f..b5eea9c784 100644 --- a/packages/backend/scripts/compile_config.js +++ b/packages/backend/scripts/compile_config.js @@ -27,8 +27,8 @@ const OUTPUT_PATH = resolve(_dirname, '../../../built/.config.json'); */ function yamlToJson(ymlPath) { if (!fs.existsSync(ymlPath)) { - console.warn(`YAML file not found: ${ymlPath}`); - return; + console.error(`YAML file not found: ${ymlPath}`); + process.exit(1); } console.log(`${ymlPath} → ${OUTPUT_PATH}`);