From 6dc5d5db78b61c0c05b6a762b41057a374913326 Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Thu, 30 Oct 2025 10:37:17 +0100 Subject: [PATCH 1/2] fix --- mobx/webpack.config.mjs | 2 +- tests/run-build.mjs | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/mobx/webpack.config.mjs b/mobx/webpack.config.mjs index 5562b9c6..fdfe638f 100644 --- a/mobx/webpack.config.mjs +++ b/mobx/webpack.config.mjs @@ -3,7 +3,7 @@ import { fileURLToPath } from "url"; import TerserPlugin from "terser-webpack-plugin"; import { LicenseFilePlugin } from "generate-license-file-webpack-plugin"; -import CacheBusterCommentPlugin from "../startup-helper/BabelCacheBuster.mjs"; +import CacheBusterCommentPlugin from "../utils/BabelCacheBuster.mjs"; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/tests/run-build.mjs b/tests/run-build.mjs index 658afb5b..49ed2bf8 100644 --- a/tests/run-build.mjs +++ b/tests/run-build.mjs @@ -43,10 +43,14 @@ async function findPackageJsonFiles(dir, accumulator=[]) { if (dirent.name === "node_modules" || dirent.name === ".git") continue; const fullPath = path.join(dir, dirent.name); - if (dirent.isDirectory()) + if (dirent.isDirectory()) { + if (fs.existsSync(path.join(fullPath, ".git"))) { + continue; + } findPackageJsonFiles(fullPath, accumulator); - else if (dirent.name === "package.json") + } else if (dirent.name === "package.json") { accumulator.push(fullPath) + } } return accumulator; } From f2df720f1ce13aeec6363ea7ed13051f1350c45e Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Thu, 30 Oct 2025 10:39:44 +0100 Subject: [PATCH 2/2] fix --- tests/run-build.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/run-build.mjs b/tests/run-build.mjs index 49ed2bf8..cec59402 100644 --- a/tests/run-build.mjs +++ b/tests/run-build.mjs @@ -44,6 +44,7 @@ async function findPackageJsonFiles(dir, accumulator=[]) { continue; const fullPath = path.join(dir, dirent.name); if (dirent.isDirectory()) { + // Ignore third-party git dirs. if (fs.existsSync(path.join(fullPath, ".git"))) { continue; } @@ -60,6 +61,7 @@ async function runBuilds() { let success = true; logInfo(`Found ${packageJsonFiles.length} package.json files`); + console.log(packageJsonFiles) let filteredPackageJsonFiles = packageJsonFiles; if (options.changedDirs?.size === 0) { logInfo("No file changes detected, skipping all");