@ruan-cat/utils 4.17.0 → 4.18.0

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.
package/dist/index.js CHANGED
@@ -97,7 +97,7 @@ async function runPromiseByConcurrency(promises) {
97
97
  // src/monorepo.ts
98
98
  import { join } from "path";
99
99
  import * as fs from "fs";
100
- import { sync } from "glob";
100
+ import { globSync } from "tinyglobby";
101
101
 
102
102
  // ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/dist/js-yaml.mjs
103
103
  function isNothing(subject) {
@@ -2710,8 +2710,8 @@ function isMonorepoProject() {
2710
2710
  }
2711
2711
  for (const pkgPattern of pkgPatterns) {
2712
2712
  const matchedPath = pathChange(join(process.cwd(), pkgPattern, "package.json"));
2713
- const matchedPaths = sync(matchedPath, {
2714
- ignore: "**/node_modules/**"
2713
+ const matchedPaths = globSync(matchedPath, {
2714
+ ignore: ["**/node_modules/**"]
2715
2715
  });
2716
2716
  if (matchedPaths.length > 0) {
2717
2717
  return true;