@storm-software/linting-tools 1.112.1 → 1.112.2

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/bin/lint.cjs CHANGED
@@ -3653,8 +3653,8 @@ var transform = /* @__PURE__ */ __name((options) => {
3653
3653
 
3654
3654
  // src/codeowners/index.ts
3655
3655
  init_cjs_shims();
3656
- var import_fast_glob2 = require("fast-glob");
3657
3656
  var import_fs_extra = __toESM(require("fs-extra"), 1);
3657
+ var import_glob4 = require("glob");
3658
3658
  var import_octokit = require("octokit");
3659
3659
  var import_path = require("path");
3660
3660
  async function runCodeowners() {
@@ -3680,16 +3680,23 @@ async function runCodeowners() {
3680
3680
  `**/${specifiedPattern}`
3681
3681
  ];
3682
3682
  for (const pattern of patternsToCheck) {
3683
- foundMatchingFiles ||= (0, import_fast_glob2.sync)(pattern, {
3683
+ const files = (0, import_glob4.globSync)(pattern, {
3684
3684
  ignore: [
3685
- "node_modules",
3686
- "dist",
3687
- "tmp",
3688
- ".git"
3685
+ "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}",
3686
+ "**/dist/**",
3687
+ "**/tmp/**",
3688
+ "**/node_modules/**",
3689
+ "**/.git/**",
3690
+ "**/.cache/**",
3691
+ "**/.nx/**"
3689
3692
  ],
3690
- cwd: (0, import_path.join)(config.workspaceRoot),
3691
- onlyFiles: false
3692
- }).length > 0;
3693
+ withFileTypes: true,
3694
+ cwd: config.workspaceRoot
3695
+ });
3696
+ if (files.length > 0) {
3697
+ foundMatchingFiles = true;
3698
+ break;
3699
+ }
3693
3700
  }
3694
3701
  if (!foundMatchingFiles) {
3695
3702
  mismatchedPatterns.push(specifiedPattern);
@@ -3759,13 +3766,13 @@ __name(validateUser, "validateUser");
3759
3766
  // src/manypkg/index.ts
3760
3767
  init_cjs_shims();
3761
3768
 
3762
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/index.ts
3769
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/index.ts
3763
3770
  init_cjs_shims();
3764
3771
 
3765
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/EXTERNAL_MISMATCH.ts
3772
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/EXTERNAL_MISMATCH.ts
3766
3773
  init_cjs_shims();
3767
3774
 
3768
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/utils.ts
3775
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/utils.ts
3769
3776
  init_cjs_shims();
3770
3777
  var semver = __toESM(require("semver"));
3771
3778
  var import_sembear = require("sembear");
@@ -3874,7 +3881,7 @@ function makeCheck(check) {
3874
3881
  }
3875
3882
  __name(makeCheck, "makeCheck");
3876
3883
 
3877
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/EXTERNAL_MISMATCH.ts
3884
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/EXTERNAL_MISMATCH.ts
3878
3885
  var import_semver = require("semver");
3879
3886
  var EXTERNAL_MISMATCH_default = makeCheck({
3880
3887
  validate: /* @__PURE__ */ __name((workspace, allWorkspace) => {
@@ -3915,7 +3922,7 @@ var EXTERNAL_MISMATCH_default = makeCheck({
3915
3922
  type: "all"
3916
3923
  });
3917
3924
 
3918
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/INTERNAL_MISMATCH.ts
3925
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/INTERNAL_MISMATCH.ts
3919
3926
  init_cjs_shims();
3920
3927
  var import_semver2 = __toESM(require("semver"));
3921
3928
  var INTERNAL_MISMATCH_default = makeCheck({
@@ -3955,7 +3962,7 @@ var INTERNAL_MISMATCH_default = makeCheck({
3955
3962
  type: "all"
3956
3963
  });
3957
3964
 
3958
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/INVALID_DEV_AND_PEER_DEPENDENCY_RELATIONSHIP.ts
3965
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/INVALID_DEV_AND_PEER_DEPENDENCY_RELATIONSHIP.ts
3959
3966
  init_cjs_shims();
3960
3967
  var import_sembear2 = require("sembear");
3961
3968
  var import_semver3 = __toESM(require("semver"));
@@ -4022,7 +4029,7 @@ var INVALID_DEV_AND_PEER_DEPENDENCY_RELATIONSHIP_default = makeCheck({
4022
4029
  }, "print")
4023
4030
  });
4024
4031
 
4025
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/INVALID_PACKAGE_NAME.ts
4032
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/INVALID_PACKAGE_NAME.ts
4026
4033
  init_cjs_shims();
4027
4034
  var import_validate_npm_package_name = __toESM(require("validate-npm-package-name"));
4028
4035
  var INVALID_PACKAGE_NAME_default = makeCheck({
@@ -4064,7 +4071,7 @@ ${error2.errors.join("\n")}`;
4064
4071
  }, "print")
4065
4072
  });
4066
4073
 
4067
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/MULTIPLE_DEPENDENCY_TYPES.ts
4074
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/MULTIPLE_DEPENDENCY_TYPES.ts
4068
4075
  init_cjs_shims();
4069
4076
  var MULTIPLE_DEPENDENCY_TYPES_default = makeCheck({
4070
4077
  validate: /* @__PURE__ */ __name((workspace, allWorkspaces) => {
@@ -4111,16 +4118,16 @@ var MULTIPLE_DEPENDENCY_TYPES_default = makeCheck({
4111
4118
  print: /* @__PURE__ */ __name((error2) => `${error2.workspace.packageJson.name} has a dependency and a ${error2.dependencyType === "devDependencies" ? "devDependency" : "optionalDependency"} on ${error2.dependencyName}, this is unnecessary, it should be removed from ${error2.dependencyType}`, "print")
4112
4119
  });
4113
4120
 
4114
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/ROOT_HAS_DEV_DEPENDENCIES.ts
4121
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/ROOT_HAS_PROD_DEPENDENCIES.ts
4115
4122
  init_cjs_shims();
4116
- var import_chalk5 = __toESM(require("chalk"));
4117
- var ROOT_HAS_DEV_DEPENDENCIES_default = makeCheck({
4123
+ var import_picocolors = __toESM(require("picocolors"));
4124
+ var ROOT_HAS_PROD_DEPENDENCIES_default = makeCheck({
4118
4125
  type: "root",
4119
4126
  validate: /* @__PURE__ */ __name((rootWorkspace) => {
4120
- if (rootWorkspace.packageJson.devDependencies) {
4127
+ if (rootWorkspace.packageJson.dependencies) {
4121
4128
  return [
4122
4129
  {
4123
- type: "ROOT_HAS_DEV_DEPENDENCIES",
4130
+ type: "ROOT_HAS_PROD_DEPENDENCIES",
4124
4131
  workspace: rootWorkspace
4125
4132
  }
4126
4133
  ];
@@ -4128,18 +4135,18 @@ var ROOT_HAS_DEV_DEPENDENCIES_default = makeCheck({
4128
4135
  return [];
4129
4136
  }, "validate"),
4130
4137
  fix: /* @__PURE__ */ __name((error2) => {
4131
- error2.workspace.packageJson.dependencies = sortObject({
4138
+ error2.workspace.packageJson.devDependencies = sortObject({
4132
4139
  ...error2.workspace.packageJson.devDependencies,
4133
4140
  ...error2.workspace.packageJson.dependencies
4134
4141
  });
4135
- delete error2.workspace.packageJson.devDependencies;
4142
+ delete error2.workspace.packageJson.dependencies;
4136
4143
  }, "fix"),
4137
4144
  print: /* @__PURE__ */ __name(() => {
4138
- return `the root package.json contains ${import_chalk5.default.yellow("devDependencies")}, this is disallowed as ${import_chalk5.default.yellow("devDependencies")} vs ${import_chalk5.default.green("dependencies")} in a private package does not affect anything and creates confusion.`;
4145
+ return `the root package.json contains ${import_picocolors.default.yellow("dependencies")}, this is disallowed as ${import_picocolors.default.yellow("dependencies")} vs ${import_picocolors.default.green("devDependencies")} in a private package does not affect anything and creates confusion.`;
4139
4146
  }, "print")
4140
4147
  });
4141
4148
 
4142
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/UNSORTED_DEPENDENCIES.ts
4149
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/UNSORTED_DEPENDENCIES.ts
4143
4150
  init_cjs_shims();
4144
4151
  var UNSORTED_DEPENDENCIES_default = makeCheck({
4145
4152
  type: "all",
@@ -4163,7 +4170,7 @@ var UNSORTED_DEPENDENCIES_default = makeCheck({
4163
4170
  print: /* @__PURE__ */ __name((error2) => `${error2.workspace.packageJson.name}'s dependencies are unsorted, this can cause large diffs when packages are added, resulting in dependencies being sorted`, "print")
4164
4171
  });
4165
4172
 
4166
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/INCORRECT_REPOSITORY_FIELD.ts
4173
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/INCORRECT_REPOSITORY_FIELD.ts
4167
4174
  init_cjs_shims();
4168
4175
  var import_parse_github_url = __toESM(require("parse-github-url"));
4169
4176
  var import_normalize_path = __toESM(require("normalize-path"));
@@ -4226,7 +4233,7 @@ var INCORRECT_REPOSITORY_FIELD_default = makeCheck({
4226
4233
  }, "print")
4227
4234
  });
4228
4235
 
4229
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/WORKSPACE_REQUIRED.ts
4236
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/WORKSPACE_REQUIRED.ts
4230
4237
  init_cjs_shims();
4231
4238
  var WORKSPACE_REQUIRED_default = makeCheck({
4232
4239
  validate: /* @__PURE__ */ __name((workspace, allWorkspaces, root, opts) => {
@@ -4262,20 +4269,20 @@ var WORKSPACE_REQUIRED_default = makeCheck({
4262
4269
  type: "all"
4263
4270
  });
4264
4271
 
4265
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/index.ts
4272
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/index.ts
4266
4273
  var checks = {
4267
4274
  EXTERNAL_MISMATCH: EXTERNAL_MISMATCH_default,
4268
4275
  INTERNAL_MISMATCH: INTERNAL_MISMATCH_default,
4269
4276
  INVALID_DEV_AND_PEER_DEPENDENCY_RELATIONSHIP: INVALID_DEV_AND_PEER_DEPENDENCY_RELATIONSHIP_default,
4270
4277
  INVALID_PACKAGE_NAME: INVALID_PACKAGE_NAME_default,
4271
4278
  MULTIPLE_DEPENDENCY_TYPES: MULTIPLE_DEPENDENCY_TYPES_default,
4272
- ROOT_HAS_DEV_DEPENDENCIES: ROOT_HAS_DEV_DEPENDENCIES_default,
4279
+ ROOT_HAS_PROD_DEPENDENCIES: ROOT_HAS_PROD_DEPENDENCIES_default,
4273
4280
  UNSORTED_DEPENDENCIES: UNSORTED_DEPENDENCIES_default,
4274
4281
  INCORRECT_REPOSITORY_FIELD: INCORRECT_REPOSITORY_FIELD_default,
4275
4282
  WORKSPACE_REQUIRED: WORKSPACE_REQUIRED_default
4276
4283
  };
4277
4284
 
4278
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/errors.ts
4285
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/errors.ts
4279
4286
  init_cjs_shims();
4280
4287
  var ExitError = class extends Error {
4281
4288
  static {
@@ -4288,10 +4295,10 @@ var ExitError = class extends Error {
4288
4295
  }
4289
4296
  };
4290
4297
 
4291
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/npm-tag.ts
4298
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/npm-tag.ts
4292
4299
  init_cjs_shims();
4293
4300
  var import_get_packages = __toESM(require_manypkg_get_packages_cjs());
4294
- var import_spawndamnit = __toESM(require("spawndamnit"));
4301
+ var import_tinyexec = require("tinyexec");
4295
4302
  var import_p_limit = __toESM(require("p-limit"));
4296
4303
  var npmLimit = (0, import_p_limit.default)(40);
4297
4304
  function getCorrectRegistry() {
@@ -4307,15 +4314,17 @@ async function tagApackage(packageJson, tag, otpCode) {
4307
4314
  if (otpCode) {
4308
4315
  flags.push("--otp", otpCode);
4309
4316
  }
4310
- return await (0, import_spawndamnit.default)("npm", [
4317
+ return await (0, import_tinyexec.exec)("npm", [
4311
4318
  "dist-tag",
4312
4319
  "add",
4313
4320
  `${packageJson.name}@${packageJson.version}`,
4314
4321
  tag,
4315
4322
  ...flags
4316
4323
  ], {
4317
- stdio: "inherit",
4318
- env: Object.assign({}, process.env, envOverride)
4324
+ nodeOptions: {
4325
+ stdio: "inherit",
4326
+ env: envOverride
4327
+ }
4319
4328
  });
4320
4329
  }
4321
4330
  __name(tagApackage, "tagApackage");
@@ -4325,20 +4334,20 @@ async function npmTagAll([tag, _, otp]) {
4325
4334
  }
4326
4335
  __name(npmTagAll, "npmTagAll");
4327
4336
 
4328
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/run.ts
4337
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/run.ts
4329
4338
  init_cjs_shims();
4330
4339
  var import_get_packages2 = __toESM(require_manypkg_get_packages_cjs());
4331
- var import_spawndamnit2 = __toESM(require("spawndamnit"));
4340
+ var import_tinyexec2 = require("tinyexec");
4332
4341
 
4333
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/logger.ts
4342
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/logger.ts
4334
4343
  init_cjs_shims();
4335
- var import_chalk6 = __toESM(require("chalk"));
4344
+ var import_picocolors2 = __toESM(require("picocolors"));
4336
4345
  var import_util4 = __toESM(require("util"));
4337
4346
  function format4(args, messageType, scope) {
4338
4347
  let prefix = {
4339
- error: import_chalk6.default.red("error"),
4340
- success: import_chalk6.default.green("success"),
4341
- info: import_chalk6.default.cyan("info")
4348
+ error: import_picocolors2.default.red("error"),
4349
+ success: import_picocolors2.default.green("success"),
4350
+ info: import_picocolors2.default.cyan("info")
4342
4351
  }[messageType];
4343
4352
  let fullPrefix = "\u2614\uFE0F " + prefix + (scope === void 0 ? "" : " " + scope);
4344
4353
  return fullPrefix + import_util4.default.format("", ...args).split("\n").join("\n" + fullPrefix + " ");
@@ -4351,18 +4360,20 @@ function error(message, scope) {
4351
4360
  }
4352
4361
  __name(error, "error");
4353
4362
 
4354
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/run.ts
4363
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/run.ts
4355
4364
  async function runCmd(args, cwd) {
4356
4365
  let { packages, rootDir } = await (0, import_get_packages2.getPackages)(cwd);
4357
4366
  const exactMatchingPackage = packages.find((pkg) => {
4358
4367
  return pkg.packageJson.name === args[0] || pkg.relativeDir === args[0];
4359
4368
  });
4360
4369
  if (exactMatchingPackage) {
4361
- const { code } = await (0, import_spawndamnit2.default)("yarn", args.slice(1), {
4362
- cwd: exactMatchingPackage.dir,
4363
- stdio: "inherit"
4370
+ const { exitCode } = await (0, import_tinyexec2.exec)("yarn", args.slice(1), {
4371
+ nodeOptions: {
4372
+ cwd: exactMatchingPackage.dir,
4373
+ stdio: "inherit"
4374
+ }
4364
4375
  });
4365
- throw new ExitError(code);
4376
+ throw new ExitError(exitCode ?? 1);
4366
4377
  }
4367
4378
  const matchingPackages = packages.filter((pkg) => {
4368
4379
  return pkg.packageJson.name.includes(args[0]) || pkg.relativeDir.includes(args[0]);
@@ -4375,31 +4386,33 @@ ${matchingPackages.map((x) => x.packageJson.name).join("\n")}`);
4375
4386
  error("No matching packages found");
4376
4387
  throw new ExitError(1);
4377
4388
  } else {
4378
- const { code } = await (0, import_spawndamnit2.default)("yarn", args.slice(1), {
4379
- cwd: matchingPackages[0].dir,
4380
- stdio: "inherit"
4389
+ const { exitCode } = await (0, import_tinyexec2.exec)("yarn", args.slice(1), {
4390
+ nodeOptions: {
4391
+ cwd: matchingPackages[0].dir,
4392
+ stdio: "inherit"
4393
+ }
4381
4394
  });
4382
- throw new ExitError(code);
4395
+ throw new ExitError(exitCode ?? 1);
4383
4396
  }
4384
4397
  }
4385
4398
  __name(runCmd, "runCmd");
4386
4399
 
4387
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/upgrade.ts
4400
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/upgrade.ts
4388
4401
  init_cjs_shims();
4389
4402
  var import_get_packages3 = __toESM(require_manypkg_get_packages_cjs());
4390
4403
  var import_semver4 = __toESM(require("semver"));
4391
4404
  var import_p_limit2 = __toESM(require("p-limit"));
4392
4405
 
4393
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/utils.ts
4406
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/utils.ts
4394
4407
  init_cjs_shims();
4395
- var fs4 = __toESM(require("fs-extra"));
4408
+ var import_promises3 = __toESM(require("fs/promises"));
4396
4409
  var import_path2 = __toESM(require("path"));
4397
- var import_spawndamnit3 = __toESM(require("spawndamnit"));
4410
+ var import_tinyexec3 = require("tinyexec");
4398
4411
  var import_detect_indent = __toESM(require("detect-indent"));
4399
4412
  async function writePackage(pkg) {
4400
- let pkgRaw = await fs4.readFile(import_path2.default.join(pkg.dir, "package.json"), "utf-8");
4413
+ let pkgRaw = await import_promises3.default.readFile(import_path2.default.join(pkg.dir, "package.json"), "utf-8");
4401
4414
  let indent = (0, import_detect_indent.default)(pkgRaw).indent || " ";
4402
- return fs4.writeFile(import_path2.default.join(pkg.dir, "package.json"), JSON.stringify(pkg.packageJson, null, indent) + (pkgRaw.endsWith("\n") ? "\n" : ""));
4415
+ return import_promises3.default.writeFile(import_path2.default.join(pkg.dir, "package.json"), JSON.stringify(pkg.packageJson, null, indent) + (pkgRaw.endsWith("\n") ? "\n" : ""));
4403
4416
  }
4404
4417
  __name(writePackage, "writePackage");
4405
4418
  async function install(toolType, cwd) {
@@ -4411,20 +4424,22 @@ async function install(toolType, cwd) {
4411
4424
  rush: "rushx",
4412
4425
  yarn: "yarn"
4413
4426
  };
4414
- await (0, import_spawndamnit3.default)(cliRunners[toolType], toolType === "pnpm" ? [
4427
+ await (0, import_tinyexec3.exec)(cliRunners[toolType], toolType === "pnpm" ? [
4415
4428
  "install"
4416
4429
  ] : toolType === "lerna" ? [
4417
4430
  "bootstrap",
4418
4431
  "--since",
4419
4432
  "HEAD"
4420
4433
  ] : [], {
4421
- cwd,
4422
- stdio: "inherit"
4434
+ nodeOptions: {
4435
+ cwd,
4436
+ stdio: "inherit"
4437
+ }
4423
4438
  });
4424
4439
  }
4425
4440
  __name(install, "install");
4426
4441
 
4427
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/upgrade.ts
4442
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/upgrade.ts
4428
4443
  async function upgradeDependency([name, tag = "latest"]) {
4429
4444
  let { packages, tool, rootPackage, rootDir } = await (0, import_get_packages3.getPackages)(process.cwd());
4430
4445
  let isScope = name.startsWith("@") && !name.includes("/");
@@ -4516,7 +4531,7 @@ __name(getPackageInfo, "getPackageInfo");
4516
4531
  // src/manypkg/index.ts
4517
4532
  var import_get_packages4 = __toESM(require_manypkg_get_packages_cjs(), 1);
4518
4533
  var import_p_limit3 = __toESM(require("p-limit"), 1);
4519
- var import_spawndamnit4 = __toESM(require("spawndamnit"), 1);
4534
+ var import_spawndamnit = __toESM(require("spawndamnit"), 1);
4520
4535
  var defaultOptions = {
4521
4536
  defaultBranch: "main"
4522
4537
  };
@@ -4578,7 +4593,7 @@ async function execCmd(args) {
4578
4593
  let highestExitCode = 0;
4579
4594
  await Promise.all(packages.map((pkg) => {
4580
4595
  return execLimit(async () => {
4581
- const { code } = await (0, import_spawndamnit4.default)(args[0], args.slice(1), {
4596
+ const { code } = await (0, import_spawndamnit.default)(args[0], args.slice(1), {
4582
4597
  cwd: pkg.dir,
4583
4598
  stdio: "inherit"
4584
4599
  });
package/bin/lint.js CHANGED
@@ -3666,8 +3666,8 @@ var transform = /* @__PURE__ */ __name((options) => {
3666
3666
 
3667
3667
  // src/codeowners/index.ts
3668
3668
  init_esm_shims();
3669
- import { sync } from "fast-glob";
3670
3669
  import fs3 from "fs-extra";
3670
+ import { globSync } from "glob";
3671
3671
  import { Octokit } from "octokit";
3672
3672
  import { join as join3 } from "path";
3673
3673
  async function runCodeowners() {
@@ -3693,16 +3693,23 @@ async function runCodeowners() {
3693
3693
  `**/${specifiedPattern}`
3694
3694
  ];
3695
3695
  for (const pattern of patternsToCheck) {
3696
- foundMatchingFiles ||= sync(pattern, {
3696
+ const files = globSync(pattern, {
3697
3697
  ignore: [
3698
- "node_modules",
3699
- "dist",
3700
- "tmp",
3701
- ".git"
3698
+ "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}",
3699
+ "**/dist/**",
3700
+ "**/tmp/**",
3701
+ "**/node_modules/**",
3702
+ "**/.git/**",
3703
+ "**/.cache/**",
3704
+ "**/.nx/**"
3702
3705
  ],
3703
- cwd: join3(config.workspaceRoot),
3704
- onlyFiles: false
3705
- }).length > 0;
3706
+ withFileTypes: true,
3707
+ cwd: config.workspaceRoot
3708
+ });
3709
+ if (files.length > 0) {
3710
+ foundMatchingFiles = true;
3711
+ break;
3712
+ }
3706
3713
  }
3707
3714
  if (!foundMatchingFiles) {
3708
3715
  mismatchedPatterns.push(specifiedPattern);
@@ -3772,13 +3779,13 @@ __name(validateUser, "validateUser");
3772
3779
  // src/manypkg/index.ts
3773
3780
  init_esm_shims();
3774
3781
 
3775
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/index.ts
3782
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/index.ts
3776
3783
  init_esm_shims();
3777
3784
 
3778
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/EXTERNAL_MISMATCH.ts
3785
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/EXTERNAL_MISMATCH.ts
3779
3786
  init_esm_shims();
3780
3787
 
3781
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/utils.ts
3788
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/utils.ts
3782
3789
  init_esm_shims();
3783
3790
  import * as semver from "semver";
3784
3791
  import { highest } from "sembear";
@@ -3887,7 +3894,7 @@ function makeCheck(check) {
3887
3894
  }
3888
3895
  __name(makeCheck, "makeCheck");
3889
3896
 
3890
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/EXTERNAL_MISMATCH.ts
3897
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/EXTERNAL_MISMATCH.ts
3891
3898
  import { validRange as validRange2 } from "semver";
3892
3899
  var EXTERNAL_MISMATCH_default = makeCheck({
3893
3900
  validate: /* @__PURE__ */ __name((workspace, allWorkspace) => {
@@ -3928,7 +3935,7 @@ var EXTERNAL_MISMATCH_default = makeCheck({
3928
3935
  type: "all"
3929
3936
  });
3930
3937
 
3931
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/INTERNAL_MISMATCH.ts
3938
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/INTERNAL_MISMATCH.ts
3932
3939
  init_esm_shims();
3933
3940
  import semver2 from "semver";
3934
3941
  var INTERNAL_MISMATCH_default = makeCheck({
@@ -3968,7 +3975,7 @@ var INTERNAL_MISMATCH_default = makeCheck({
3968
3975
  type: "all"
3969
3976
  });
3970
3977
 
3971
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/INVALID_DEV_AND_PEER_DEPENDENCY_RELATIONSHIP.ts
3978
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/INVALID_DEV_AND_PEER_DEPENDENCY_RELATIONSHIP.ts
3972
3979
  init_esm_shims();
3973
3980
  import { upperBoundOfRangeAWithinBoundsOfB } from "sembear";
3974
3981
  import semver3 from "semver";
@@ -4035,7 +4042,7 @@ var INVALID_DEV_AND_PEER_DEPENDENCY_RELATIONSHIP_default = makeCheck({
4035
4042
  }, "print")
4036
4043
  });
4037
4044
 
4038
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/INVALID_PACKAGE_NAME.ts
4045
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/INVALID_PACKAGE_NAME.ts
4039
4046
  init_esm_shims();
4040
4047
  import validateNpmPackageName from "validate-npm-package-name";
4041
4048
  var INVALID_PACKAGE_NAME_default = makeCheck({
@@ -4077,7 +4084,7 @@ ${error2.errors.join("\n")}`;
4077
4084
  }, "print")
4078
4085
  });
4079
4086
 
4080
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/MULTIPLE_DEPENDENCY_TYPES.ts
4087
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/MULTIPLE_DEPENDENCY_TYPES.ts
4081
4088
  init_esm_shims();
4082
4089
  var MULTIPLE_DEPENDENCY_TYPES_default = makeCheck({
4083
4090
  validate: /* @__PURE__ */ __name((workspace, allWorkspaces) => {
@@ -4124,16 +4131,16 @@ var MULTIPLE_DEPENDENCY_TYPES_default = makeCheck({
4124
4131
  print: /* @__PURE__ */ __name((error2) => `${error2.workspace.packageJson.name} has a dependency and a ${error2.dependencyType === "devDependencies" ? "devDependency" : "optionalDependency"} on ${error2.dependencyName}, this is unnecessary, it should be removed from ${error2.dependencyType}`, "print")
4125
4132
  });
4126
4133
 
4127
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/ROOT_HAS_DEV_DEPENDENCIES.ts
4134
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/ROOT_HAS_PROD_DEPENDENCIES.ts
4128
4135
  init_esm_shims();
4129
- import chalk4 from "chalk";
4130
- var ROOT_HAS_DEV_DEPENDENCIES_default = makeCheck({
4136
+ import pc from "picocolors";
4137
+ var ROOT_HAS_PROD_DEPENDENCIES_default = makeCheck({
4131
4138
  type: "root",
4132
4139
  validate: /* @__PURE__ */ __name((rootWorkspace) => {
4133
- if (rootWorkspace.packageJson.devDependencies) {
4140
+ if (rootWorkspace.packageJson.dependencies) {
4134
4141
  return [
4135
4142
  {
4136
- type: "ROOT_HAS_DEV_DEPENDENCIES",
4143
+ type: "ROOT_HAS_PROD_DEPENDENCIES",
4137
4144
  workspace: rootWorkspace
4138
4145
  }
4139
4146
  ];
@@ -4141,18 +4148,18 @@ var ROOT_HAS_DEV_DEPENDENCIES_default = makeCheck({
4141
4148
  return [];
4142
4149
  }, "validate"),
4143
4150
  fix: /* @__PURE__ */ __name((error2) => {
4144
- error2.workspace.packageJson.dependencies = sortObject({
4151
+ error2.workspace.packageJson.devDependencies = sortObject({
4145
4152
  ...error2.workspace.packageJson.devDependencies,
4146
4153
  ...error2.workspace.packageJson.dependencies
4147
4154
  });
4148
- delete error2.workspace.packageJson.devDependencies;
4155
+ delete error2.workspace.packageJson.dependencies;
4149
4156
  }, "fix"),
4150
4157
  print: /* @__PURE__ */ __name(() => {
4151
- return `the root package.json contains ${chalk4.yellow("devDependencies")}, this is disallowed as ${chalk4.yellow("devDependencies")} vs ${chalk4.green("dependencies")} in a private package does not affect anything and creates confusion.`;
4158
+ return `the root package.json contains ${pc.yellow("dependencies")}, this is disallowed as ${pc.yellow("dependencies")} vs ${pc.green("devDependencies")} in a private package does not affect anything and creates confusion.`;
4152
4159
  }, "print")
4153
4160
  });
4154
4161
 
4155
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/UNSORTED_DEPENDENCIES.ts
4162
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/UNSORTED_DEPENDENCIES.ts
4156
4163
  init_esm_shims();
4157
4164
  var UNSORTED_DEPENDENCIES_default = makeCheck({
4158
4165
  type: "all",
@@ -4176,7 +4183,7 @@ var UNSORTED_DEPENDENCIES_default = makeCheck({
4176
4183
  print: /* @__PURE__ */ __name((error2) => `${error2.workspace.packageJson.name}'s dependencies are unsorted, this can cause large diffs when packages are added, resulting in dependencies being sorted`, "print")
4177
4184
  });
4178
4185
 
4179
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/INCORRECT_REPOSITORY_FIELD.ts
4186
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/INCORRECT_REPOSITORY_FIELD.ts
4180
4187
  init_esm_shims();
4181
4188
  import parseGithubUrl from "parse-github-url";
4182
4189
  import normalizePath2 from "normalize-path";
@@ -4239,7 +4246,7 @@ var INCORRECT_REPOSITORY_FIELD_default = makeCheck({
4239
4246
  }, "print")
4240
4247
  });
4241
4248
 
4242
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/WORKSPACE_REQUIRED.ts
4249
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/WORKSPACE_REQUIRED.ts
4243
4250
  init_esm_shims();
4244
4251
  var WORKSPACE_REQUIRED_default = makeCheck({
4245
4252
  validate: /* @__PURE__ */ __name((workspace, allWorkspaces, root, opts) => {
@@ -4275,20 +4282,20 @@ var WORKSPACE_REQUIRED_default = makeCheck({
4275
4282
  type: "all"
4276
4283
  });
4277
4284
 
4278
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/checks/index.ts
4285
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/checks/index.ts
4279
4286
  var checks = {
4280
4287
  EXTERNAL_MISMATCH: EXTERNAL_MISMATCH_default,
4281
4288
  INTERNAL_MISMATCH: INTERNAL_MISMATCH_default,
4282
4289
  INVALID_DEV_AND_PEER_DEPENDENCY_RELATIONSHIP: INVALID_DEV_AND_PEER_DEPENDENCY_RELATIONSHIP_default,
4283
4290
  INVALID_PACKAGE_NAME: INVALID_PACKAGE_NAME_default,
4284
4291
  MULTIPLE_DEPENDENCY_TYPES: MULTIPLE_DEPENDENCY_TYPES_default,
4285
- ROOT_HAS_DEV_DEPENDENCIES: ROOT_HAS_DEV_DEPENDENCIES_default,
4292
+ ROOT_HAS_PROD_DEPENDENCIES: ROOT_HAS_PROD_DEPENDENCIES_default,
4286
4293
  UNSORTED_DEPENDENCIES: UNSORTED_DEPENDENCIES_default,
4287
4294
  INCORRECT_REPOSITORY_FIELD: INCORRECT_REPOSITORY_FIELD_default,
4288
4295
  WORKSPACE_REQUIRED: WORKSPACE_REQUIRED_default
4289
4296
  };
4290
4297
 
4291
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/errors.ts
4298
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/errors.ts
4292
4299
  init_esm_shims();
4293
4300
  var ExitError = class extends Error {
4294
4301
  static {
@@ -4301,10 +4308,10 @@ var ExitError = class extends Error {
4301
4308
  }
4302
4309
  };
4303
4310
 
4304
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/npm-tag.ts
4311
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/npm-tag.ts
4305
4312
  init_esm_shims();
4306
4313
  var import_get_packages = __toESM(require_manypkg_get_packages_cjs());
4307
- import spawn from "spawndamnit";
4314
+ import { exec } from "tinyexec";
4308
4315
  import pLimit from "p-limit";
4309
4316
  var npmLimit = pLimit(40);
4310
4317
  function getCorrectRegistry() {
@@ -4320,15 +4327,17 @@ async function tagApackage(packageJson, tag, otpCode) {
4320
4327
  if (otpCode) {
4321
4328
  flags.push("--otp", otpCode);
4322
4329
  }
4323
- return await spawn("npm", [
4330
+ return await exec("npm", [
4324
4331
  "dist-tag",
4325
4332
  "add",
4326
4333
  `${packageJson.name}@${packageJson.version}`,
4327
4334
  tag,
4328
4335
  ...flags
4329
4336
  ], {
4330
- stdio: "inherit",
4331
- env: Object.assign({}, process.env, envOverride)
4337
+ nodeOptions: {
4338
+ stdio: "inherit",
4339
+ env: envOverride
4340
+ }
4332
4341
  });
4333
4342
  }
4334
4343
  __name(tagApackage, "tagApackage");
@@ -4338,20 +4347,20 @@ async function npmTagAll([tag, _, otp]) {
4338
4347
  }
4339
4348
  __name(npmTagAll, "npmTagAll");
4340
4349
 
4341
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/run.ts
4350
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/run.ts
4342
4351
  init_esm_shims();
4343
4352
  var import_get_packages2 = __toESM(require_manypkg_get_packages_cjs());
4344
- import spawn2 from "spawndamnit";
4353
+ import { exec as exec2 } from "tinyexec";
4345
4354
 
4346
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/logger.ts
4355
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/logger.ts
4347
4356
  init_esm_shims();
4348
- import chalk5 from "chalk";
4357
+ import pc2 from "picocolors";
4349
4358
  import util from "util";
4350
4359
  function format4(args, messageType, scope) {
4351
4360
  let prefix = {
4352
- error: chalk5.red("error"),
4353
- success: chalk5.green("success"),
4354
- info: chalk5.cyan("info")
4361
+ error: pc2.red("error"),
4362
+ success: pc2.green("success"),
4363
+ info: pc2.cyan("info")
4355
4364
  }[messageType];
4356
4365
  let fullPrefix = "\u2614\uFE0F " + prefix + (scope === void 0 ? "" : " " + scope);
4357
4366
  return fullPrefix + util.format("", ...args).split("\n").join("\n" + fullPrefix + " ");
@@ -4364,18 +4373,20 @@ function error(message, scope) {
4364
4373
  }
4365
4374
  __name(error, "error");
4366
4375
 
4367
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/run.ts
4376
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/run.ts
4368
4377
  async function runCmd(args, cwd) {
4369
4378
  let { packages, rootDir } = await (0, import_get_packages2.getPackages)(cwd);
4370
4379
  const exactMatchingPackage = packages.find((pkg) => {
4371
4380
  return pkg.packageJson.name === args[0] || pkg.relativeDir === args[0];
4372
4381
  });
4373
4382
  if (exactMatchingPackage) {
4374
- const { code } = await spawn2("yarn", args.slice(1), {
4375
- cwd: exactMatchingPackage.dir,
4376
- stdio: "inherit"
4383
+ const { exitCode } = await exec2("yarn", args.slice(1), {
4384
+ nodeOptions: {
4385
+ cwd: exactMatchingPackage.dir,
4386
+ stdio: "inherit"
4387
+ }
4377
4388
  });
4378
- throw new ExitError(code);
4389
+ throw new ExitError(exitCode ?? 1);
4379
4390
  }
4380
4391
  const matchingPackages = packages.filter((pkg) => {
4381
4392
  return pkg.packageJson.name.includes(args[0]) || pkg.relativeDir.includes(args[0]);
@@ -4388,26 +4399,28 @@ ${matchingPackages.map((x) => x.packageJson.name).join("\n")}`);
4388
4399
  error("No matching packages found");
4389
4400
  throw new ExitError(1);
4390
4401
  } else {
4391
- const { code } = await spawn2("yarn", args.slice(1), {
4392
- cwd: matchingPackages[0].dir,
4393
- stdio: "inherit"
4402
+ const { exitCode } = await exec2("yarn", args.slice(1), {
4403
+ nodeOptions: {
4404
+ cwd: matchingPackages[0].dir,
4405
+ stdio: "inherit"
4406
+ }
4394
4407
  });
4395
- throw new ExitError(code);
4408
+ throw new ExitError(exitCode ?? 1);
4396
4409
  }
4397
4410
  }
4398
4411
  __name(runCmd, "runCmd");
4399
4412
 
4400
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/upgrade.ts
4413
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/upgrade.ts
4401
4414
  init_esm_shims();
4402
4415
  var import_get_packages3 = __toESM(require_manypkg_get_packages_cjs());
4403
4416
  import semver4 from "semver";
4404
4417
  import pLimit2 from "p-limit";
4405
4418
 
4406
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/utils.ts
4419
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/utils.ts
4407
4420
  init_esm_shims();
4408
- import * as fs4 from "fs-extra";
4421
+ import fs4 from "node:fs/promises";
4409
4422
  import path9 from "path";
4410
- import spawn3 from "spawndamnit";
4423
+ import { exec as exec3 } from "tinyexec";
4411
4424
  import detectIndent from "detect-indent";
4412
4425
  async function writePackage(pkg) {
4413
4426
  let pkgRaw = await fs4.readFile(path9.join(pkg.dir, "package.json"), "utf-8");
@@ -4424,20 +4437,22 @@ async function install(toolType, cwd) {
4424
4437
  rush: "rushx",
4425
4438
  yarn: "yarn"
4426
4439
  };
4427
- await spawn3(cliRunners[toolType], toolType === "pnpm" ? [
4440
+ await exec3(cliRunners[toolType], toolType === "pnpm" ? [
4428
4441
  "install"
4429
4442
  ] : toolType === "lerna" ? [
4430
4443
  "bootstrap",
4431
4444
  "--since",
4432
4445
  "HEAD"
4433
4446
  ] : [], {
4434
- cwd,
4435
- stdio: "inherit"
4447
+ nodeOptions: {
4448
+ cwd,
4449
+ stdio: "inherit"
4450
+ }
4436
4451
  });
4437
4452
  }
4438
4453
  __name(install, "install");
4439
4454
 
4440
- // ../../node_modules/.pnpm/@manypkg+cli@0.21.4/node_modules/@manypkg/cli/src/upgrade.ts
4455
+ // ../../node_modules/.pnpm/@manypkg+cli@0.23.0/node_modules/@manypkg/cli/src/upgrade.ts
4441
4456
  async function upgradeDependency([name, tag = "latest"]) {
4442
4457
  let { packages, tool, rootPackage, rootDir } = await (0, import_get_packages3.getPackages)(process.cwd());
4443
4458
  let isScope = name.startsWith("@") && !name.includes("/");
@@ -4529,7 +4544,7 @@ __name(getPackageInfo, "getPackageInfo");
4529
4544
  // src/manypkg/index.ts
4530
4545
  var import_get_packages4 = __toESM(require_manypkg_get_packages_cjs(), 1);
4531
4546
  import pLimit3 from "p-limit";
4532
- import spawn4 from "spawndamnit";
4547
+ import spawn from "spawndamnit";
4533
4548
  var defaultOptions = {
4534
4549
  defaultBranch: "main"
4535
4550
  };
@@ -4591,7 +4606,7 @@ async function execCmd(args) {
4591
4606
  let highestExitCode = 0;
4592
4607
  await Promise.all(packages.map((pkg) => {
4593
4608
  return execLimit(async () => {
4594
- const { code } = await spawn4(args[0], args.slice(1), {
4609
+ const { code } = await spawn(args[0], args.slice(1), {
4595
4610
  cwd: pkg.dir,
4596
4611
  stdio: "inherit"
4597
4612
  });
package/dist/index.cjs CHANGED
@@ -1316,8 +1316,8 @@ var transform = /* @__PURE__ */ __name((options) => {
1316
1316
  }, "transform");
1317
1317
 
1318
1318
  // src/codeowners/index.ts
1319
- var _fastglob = require('fast-glob');
1320
1319
  var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
1320
+ var _glob = require('glob');
1321
1321
  var _octokit = require('octokit');
1322
1322
 
1323
1323
  async function runCodeowners() {
@@ -1343,16 +1343,23 @@ async function runCodeowners() {
1343
1343
  `**/${specifiedPattern}`
1344
1344
  ];
1345
1345
  for (const pattern of patternsToCheck) {
1346
- foundMatchingFiles ||= _fastglob.sync.call(void 0, pattern, {
1346
+ const files = _glob.globSync.call(void 0, pattern, {
1347
1347
  ignore: [
1348
- "node_modules",
1349
- "dist",
1350
- "tmp",
1351
- ".git"
1348
+ "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}",
1349
+ "**/dist/**",
1350
+ "**/tmp/**",
1351
+ "**/node_modules/**",
1352
+ "**/.git/**",
1353
+ "**/.cache/**",
1354
+ "**/.nx/**"
1352
1355
  ],
1353
- cwd: _path.join.call(void 0, config.workspaceRoot),
1354
- onlyFiles: false
1355
- }).length > 0;
1356
+ withFileTypes: true,
1357
+ cwd: config.workspaceRoot
1358
+ });
1359
+ if (files.length > 0) {
1360
+ foundMatchingFiles = true;
1361
+ break;
1362
+ }
1356
1363
  }
1357
1364
  if (!foundMatchingFiles) {
1358
1365
  mismatchedPatterns.push(specifiedPattern);
package/dist/index.js CHANGED
@@ -1316,8 +1316,8 @@ var transform = /* @__PURE__ */ __name((options) => {
1316
1316
  }, "transform");
1317
1317
 
1318
1318
  // src/codeowners/index.ts
1319
- import { sync } from "fast-glob";
1320
1319
  import fs from "fs-extra";
1320
+ import { globSync } from "glob";
1321
1321
  import { Octokit } from "octokit";
1322
1322
  import { join as join3 } from "path";
1323
1323
  async function runCodeowners() {
@@ -1343,16 +1343,23 @@ async function runCodeowners() {
1343
1343
  `**/${specifiedPattern}`
1344
1344
  ];
1345
1345
  for (const pattern of patternsToCheck) {
1346
- foundMatchingFiles ||= sync(pattern, {
1346
+ const files = globSync(pattern, {
1347
1347
  ignore: [
1348
- "node_modules",
1349
- "dist",
1350
- "tmp",
1351
- ".git"
1348
+ "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}",
1349
+ "**/dist/**",
1350
+ "**/tmp/**",
1351
+ "**/node_modules/**",
1352
+ "**/.git/**",
1353
+ "**/.cache/**",
1354
+ "**/.nx/**"
1352
1355
  ],
1353
- cwd: join3(config.workspaceRoot),
1354
- onlyFiles: false
1355
- }).length > 0;
1356
+ withFileTypes: true,
1357
+ cwd: config.workspaceRoot
1358
+ });
1359
+ if (files.length > 0) {
1360
+ foundMatchingFiles = true;
1361
+ break;
1362
+ }
1356
1363
  }
1357
1364
  if (!foundMatchingFiles) {
1358
1365
  mismatchedPatterns.push(specifiedPattern);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/linting-tools",
3
- "version": "1.112.1",
3
+ "version": "1.112.2",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing various linting tools used to validate syntax, enforce design standards, and format code in a Storm workspace.",
6
6
  "repository": {
@@ -112,7 +112,6 @@
112
112
  "check-dependency-version-consistency": "4.1.0",
113
113
  "commander": "^12.1.0",
114
114
  "dpdm": "3.14.0",
115
- "fast-glob": "3.3.2",
116
115
  "fs-extra": "11.2.0",
117
116
  "octokit": "4.0.2",
118
117
  "p-limit": "5.0.0",
@@ -132,10 +131,11 @@
132
131
  "vfile-reporter": "8.1.1"
133
132
  },
134
133
  "devDependencies": {
135
- "@manypkg/cli": "0.21.4",
134
+ "@manypkg/cli": "0.23.0",
136
135
  "@manypkg/get-packages": "2.2.1",
137
136
  "@types/node": "^22.10.2",
138
137
  "cspell": "8.8.4",
138
+ "glob": "^11.0.1",
139
139
  "tsup": "8.3.5"
140
140
  },
141
141
  "publishConfig": { "access": "public" }