mirror of
https://github.com/Pandipipas/scoreko-electron-dev.git
synced 2026-06-06 05:32:06 +00:00
chore: clean NodeCG install validation checks
This commit is contained in:
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user