@storm-software/linting-tools 1.115.8 → 1.115.9

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/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-1.115.6-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-1.115.8-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/bin/lint.cjs CHANGED
@@ -344676,6 +344676,25 @@ Stacktrace: ${error2.stack}`, config);
344676
344676
  });
344677
344677
  }, "handleProcess");
344678
344678
 
344679
+ // ../config-tools/src/utilities/run.ts
344680
+ _chunkYI2KVYANcjs.init_cjs_shims.call(void 0, );
344681
+ var _child_process = require('child_process');
344682
+ var LARGE_BUFFER = 1024 * 1e6;
344683
+ var runAsync = /* @__PURE__ */ _chunkYI2KVYANcjs.__name.call(void 0, (config, command, cwd2 = _nullishCoalesce(config.workspaceRoot, () => ( process.cwd())), env5 = process.env) => {
344684
+ return _child_process.exec.call(void 0, command, {
344685
+ cwd: cwd2,
344686
+ env: {
344687
+ ...process.env,
344688
+ ...env5,
344689
+ CLICOLOR: "true",
344690
+ FORCE_COLOR: "true"
344691
+ },
344692
+ windowsHide: true,
344693
+ maxBuffer: LARGE_BUFFER,
344694
+ killSignal: "SIGTERM"
344695
+ });
344696
+ }, "runAsync");
344697
+
344679
344698
  // ../config-tools/src/config-file/get-config-file.ts
344680
344699
  var getConfigFileByName = /* @__PURE__ */ _chunkYI2KVYANcjs.__name.call(void 0, async (fileName, filePath2, options = {}) => {
344681
344700
  const workspacePath = filePath2 || findWorkspaceRoot(filePath2);
@@ -416337,7 +416356,7 @@ var MANY_PKG_TYPE_OPTIONS = [
416337
416356
  "upgrade",
416338
416357
  "npm-tag"
416339
416358
  ];
416340
- async function runManypkg(manypkgType = "fix", manypkgArgs) {
416359
+ async function runManypkg(config, manypkgType = "fix", manypkgArgs) {
416341
416360
  if (manypkgType === "exec") {
416342
416361
  return execCmd(manypkgArgs.slice(0));
416343
416362
  }
@@ -416375,7 +416394,8 @@ async function runManypkg(manypkgType = "fix", manypkgArgs) {
416375
416394
  writePackage(workspace);
416376
416395
  }));
416377
416396
  if (requiresInstall) {
416378
- await install("pnpm", rootDir);
416397
+ console.log(`Running install in ${rootDir}...`);
416398
+ await runAsync(config, "pnpm install --no-frozen-lockfile", rootDir);
416379
416399
  }
416380
416400
  if (hasErrored) {
416381
416401
  console.log("\u{1F389} Fixed workspace packages!");
@@ -416570,7 +416590,7 @@ async function circularDepsAction() {
416570
416590
  transform: true,
416571
416591
  skipDynamicImports: false
416572
416592
  }), true);
416573
- if (circulars.length > 0) {
416593
+ if (circulars && circulars.length > 0) {
416574
416594
  throw new Error((0, lib_exports2.prettyCircular)(circulars, "Circular dependencies found in this Storm workspace: \n"));
416575
416595
  }
416576
416596
  writeSuccess("Circular dependency linting is complete \u2705", _config);
@@ -416588,7 +416608,7 @@ _chunkYI2KVYANcjs.__name.call(void 0, circularDepsAction, "circularDepsAction");
416588
416608
  async function manypkgAction({ manypkgType = "fix", manypkgArgs = [] }) {
416589
416609
  try {
416590
416610
  writeDebug("\u26A1 Linting the workspace's packages with Manypkg", _config);
416591
- await runManypkg(manypkgType, manypkgArgs);
416611
+ await runManypkg(_config, manypkgType, manypkgArgs);
416592
416612
  writeSuccess("Manypkg linting is complete \u2705", _config);
416593
416613
  } catch (e) {
416594
416614
  writeError(`Manypkg linting has failed \u274C
package/bin/lint.js CHANGED
@@ -344674,6 +344674,25 @@ Stacktrace: ${error2.stack}`, config);
344674
344674
  });
344675
344675
  }, "handleProcess");
344676
344676
 
344677
+ // ../config-tools/src/utilities/run.ts
344678
+ init_esm_shims();
344679
+ import { exec, execSync } from "node:child_process";
344680
+ var LARGE_BUFFER = 1024 * 1e6;
344681
+ var runAsync = /* @__PURE__ */ __name((config, command, cwd2 = config.workspaceRoot ?? process.cwd(), env5 = process.env) => {
344682
+ return exec(command, {
344683
+ cwd: cwd2,
344684
+ env: {
344685
+ ...process.env,
344686
+ ...env5,
344687
+ CLICOLOR: "true",
344688
+ FORCE_COLOR: "true"
344689
+ },
344690
+ windowsHide: true,
344691
+ maxBuffer: LARGE_BUFFER,
344692
+ killSignal: "SIGTERM"
344693
+ });
344694
+ }, "runAsync");
344695
+
344677
344696
  // ../config-tools/src/config-file/get-config-file.ts
344678
344697
  var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath2, options = {}) => {
344679
344698
  const workspacePath = filePath2 || findWorkspaceRoot(filePath2);
@@ -416325,7 +416344,7 @@ var MANY_PKG_TYPE_OPTIONS = [
416325
416344
  "upgrade",
416326
416345
  "npm-tag"
416327
416346
  ];
416328
- async function runManypkg(manypkgType = "fix", manypkgArgs) {
416347
+ async function runManypkg(config, manypkgType = "fix", manypkgArgs) {
416329
416348
  if (manypkgType === "exec") {
416330
416349
  return execCmd(manypkgArgs.slice(0));
416331
416350
  }
@@ -416363,7 +416382,8 @@ async function runManypkg(manypkgType = "fix", manypkgArgs) {
416363
416382
  writePackage(workspace);
416364
416383
  }));
416365
416384
  if (requiresInstall) {
416366
- await install("pnpm", rootDir);
416385
+ console.log(`Running install in ${rootDir}...`);
416386
+ await runAsync(config, "pnpm install --no-frozen-lockfile", rootDir);
416367
416387
  }
416368
416388
  if (hasErrored) {
416369
416389
  console.log("\u{1F389} Fixed workspace packages!");
@@ -416558,7 +416578,7 @@ async function circularDepsAction() {
416558
416578
  transform: true,
416559
416579
  skipDynamicImports: false
416560
416580
  }), true);
416561
- if (circulars.length > 0) {
416581
+ if (circulars && circulars.length > 0) {
416562
416582
  throw new Error((0, lib_exports2.prettyCircular)(circulars, "Circular dependencies found in this Storm workspace: \n"));
416563
416583
  }
416564
416584
  writeSuccess("Circular dependency linting is complete \u2705", _config);
@@ -416576,7 +416596,7 @@ __name(circularDepsAction, "circularDepsAction");
416576
416596
  async function manypkgAction({ manypkgType = "fix", manypkgArgs = [] }) {
416577
416597
  try {
416578
416598
  writeDebug("\u26A1 Linting the workspace's packages with Manypkg", _config);
416579
- await runManypkg(manypkgType, manypkgArgs);
416599
+ await runManypkg(_config, manypkgType, manypkgArgs);
416580
416600
  writeSuccess("Manypkg linting is complete \u2705", _config);
416581
416601
  } catch (e) {
416582
416602
  writeError(`Manypkg linting has failed \u274C
package/dist/index.cjs CHANGED
@@ -344643,6 +344643,25 @@ var _isFunction = /* @__PURE__ */ _chunkYI2KVYANcjs.__name.call(void 0, (value2)
344643
344643
  }
344644
344644
  }, "_isFunction");
344645
344645
 
344646
+ // ../config-tools/src/utilities/run.ts
344647
+ _chunkYI2KVYANcjs.init_cjs_shims.call(void 0, );
344648
+ var _child_process = require('child_process');
344649
+ var LARGE_BUFFER = 1024 * 1e6;
344650
+ var runAsync = /* @__PURE__ */ _chunkYI2KVYANcjs.__name.call(void 0, (config, command, cwd2 = _nullishCoalesce(config.workspaceRoot, () => ( process.cwd())), env5 = process.env) => {
344651
+ return _child_process.exec.call(void 0, command, {
344652
+ cwd: cwd2,
344653
+ env: {
344654
+ ...process.env,
344655
+ ...env5,
344656
+ CLICOLOR: "true",
344657
+ FORCE_COLOR: "true"
344658
+ },
344659
+ windowsHide: true,
344660
+ maxBuffer: LARGE_BUFFER,
344661
+ killSignal: "SIGTERM"
344662
+ });
344663
+ }, "runAsync");
344664
+
344646
344665
  // ../config-tools/src/config-file/get-config-file.ts
344647
344666
  var getConfigFileByName = /* @__PURE__ */ _chunkYI2KVYANcjs.__name.call(void 0, async (fileName, filePath2, options = {}) => {
344648
344667
  const workspacePath = filePath2 || findWorkspaceRoot(filePath2);
@@ -416301,7 +416320,7 @@ var MANY_PKG_TYPE_OPTIONS = [
416301
416320
  "upgrade",
416302
416321
  "npm-tag"
416303
416322
  ];
416304
- async function runManypkg(manypkgType = "fix", manypkgArgs) {
416323
+ async function runManypkg(config, manypkgType = "fix", manypkgArgs) {
416305
416324
  if (manypkgType === "exec") {
416306
416325
  return execCmd(manypkgArgs.slice(0));
416307
416326
  }
@@ -416339,7 +416358,8 @@ async function runManypkg(manypkgType = "fix", manypkgArgs) {
416339
416358
  writePackage(workspace);
416340
416359
  }));
416341
416360
  if (requiresInstall) {
416342
- await install("pnpm", rootDir);
416361
+ console.log(`Running install in ${rootDir}...`);
416362
+ await runAsync(config, "pnpm install --no-frozen-lockfile", rootDir);
416343
416363
  }
416344
416364
  if (hasErrored) {
416345
416365
  console.log("\u{1F389} Fixed workspace packages!");
@@ -416534,7 +416554,7 @@ async function circularDepsAction() {
416534
416554
  transform: true,
416535
416555
  skipDynamicImports: false
416536
416556
  }), true);
416537
- if (circulars.length > 0) {
416557
+ if (circulars && circulars.length > 0) {
416538
416558
  throw new Error((0, lib_exports2.prettyCircular)(circulars, "Circular dependencies found in this Storm workspace: \n"));
416539
416559
  }
416540
416560
  writeSuccess("Circular dependency linting is complete \u2705", _config);
@@ -416552,7 +416572,7 @@ _chunkYI2KVYANcjs.__name.call(void 0, circularDepsAction, "circularDepsAction");
416552
416572
  async function manypkgAction({ manypkgType = "fix", manypkgArgs = [] }) {
416553
416573
  try {
416554
416574
  writeDebug("\u26A1 Linting the workspace's packages with Manypkg", _config);
416555
- await runManypkg(manypkgType, manypkgArgs);
416575
+ await runManypkg(_config, manypkgType, manypkgArgs);
416556
416576
  writeSuccess("Manypkg linting is complete \u2705", _config);
416557
416577
  } catch (e) {
416558
416578
  writeError(`Manypkg linting has failed \u274C
package/dist/index.js CHANGED
@@ -344641,6 +344641,25 @@ var _isFunction = /* @__PURE__ */ __name((value2) => {
344641
344641
  }
344642
344642
  }, "_isFunction");
344643
344643
 
344644
+ // ../config-tools/src/utilities/run.ts
344645
+ init_esm_shims();
344646
+ import { exec, execSync } from "node:child_process";
344647
+ var LARGE_BUFFER = 1024 * 1e6;
344648
+ var runAsync = /* @__PURE__ */ __name((config, command, cwd2 = config.workspaceRoot ?? process.cwd(), env5 = process.env) => {
344649
+ return exec(command, {
344650
+ cwd: cwd2,
344651
+ env: {
344652
+ ...process.env,
344653
+ ...env5,
344654
+ CLICOLOR: "true",
344655
+ FORCE_COLOR: "true"
344656
+ },
344657
+ windowsHide: true,
344658
+ maxBuffer: LARGE_BUFFER,
344659
+ killSignal: "SIGTERM"
344660
+ });
344661
+ }, "runAsync");
344662
+
344644
344663
  // ../config-tools/src/config-file/get-config-file.ts
344645
344664
  var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath2, options = {}) => {
344646
344665
  const workspacePath = filePath2 || findWorkspaceRoot(filePath2);
@@ -416289,7 +416308,7 @@ var MANY_PKG_TYPE_OPTIONS = [
416289
416308
  "upgrade",
416290
416309
  "npm-tag"
416291
416310
  ];
416292
- async function runManypkg(manypkgType = "fix", manypkgArgs) {
416311
+ async function runManypkg(config, manypkgType = "fix", manypkgArgs) {
416293
416312
  if (manypkgType === "exec") {
416294
416313
  return execCmd(manypkgArgs.slice(0));
416295
416314
  }
@@ -416327,7 +416346,8 @@ async function runManypkg(manypkgType = "fix", manypkgArgs) {
416327
416346
  writePackage(workspace);
416328
416347
  }));
416329
416348
  if (requiresInstall) {
416330
- await install("pnpm", rootDir);
416349
+ console.log(`Running install in ${rootDir}...`);
416350
+ await runAsync(config, "pnpm install --no-frozen-lockfile", rootDir);
416331
416351
  }
416332
416352
  if (hasErrored) {
416333
416353
  console.log("\u{1F389} Fixed workspace packages!");
@@ -416522,7 +416542,7 @@ async function circularDepsAction() {
416522
416542
  transform: true,
416523
416543
  skipDynamicImports: false
416524
416544
  }), true);
416525
- if (circulars.length > 0) {
416545
+ if (circulars && circulars.length > 0) {
416526
416546
  throw new Error((0, lib_exports2.prettyCircular)(circulars, "Circular dependencies found in this Storm workspace: \n"));
416527
416547
  }
416528
416548
  writeSuccess("Circular dependency linting is complete \u2705", _config);
@@ -416540,7 +416560,7 @@ __name(circularDepsAction, "circularDepsAction");
416540
416560
  async function manypkgAction({ manypkgType = "fix", manypkgArgs = [] }) {
416541
416561
  try {
416542
416562
  writeDebug("\u26A1 Linting the workspace's packages with Manypkg", _config);
416543
- await runManypkg(manypkgType, manypkgArgs);
416563
+ await runManypkg(_config, manypkgType, manypkgArgs);
416544
416564
  writeSuccess("Manypkg linting is complete \u2705", _config);
416545
416565
  } catch (e) {
416546
416566
  writeError(`Manypkg linting has failed \u274C
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/linting-tools",
3
- "version": "1.115.8",
3
+ "version": "1.115.9",
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": {
@@ -43,7 +43,7 @@
43
43
  "packageManager": "pnpm@9.15.2",
44
44
  "engines": { "node": ">=22.4.0", "pnpm": ">=9.15.2" },
45
45
  "bin": {
46
- "storm-lint": "./bin/lint.js",
46
+ "storm-lint": "./bin/lint.cjs",
47
47
  "storm-lint-esm": "./bin/lint.js",
48
48
  "storm-lint-cjs": "./bin/lint.cjs"
49
49
  },