@storm-software/linting-tools 1.134.83 → 1.134.84

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.
Files changed (3) hide show
  1. package/bin/lint.cjs +56 -37
  2. package/bin/lint.js +20 -1
  3. package/package.json +2 -2
package/bin/lint.cjs CHANGED
@@ -1340,7 +1340,7 @@ Stacktrace: ${error2 && typeof error2 === "object" && "stack" in error2 && _opti
1340
1340
  var _child_process = require('child_process');
1341
1341
  var LARGE_BUFFER = 1024 * 1e6;
1342
1342
  var runAsync = (config, command, cwd = _nullishCoalesce(config.workspaceRoot, () => ( process.cwd())), env = process.env) => {
1343
- return _child_process.exec.call(void 0, command, {
1343
+ const child = _child_process.exec.call(void 0, command, {
1344
1344
  cwd,
1345
1345
  env: {
1346
1346
  ...process.env,
@@ -1353,6 +1353,25 @@ var runAsync = (config, command, cwd = _nullishCoalesce(config.workspaceRoot, ()
1353
1353
  killSignal: "SIGTERM",
1354
1354
  encoding: "utf8"
1355
1355
  });
1356
+ _optionalChain([child, 'access', _41 => _41.stdout, 'optionalAccess', _42 => _42.pipe, 'call', _43 => _43(process.stdout)]);
1357
+ _optionalChain([child, 'access', _44 => _44.stderr, 'optionalAccess', _45 => _45.pipe, 'call', _46 => _46(process.stderr)]);
1358
+ const done = new Promise((resolve2, reject) => {
1359
+ child.once("error", reject);
1360
+ child.once("close", (code) => {
1361
+ if (code === 0) {
1362
+ resolve2();
1363
+ return;
1364
+ }
1365
+ reject(
1366
+ new Error(`Command failed with exit code ${_nullishCoalesce(code, () => ( "null"))}: ${command}`)
1367
+ );
1368
+ });
1369
+ });
1370
+ return Object.assign(child, {
1371
+ then: done.then.bind(done),
1372
+ catch: done.catch.bind(done),
1373
+ finally: done.finally.bind(done)
1374
+ });
1356
1375
  };
1357
1376
 
1358
1377
  // ../config-tools/src/config-file/get-config-file.ts
@@ -1363,7 +1382,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
1363
1382
  cwd: workspacePath,
1364
1383
  packageJson: true,
1365
1384
  name: fileName,
1366
- envName: _optionalChain([fileName, 'optionalAccess', _41 => _41.toUpperCase, 'call', _42 => _42()]),
1385
+ envName: _optionalChain([fileName, 'optionalAccess', _47 => _47.toUpperCase, 'call', _48 => _48()]),
1367
1386
  jitiOptions: {
1368
1387
  debug: false,
1369
1388
  fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
@@ -1377,7 +1396,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
1377
1396
  cwd: workspacePath,
1378
1397
  packageJson: true,
1379
1398
  name: fileName,
1380
- envName: _optionalChain([fileName, 'optionalAccess', _43 => _43.toUpperCase, 'call', _44 => _44()]),
1399
+ envName: _optionalChain([fileName, 'optionalAccess', _49 => _49.toUpperCase, 'call', _50 => _50()]),
1381
1400
  jitiOptions: {
1382
1401
  debug: false,
1383
1402
  fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
@@ -1411,7 +1430,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
1411
1430
  )
1412
1431
  );
1413
1432
  for (const result2 of results) {
1414
- if (_optionalChain([result2, 'optionalAccess', _45 => _45.config]) && _optionalChain([result2, 'optionalAccess', _46 => _46.configFile]) && Object.keys(result2.config).length > 0) {
1433
+ if (_optionalChain([result2, 'optionalAccess', _51 => _51.config]) && _optionalChain([result2, 'optionalAccess', _52 => _52.configFile]) && Object.keys(result2.config).length > 0) {
1415
1434
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
1416
1435
  writeTrace(
1417
1436
  `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
@@ -1655,16 +1674,16 @@ var getBaseThemeColorsEnv = (prefix) => {
1655
1674
  var setExtensionEnv = (extensionName, extension) => {
1656
1675
  for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
1657
1676
  if (extension[key]) {
1658
- const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _47 => _47.replace, 'call', _48 => _48(
1677
+ const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _53 => _53.replace, 'call', _54 => _54(
1659
1678
  /([A-Z])+/g,
1660
- (input) => input ? _optionalChain([input, 'access', _49 => _49[0], 'optionalAccess', _50 => _50.toUpperCase, 'call', _51 => _51()]) + input.slice(1) : ""
1661
- ), 'access', _52 => _52.split, 'call', _53 => _53(/(?=[A-Z])|[.\-\s_]/), 'access', _54 => _54.map, 'call', _55 => _55((x) => x.toLowerCase())]), () => ( []));
1679
+ (input) => input ? _optionalChain([input, 'access', _55 => _55[0], 'optionalAccess', _56 => _56.toUpperCase, 'call', _57 => _57()]) + input.slice(1) : ""
1680
+ ), 'access', _58 => _58.split, 'call', _59 => _59(/(?=[A-Z])|[.\-\s_]/), 'access', _60 => _60.map, 'call', _61 => _61((x) => x.toLowerCase())]), () => ( []));
1662
1681
  let extensionKey;
1663
1682
  if (result.length === 0) {
1664
1683
  return;
1665
1684
  }
1666
1685
  if (result.length === 1) {
1667
- extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _56 => _56[0], 'optionalAccess', _57 => _57.toUpperCase, 'call', _58 => _58()]), () => ( ""));
1686
+ extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _62 => _62[0], 'optionalAccess', _63 => _63.toUpperCase, 'call', _64 => _64()]), () => ( ""));
1668
1687
  } else {
1669
1688
  extensionKey = result.reduce((ret, part) => {
1670
1689
  return `${ret}_${part.toLowerCase()}`;
@@ -1852,7 +1871,7 @@ var setConfigEnv = (config) => {
1852
1871
  process.env.NODE_ENV = config.mode;
1853
1872
  process.env.ENVIRONMENT = config.mode;
1854
1873
  }
1855
- if (_optionalChain([config, 'access', _59 => _59.colors, 'optionalAccess', _60 => _60.base, 'optionalAccess', _61 => _61.light]) || _optionalChain([config, 'access', _62 => _62.colors, 'optionalAccess', _63 => _63.base, 'optionalAccess', _64 => _64.dark])) {
1874
+ if (_optionalChain([config, 'access', _65 => _65.colors, 'optionalAccess', _66 => _66.base, 'optionalAccess', _67 => _67.light]) || _optionalChain([config, 'access', _68 => _68.colors, 'optionalAccess', _69 => _69.base, 'optionalAccess', _70 => _70.dark])) {
1856
1875
  for (const key of Object.keys(config.colors)) {
1857
1876
  setThemeColorsEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
1858
1877
  }
@@ -1913,7 +1932,7 @@ var setConfigEnv = (config) => {
1913
1932
  }
1914
1933
  };
1915
1934
  var setThemeColorsEnv = (prefix, config) => {
1916
- return _optionalChain([config, 'optionalAccess', _65 => _65.light, 'optionalAccess', _66 => _66.brand]) || _optionalChain([config, 'optionalAccess', _67 => _67.dark, 'optionalAccess', _68 => _68.brand]) ? setMultiThemeColorsEnv(prefix, config) : setSingleThemeColorsEnv(prefix, config);
1935
+ return _optionalChain([config, 'optionalAccess', _71 => _71.light, 'optionalAccess', _72 => _72.brand]) || _optionalChain([config, 'optionalAccess', _73 => _73.dark, 'optionalAccess', _74 => _74.brand]) ? setMultiThemeColorsEnv(prefix, config) : setSingleThemeColorsEnv(prefix, config);
1917
1936
  };
1918
1937
  var setSingleThemeColorsEnv = (prefix, config) => {
1919
1938
  if (config.dark) {
@@ -2037,7 +2056,7 @@ var _extension_cache = /* @__PURE__ */ new WeakMap();
2037
2056
  var _static_cache = void 0;
2038
2057
  var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
2039
2058
  let result;
2040
- if (!_optionalChain([_static_cache, 'optionalAccess', _69 => _69.data]) || !_optionalChain([_static_cache, 'optionalAccess', _70 => _70.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
2059
+ if (!_optionalChain([_static_cache, 'optionalAccess', _75 => _75.data]) || !_optionalChain([_static_cache, 'optionalAccess', _76 => _76.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
2041
2060
  let _workspaceRoot = workspaceRoot;
2042
2061
  if (!_workspaceRoot) {
2043
2062
  _workspaceRoot = findWorkspaceRoot();
@@ -2075,7 +2094,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
2075
2094
  result.workspaceRoot ??= _workspaceRoot;
2076
2095
  } catch (error2) {
2077
2096
  throw new Error(
2078
- `Failed to parse Storm Workspace configuration${_optionalChain([error2, 'optionalAccess', _71 => _71.message]) ? `: ${error2.message}` : ""}
2097
+ `Failed to parse Storm Workspace configuration${_optionalChain([error2, 'optionalAccess', _77 => _77.message]) ? `: ${error2.message}` : ""}
2079
2098
 
2080
2099
  Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
2081
2100
  configInput
@@ -2245,22 +2264,22 @@ function r2() {
2245
2264
  } catch (e29) {
2246
2265
  }
2247
2266
  try {
2248
- let t16 = _fs.readFileSync.call(void 0, _path.join.call(void 0, process.cwd(), ".git", "config"), "utf8"), r10 = _optionalChain([t16, 'access', _72 => _72.match, 'call', _73 => _73(/^\s*(?:github\.(?:oauth-token|token)|hub\.oauthtoken)\s*=\s*(?<token>\S[^\n\r]*)$/mu), 'optionalAccess', _74 => _74.groups, 'optionalAccess', _75 => _75.token, 'optionalAccess', _76 => _76.trim, 'call', _77 => _77()]);
2267
+ let t16 = _fs.readFileSync.call(void 0, _path.join.call(void 0, process.cwd(), ".git", "config"), "utf8"), r10 = _optionalChain([t16, 'access', _78 => _78.match, 'call', _79 => _79(/^\s*(?:github\.(?:oauth-token|token)|hub\.oauthtoken)\s*=\s*(?<token>\S[^\n\r]*)$/mu), 'optionalAccess', _80 => _80.groups, 'optionalAccess', _81 => _81.token, 'optionalAccess', _82 => _82.trim, 'call', _83 => _83()]);
2249
2268
  if (r10) return r10;
2250
2269
  let i5 = null;
2251
2270
  for (let e25 of t16.split(/\r?\n/u)) {
2252
2271
  let t17 = e25.trim(), n15 = t17.match(/^\[(?<name>[^\]]+)\]$/u);
2253
- if (_optionalChain([n15, 'optionalAccess', _78 => _78.groups])) {
2272
+ if (_optionalChain([n15, 'optionalAccess', _84 => _84.groups])) {
2254
2273
  i5 = n15.groups.name.toLowerCase();
2255
2274
  continue;
2256
2275
  }
2257
2276
  if (i5 === "github") {
2258
2277
  let e26 = t17.match(/^(?:oauth-token|token)\s*=\s*(?<val>\S[^\n\r]*)$/u);
2259
- if (_optionalChain([e26, 'optionalAccess', _79 => _79.groups, 'optionalAccess', _80 => _80.val])) return e26.groups.val.trim();
2278
+ if (_optionalChain([e26, 'optionalAccess', _85 => _85.groups, 'optionalAccess', _86 => _86.val])) return e26.groups.val.trim();
2260
2279
  }
2261
2280
  if (i5 === "hub") {
2262
2281
  let e26 = t17.match(/^oauthtoken\s*=\s*(?<val>\S[^\n\r]*)$/u);
2263
- if (_optionalChain([e26, 'optionalAccess', _81 => _81.groups, 'optionalAccess', _82 => _82.val])) return e26.groups.val.trim();
2282
+ if (_optionalChain([e26, 'optionalAccess', _87 => _87.groups, 'optionalAccess', _88 => _88.val])) return e26.groups.val.trim();
2264
2283
  }
2265
2284
  }
2266
2285
  } catch (e30) {
@@ -2388,7 +2407,7 @@ async function n5(n15, i4) {
2388
2407
  if (i6 && r9 === "tag") try {
2389
2408
  let r10 = (await t5(n15, `/repos/${t16}/${a3}/git/tags/${i6}`)).data;
2390
2409
  u3 = _nullishCoalesce(r10.object.sha, () => ( i6));
2391
- let s7 = _optionalChain([r10, 'access', _83 => _83.tagger, 'optionalAccess', _84 => _84.date]);
2410
+ let s7 = _optionalChain([r10, 'access', _89 => _89.tagger, 'optionalAccess', _90 => _90.date]);
2392
2411
  !o5 && s7 && (o5 = new Date(s7)), !l5 && typeof r10.message == "string" && ({ message: l5 } = r10);
2393
2412
  } catch (e33) {
2394
2413
  u3 = i6;
@@ -2396,7 +2415,7 @@ async function n5(n15, i4) {
2396
2415
  else if (i6 && r9 === "commit" && (u3 = i6, !o5 || !l5)) try {
2397
2416
  let { message: r10, author: s7 } = (await t5(n15, `/repos/${t16}/${a3}/git/commits/${i6}`)).data;
2398
2417
  !l5 && typeof r10 == "string" && (l5 = r10);
2399
- let c5 = _optionalChain([s7, 'optionalAccess', _85 => _85.date]);
2418
+ let c5 = _optionalChain([s7, 'optionalAccess', _91 => _91.date]);
2400
2419
  !o5 && c5 && (o5 = new Date(c5));
2401
2420
  } catch (e34) {
2402
2421
  }
@@ -2526,7 +2545,7 @@ function s(s6) {
2526
2545
  // ../../node_modules/.pnpm/actions-up@1.14.3_patch_hash=32dd3e797cb77f0406d81b94e597936599efa23c9bcf8f982de295457d4be41e/node_modules/actions-up/dist/core/api/check-updates.js
2527
2546
 
2528
2547
  async function a(t16, a3, s6) {
2529
- let d2 = _nullishCoalesce(_optionalChain([s6, 'optionalAccess', _86 => _86.client]), () => ( s(a3))), f2 = _nullishCoalesce(_optionalChain([s6, 'optionalAccess', _87 => _87.includeBranches]), () => ( false)), p2 = _nullishCoalesce(_optionalChain([s6, 'optionalAccess', _88 => _88.style]), () => ( "sha")), m2 = t16.filter((e25) => e25.type === "external" || e25.type === "reusable-workflow");
2548
+ let d2 = _nullishCoalesce(_optionalChain([s6, 'optionalAccess', _92 => _92.client]), () => ( s(a3))), f2 = _nullishCoalesce(_optionalChain([s6, 'optionalAccess', _93 => _93.includeBranches]), () => ( false)), p2 = _nullishCoalesce(_optionalChain([s6, 'optionalAccess', _94 => _94.style]), () => ( "sha")), m2 = t16.filter((e25) => e25.type === "external" || e25.type === "reusable-workflow");
2530
2549
  if (m2.length === 0) return [];
2531
2550
  let h = /* @__PURE__ */ new Map();
2532
2551
  for (let e25 of m2) {
@@ -2561,7 +2580,7 @@ async function a(t16, a3, s6) {
2561
2580
  sha: null
2562
2581
  }];
2563
2582
  try {
2564
- let a5 = _optionalChain([h, 'access', _89 => _89.get, 'call', _90 => _90(r9), 'access', _91 => _91[0], 'optionalAccess', _92 => _92.version]), p3 = l(a5);
2583
+ let a5 = _optionalChain([h, 'access', _95 => _95.get, 'call', _96 => _96(r9), 'access', _97 => _97[0], 'optionalAccess', _98 => _98.version]), p3 = l(a5);
2565
2584
  if (a5 && !c(a5) && !e2(a5)) {
2566
2585
  let e25 = await d2.getRefType(o4, s7, a5);
2567
2586
  if (p3 = e25 === "branch" || e25 === "tag" ? e25 : p3, e25 === "branch" && !f2) return [...t18, {
@@ -2601,7 +2620,7 @@ async function a(t16, a3, s6) {
2601
2620
  });
2602
2621
  let e25 = l6[0].raw, a8 = semver.default.valid(_nullishCoalesce(t3(c4), () => ( void 0)));
2603
2622
  if (!a8 || semver.default.gt(l6[0].v, a8) || semver.default.eq(l6[0].v, a8) && /\d+\.\d+/u.test(e25.tag)) {
2604
- let n15 = e25.tag, i4 = _optionalChain([e25, 'access', _93 => _93.sha, 'optionalAccess', _94 => _94.length]) ? e25.sha : null;
2623
+ let n15 = e25.tag, i4 = _optionalChain([e25, 'access', _99 => _99.sha, 'optionalAccess', _100 => _100.length]) ? e25.sha : null;
2605
2624
  if (!i4 && n15) try {
2606
2625
  i4 = await d2.getTagSha(o4, s7, n15);
2607
2626
  } catch (e26) {
@@ -2648,7 +2667,7 @@ async function a(t16, a3, s6) {
2648
2667
  let r10 = +!!/\d+\.\d+/u.test(e25.raw.tag);
2649
2668
  return +!!/\d+\.\d+/u.test(t19.raw.tag) - r10;
2650
2669
  }), c4 = a6[0].raw) : c4 = g2[0];
2651
- let l5 = c4.tag, f3 = _optionalChain([c4, 'access', _95 => _95.sha, 'optionalAccess', _96 => _96.length]) ? c4.sha : null;
2670
+ let l5 = c4.tag, f3 = _optionalChain([c4, 'access', _101 => _101.sha, 'optionalAccess', _102 => _102.length]) ? c4.sha : null;
2652
2671
  if (!f3 && l5) try {
2653
2672
  f3 = await d2.getTagSha(o4, s7, l5);
2654
2673
  } catch (e25) {
@@ -2875,7 +2894,7 @@ function s3(s6) {
2875
2894
  if (typeof s7 != "object" || !s7 || Array.isArray(s7)) continue;
2876
2895
  let c5 = s7;
2877
2896
  if (typeof c5.uses != "string") continue;
2878
- let p2 = t16.items.find((e25) => e15(e25) && e13(e25.key) && e25.key.value === "uses"), m2 = _optionalChain([p2, 'optionalAccess', _97 => _97.key]) ? t8(u3, p2.key) : 0, h = e10(c5.uses, l5, m2);
2897
+ let p2 = t16.items.find((e25) => e15(e25) && e13(e25.key) && e25.key.value === "uses"), m2 = _optionalChain([p2, 'optionalAccess', _103 => _103.key]) ? t8(u3, p2.key) : 0, h = e10(c5.uses, l5, m2);
2879
2898
  h && (d2 && (h.job = d2), f2.push(h));
2880
2899
  }
2881
2900
  return f2;
@@ -2891,11 +2910,11 @@ function a2(a3, o4, s6) {
2891
2910
  let c4 = a3.toJSON();
2892
2911
  if (!e7(c4) || !a3.contents || !e9(a3.contents)) return [];
2893
2912
  let l5 = r6(a3.contents, "runs");
2894
- if (!_optionalChain([l5, 'optionalAccess', _98 => _98.value]) || !e9(l5.value)) return [];
2913
+ if (!_optionalChain([l5, 'optionalAccess', _104 => _104.value]) || !e9(l5.value)) return [];
2895
2914
  let u3 = c4.runs;
2896
2915
  if (!u3 || !e8(u3) || !u3.steps || !Array.isArray(u3.steps)) return [];
2897
2916
  let d2 = r6(l5.value, "steps");
2898
- return _optionalChain([d2, 'optionalAccess', _99 => _99.value]) ? s3({
2917
+ return _optionalChain([d2, 'optionalAccess', _105 => _105.value]) ? s3({
2899
2918
  stepsNode: d2.value,
2900
2919
  filePath: s6,
2901
2920
  content: o4
@@ -2922,17 +2941,17 @@ function e17(e25) {
2922
2941
  function l2(l5, u3, d2) {
2923
2942
  if (!e16(l5.toJSON()) || !l5.contents || !e9(l5.contents)) return [];
2924
2943
  let f2 = r6(l5.contents, "jobs");
2925
- if (!_optionalChain([f2, 'optionalAccess', _100 => _100.value]) || !e9(f2.value)) return [];
2944
+ if (!_optionalChain([f2, 'optionalAccess', _106 => _106.value]) || !e9(f2.value)) return [];
2926
2945
  let p2 = [];
2927
2946
  for (let c4 of f2.value.items) {
2928
2947
  if (!e15(c4) || !c4.value || !e14(c4.value) || !e9(c4.value)) continue;
2929
2948
  let l6 = e13(c4.key) ? String(c4.key.value) : void 0, f3 = r6(c4.value, "uses");
2930
- if (_optionalChain([f3, 'optionalAccess', _101 => _101.value]) && f3.key && e13(f3.value)) {
2949
+ if (_optionalChain([f3, 'optionalAccess', _107 => _107.value]) && f3.key && e13(f3.value)) {
2931
2950
  let n15 = e10(String(f3.value.value), d2, t8(u3, f3.key));
2932
2951
  n15 && (l6 && (n15.job = l6), p2.push(n15));
2933
2952
  }
2934
2953
  let m2 = r6(c4.value, "steps");
2935
- _optionalChain([m2, 'optionalAccess', _102 => _102.value]) && p2.push(...s3({
2954
+ _optionalChain([m2, 'optionalAccess', _108 => _108.value]) && p2.push(...s3({
2936
2955
  stepsNode: m2.value,
2937
2956
  filePath: d2,
2938
2957
  content: u3,
@@ -2983,12 +3002,12 @@ function e20(e25) {
2983
3002
  async function t12(t16, n15, r9) {
2984
3003
  try {
2985
3004
  if (!t16 || !n15 || n15 <= 0) return null;
2986
- let i4 = _optionalChain([r9, 'optionalAccess', _103 => _103.get, 'call', _104 => _104(t16)]);
3005
+ let i4 = _optionalChain([r9, 'optionalAccess', _109 => _109.get, 'call', _110 => _110(t16)]);
2987
3006
  i4 === void 0 && (i4 = await _promises.readFile.call(void 0, t16, "utf8"), r9 && r9.set(t16, i4));
2988
3007
  let a3 = i4.split("\n"), o4 = n15 - 1;
2989
3008
  if (o4 < 0 || o4 >= a3.length) return null;
2990
3009
  let s6 = a3[o4].match(/#\s*(?<version>[Vv]?\d+(?:\.\d+){0,2}(?:[+-][\w\-.]+)?)/u);
2991
- if (_optionalChain([s6, 'optionalAccess', _105 => _105.groups, 'optionalAccess', _106 => _106.version])) return s6.groups.version;
3010
+ if (_optionalChain([s6, 'optionalAccess', _111 => _111.groups, 'optionalAccess', _112 => _112.version])) return s6.groups.version;
2992
3011
  } catch (e40) {
2993
3012
  }
2994
3013
  return null;
@@ -3160,10 +3179,10 @@ async function m(e25) {
3160
3179
  let t16 = process.env.GITHUB_REPOSITORY;
3161
3180
  if (t16 && /^[^\s/]+\/[^\s/]+$/u.test(t16)) return t16;
3162
3181
  try {
3163
- let t17 = await _promises.readFile.call(void 0, _path.join.call(void 0, e25, ".git", "config"), "utf8"), n15 = _optionalChain([t17, 'access', _107 => _107.match, 'call', _108 => _108(/\[remote "origin"\][\s\S]*?url\s*=\s*(?<url>.+)/u), 'optionalAccess', _109 => _109.groups, 'optionalAccess', _110 => _110.url, 'optionalAccess', _111 => _111.trim, 'call', _112 => _112()]);
3164
- if (n15 ||= _optionalChain([t17, 'access', _113 => _113.match, 'call', _114 => _114(/url\s*=\s*(?<url>.+)/u), 'optionalAccess', _115 => _115.groups, 'optionalAccess', _116 => _116.url, 'optionalAccess', _117 => _117.trim, 'call', _118 => _118()]), !n15) return null;
3182
+ let t17 = await _promises.readFile.call(void 0, _path.join.call(void 0, e25, ".git", "config"), "utf8"), n15 = _optionalChain([t17, 'access', _113 => _113.match, 'call', _114 => _114(/\[remote "origin"\][\s\S]*?url\s*=\s*(?<url>.+)/u), 'optionalAccess', _115 => _115.groups, 'optionalAccess', _116 => _116.url, 'optionalAccess', _117 => _117.trim, 'call', _118 => _118()]);
3183
+ if (n15 ||= _optionalChain([t17, 'access', _119 => _119.match, 'call', _120 => _120(/url\s*=\s*(?<url>.+)/u), 'optionalAccess', _121 => _121.groups, 'optionalAccess', _122 => _122.url, 'optionalAccess', _123 => _123.trim, 'call', _124 => _124()]), !n15) return null;
3165
3184
  let r9 = n15.match(/github\.com[/:](?<owner>[^/]+)\/(?<repo>[^./]+)(?:\.git)?$/u);
3166
- if (_optionalChain([r9, 'optionalAccess', _119 => _119.groups])) return `${r9.groups.owner}/${r9.groups.repo}`;
3185
+ if (_optionalChain([r9, 'optionalAccess', _125 => _125.groups])) return `${r9.groups.owner}/${r9.groups.repo}`;
3167
3186
  } catch (e54) {
3168
3187
  }
3169
3188
  return null;
@@ -3214,7 +3233,7 @@ async function n13(n15, r9) {
3214
3233
  }
3215
3234
  let p2 = r8(f2, i4, o4);
3216
3235
  if (!p2) return null;
3217
- let m2 = p2.tag, h = _optionalChain([p2, 'access', _120 => _120.sha, 'optionalAccess', _121 => _121.length]) ? p2.sha : null;
3236
+ let m2 = p2.tag, h = _optionalChain([p2, 'access', _126 => _126.sha, 'optionalAccess', _127 => _127.length]) ? p2.sha : null;
3218
3237
  if (!h) {
3219
3238
  let e25 = `${a3}@${m2}`;
3220
3239
  if (d2.has(e25)) return {
@@ -4100,7 +4119,7 @@ var UNSORTED_DEPENDENCIES = makeCheck({
4100
4119
  var INCORRECT_REPOSITORY_FIELD = makeCheck({
4101
4120
  type: "all",
4102
4121
  validate: (workspace, allWorkspaces, rootWorkspace, options) => {
4103
- let rootRepositoryField = _optionalChain([rootWorkspace, 'optionalAccess', _122 => _122.packageJson, 'optionalAccess', _123 => _123.repository]);
4122
+ let rootRepositoryField = _optionalChain([rootWorkspace, 'optionalAccess', _128 => _128.packageJson, 'optionalAccess', _129 => _129.repository]);
4104
4123
  if (typeof rootRepositoryField === "string") {
4105
4124
  let result = _parsegithuburl2.default.call(void 0, rootRepositoryField);
4106
4125
  if (result !== null && (result.host === "github.com" || result.host === "dev.azure.com")) {
@@ -4502,7 +4521,7 @@ async function runManypkg(config, manypkgType = "fix", manypkgArgs) {
4502
4521
  const options = {
4503
4522
  defaultBranch: "main",
4504
4523
  workspaceProtocol: "require",
4505
- ..._optionalChain([rootPackage, 'optionalAccess', _124 => _124.packageJson, 'access', _125 => _125.manypkg])
4524
+ ..._optionalChain([rootPackage, 'optionalAccess', _130 => _130.packageJson, 'access', _131 => _131.manypkg])
4506
4525
  };
4507
4526
  const packagesByName = new Map(
4508
4527
  packages.map((x) => [x.packageJson.name, x])
@@ -5010,7 +5029,7 @@ void (async () => {
5010
5029
  } catch (error2) {
5011
5030
  writeFatal(
5012
5031
  `A fatal error occurred while running the Storm Lint tool:
5013
- ${_optionalChain([error2, 'optionalAccess', _126 => _126.message]) ? error2.message : JSON.stringify(error2)}${_optionalChain([error2, 'optionalAccess', _127 => _127.stack]) ? `
5032
+ ${_optionalChain([error2, 'optionalAccess', _132 => _132.message]) ? error2.message : JSON.stringify(error2)}${_optionalChain([error2, 'optionalAccess', _133 => _133.stack]) ? `
5014
5033
  Stack Trace: ${error2.stack}` : ""}`,
5015
5034
  config
5016
5035
  );
package/bin/lint.js CHANGED
@@ -1340,7 +1340,7 @@ Stacktrace: ${error2 && typeof error2 === "object" && "stack" in error2 && error
1340
1340
  import { exec, execSync } from "node:child_process";
1341
1341
  var LARGE_BUFFER = 1024 * 1e6;
1342
1342
  var runAsync = (config, command, cwd = config.workspaceRoot ?? process.cwd(), env = process.env) => {
1343
- return exec(command, {
1343
+ const child = exec(command, {
1344
1344
  cwd,
1345
1345
  env: {
1346
1346
  ...process.env,
@@ -1353,6 +1353,25 @@ var runAsync = (config, command, cwd = config.workspaceRoot ?? process.cwd(), en
1353
1353
  killSignal: "SIGTERM",
1354
1354
  encoding: "utf8"
1355
1355
  });
1356
+ child.stdout?.pipe(process.stdout);
1357
+ child.stderr?.pipe(process.stderr);
1358
+ const done = new Promise((resolve2, reject) => {
1359
+ child.once("error", reject);
1360
+ child.once("close", (code) => {
1361
+ if (code === 0) {
1362
+ resolve2();
1363
+ return;
1364
+ }
1365
+ reject(
1366
+ new Error(`Command failed with exit code ${code ?? "null"}: ${command}`)
1367
+ );
1368
+ });
1369
+ });
1370
+ return Object.assign(child, {
1371
+ then: done.then.bind(done),
1372
+ catch: done.catch.bind(done),
1373
+ finally: done.finally.bind(done)
1374
+ });
1356
1375
  };
1357
1376
 
1358
1377
  // ../config-tools/src/config-file/get-config-file.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/linting-tools",
3
- "version": "1.134.83",
3
+ "version": "1.134.84",
4
4
  "private": false,
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
  "keywords": [
@@ -162,5 +162,5 @@
162
162
  "tsup": "8.4.0"
163
163
  },
164
164
  "publishConfig": { "access": "public" },
165
- "gitHead": "7a502e974b390096b201737b87f85e793499bad2"
165
+ "gitHead": "669ee54da1367f7049b6e5b5f6e27ab208940a47"
166
166
  }