chore: clean NodeCG install validation checks

This commit is contained in:
Pandipipas
2026-03-02 23:57:40 +01:00
parent eae612cb38
commit 73cdde3f5c
2 changed files with 9 additions and 16 deletions
+2
View File
@@ -37,6 +37,7 @@ function parseIntInRange(name, fallback, min, max) {
function checkNodecgInstall() {
const packageJsonPath = path.join(scorekoRootPath, "package.json");
const nodecgDependencyPath = path.join(scorekoRootPath, "node_modules", "nodecg", "package.json");
const nodecgCliPath = path.join(
scorekoRootPath,
"node_modules",
@@ -49,6 +50,7 @@ function checkNodecgInstall() {
addCheck(fs.existsSync(scorekoRootPath), "Scoreko root", scorekoRootPath);
addCheck(fs.existsSync(packageJsonPath), "scoreko-dev package.json", packageJsonPath);
addCheck(fs.existsSync(nodecgDependencyPath), "NodeCG dependency", nodecgDependencyPath);
addCheck(fs.existsSync(nodecgCliPath), "NodeCG CLI", nodecgCliPath);
addCheck(
bundleAssetPaths.some((candidatePath) => fs.existsSync(candidatePath)),