Files
wehub-resource-sync dbe3ade0dc
Enforce Pull-Request Rules / check (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 12:19:24 +08:00

17 lines
483 B
JavaScript

// Ensure internal require aliases (e.g., "logger") resolve when this file is run as a standalone script
require("./alias-resolver");
const path = require("node:path");
const Log = require("logger");
const rootPath = path.resolve(`${__dirname}/../`);
const Utils = require(`${rootPath}/js/utils.js`);
try {
Utils.checkConfigFile();
} catch (error) {
const message = error && error.message ? error.message : error;
Log.error(`Unexpected error: ${message}`);
process.exit(1);
}