uilint 0.2.76 → 0.2.77

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.
@@ -3424,17 +3424,27 @@ ${semanticCat?.icon ?? "\u{1F9E0}"} ${semanticCat?.name ?? "Semantic rules"} (${
3424
3424
  type: "create_directory",
3425
3425
  path: rulesDir
3426
3426
  });
3427
+ const ruleNpmDeps = /* @__PURE__ */ new Set();
3428
+ for (const cr of configuredRules) {
3429
+ if (cr.rule.npmDependencies) {
3430
+ for (const dep of cr.rule.npmDependencies) {
3431
+ ruleNpmDeps.add(dep);
3432
+ }
3433
+ }
3434
+ }
3435
+ const packages = [
3436
+ toInstallSpecifier("uilint-eslint", {
3437
+ preferWorkspaceProtocol: project.packageManager === "pnpm",
3438
+ workspaceRoot: project.workspaceRoot,
3439
+ targetProjectPath: target.path
3440
+ }),
3441
+ "typescript-eslint",
3442
+ ...ruleNpmDeps
3443
+ ];
3427
3444
  dependencies.push({
3428
3445
  packagePath: target.path,
3429
3446
  packageManager: detectPackageManager(target.path),
3430
- packages: [
3431
- toInstallSpecifier("uilint-eslint", {
3432
- preferWorkspaceProtocol: project.packageManager === "pnpm",
3433
- workspaceRoot: project.workspaceRoot,
3434
- targetProjectPath: target.path
3435
- }),
3436
- "typescript-eslint"
3437
- ]
3447
+ packages
3438
3448
  });
3439
3449
  actions.push({
3440
3450
  type: "inject_eslint",
@@ -4008,4 +4018,4 @@ export {
4008
4018
  analyze,
4009
4019
  execute
4010
4020
  };
4011
- //# sourceMappingURL=chunk-HASWEVZP.js.map
4021
+ //# sourceMappingURL=chunk-EBKSYMP2.js.map