chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:32:57 +08:00
commit cd420f9332
4811 changed files with 884702 additions and 0 deletions
@@ -0,0 +1,31 @@
import { execPromise } from "./utils.mjs";
// git install check
try {
await execPromise("git --version");
} catch (_error) {
console.error("Git not installed or missing from PATH.");
process.exit(0);
}
// submodule sync
try {
const { stdout, stderr } = await execPromise("git submodule sync --recursive");
if (stdout) console.log(stdout);
if (stderr) console.error(stderr);
} catch (_error) {
console.error("Error during submodule sync.");
process.exit(1);
}
// submodule update
try {
const { stdout, stderr } = await execPromise("git submodule update --init --recursive");
if (stdout) console.log(stdout);
if (stderr) console.error(stderr);
} catch (_error) {
console.error("Error during submodule update.");
process.exit(1);
}