@vercel/microfrontends 1.0.1-canary.4 → 1.0.1-canary.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -884,6 +884,9 @@ import fs from "node:fs";
884
884
  import path from "node:path";
885
885
  var GIT_DIRECTORY = ".git";
886
886
  function findRepositoryRoot(startDir) {
887
+ if (process.env.NX_WORKSPACE_ROOT) {
888
+ return process.env.NX_WORKSPACE_ROOT;
889
+ }
887
890
  let currentDir = startDir || process.cwd();
888
891
  while (currentDir !== path.parse(currentDir).root) {
889
892
  const gitPath = path.join(currentDir, GIT_DIRECTORY);