@ordewell/web 0.14.5 → 0.14.6

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.
@@ -419,7 +419,9 @@ var PoolFileSystem = class _PoolFileSystem extends core.BaseFileSystem {
419
419
  const basename = pattern.split("/").pop() || pattern;
420
420
  const excludeArgs = core.SEARCH_EXCLUSIONS.flatMap((dir) => ["-not", "-path", `*/${dir}/*`]);
421
421
  const { root: findRoot } = await this.searchTarget(absRoot);
422
- const result = await run("find", [findRoot, "-type", "f", "-name", basename, ...excludeArgs], { timeout: SEARCH_TIMEOUT_MS, env: this.searchEnv() });
422
+ const env = { ...this.searchEnv() ?? process.env };
423
+ env.MSYS = [env.MSYS, "noglob"].filter(Boolean).join(" ");
424
+ const result = await run("find", [findRoot, "-type", "f", "-name", basename, ...excludeArgs], { timeout: SEARCH_TIMEOUT_MS, env });
423
425
  if (result.code !== 0 && !result.stdout) {
424
426
  return { success: false, output: `Glob failed: ${result.stderr.trim() || "find error"}`, truncated: false };
425
427
  }