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..cec59402 100644 --- a/tests/run-build.mjs +++ b/tests/run-build.mjs @@ -43,10 +43,15 @@ 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()) { + // Ignore third-party git dirs. + 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; } @@ -56,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");