@storm-software/workspace-tools 1.173.0 → 1.174.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 1.174.1 (2024-09-06)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **git-tools:** Resolved issue with missing command line arguments
6
+ ([59e26e31](https://github.com/storm-software/storm-ops/commit/59e26e31))
7
+
8
+ ## 1.174.0 (2024-09-06)
9
+
10
+ ### Features
11
+
12
+ - **git-tools:** Added logic to skip signing during CI workflows
13
+ ([4a7062ce](https://github.com/storm-software/storm-ops/commit/4a7062ce))
14
+
1
15
  ## 1.173.0 (2024-09-06)
2
16
 
3
17
  ### Features
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.172.1-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.174.1-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/index.js CHANGED
@@ -575080,7 +575080,7 @@ var require_eslint = __commonJS({
575080
575080
  "node_modules/.pnpm/eslint@9.5.0/node_modules/eslint/lib/eslint/eslint.js"(exports2, module2) {
575081
575081
  "use strict";
575082
575082
  var fs7 = require("node:fs/promises");
575083
- var { existsSync: existsSync9 } = require("node:fs");
575083
+ var { existsSync: existsSync10 } = require("node:fs");
575084
575084
  var path8 = require("node:path");
575085
575085
  var findUp = require_find_up();
575086
575086
  var { version: version3 } = require_package4();
@@ -575408,7 +575408,7 @@ var require_eslint = __commonJS({
575408
575408
  plugins
575409
575409
  });
575410
575410
  }
575411
- if (existsSync9(path8.resolve(processedOptions.cwd, ".eslintignore"))) {
575411
+ if (existsSync10(path8.resolve(processedOptions.cwd, ".eslintignore"))) {
575412
575412
  process.emitWarning(
575413
575413
  'The ".eslintignore" file is no longer supported. Switch to using the "ignores" property in "eslint.config.js": https://eslint.org/docs/latest/use/configure/migration-guide#ignoring-files',
575414
575414
  "ESLintIgnoreWarning"
@@ -575550,7 +575550,7 @@ var require_eslint = __commonJS({
575550
575550
  await fs7.unlink(cacheFilePath);
575551
575551
  } catch (error) {
575552
575552
  const errorCode = error && error.code;
575553
- if (errorCode !== "ENOENT" && !(errorCode === "EROFS" && !existsSync9(cacheFilePath))) {
575553
+ if (errorCode !== "ENOENT" && !(errorCode === "EROFS" && !existsSync10(cacheFilePath))) {
575554
575554
  throw error;
575555
575555
  }
575556
575556
  }
@@ -579438,7 +579438,7 @@ var require_lint_project = __commonJS({
579438
579438
  // node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/native.js
579439
579439
  var require_native = __commonJS({
579440
579440
  "node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/native.js"(exports2, module2) {
579441
- var { existsSync: existsSync9 } = require("node:fs");
579441
+ var { existsSync: existsSync10 } = require("node:fs");
579442
579442
  var path8 = require("node:path");
579443
579443
  var { platform: platform2, arch: arch2, report } = require("node:process");
579444
579444
  var isMusl = () => !report.getReport().header.glibcVersionRuntime;
@@ -579490,7 +579490,7 @@ var require_native = __commonJS({
579490
579490
  }
579491
579491
  };
579492
579492
  var { parse: parse8, parseAsync, xxhashBase64Url, xxhashBase36, xxhashBase16 } = requireWithFriendlyError(
579493
- existsSync9(path8.join(__dirname, localName)) ? localName : `@rollup/rollup-${packageBase}`
579493
+ existsSync10(path8.join(__dirname, localName)) ? localName : `@rollup/rollup-${packageBase}`
579494
579494
  );
579495
579495
  function getPackageBase() {
579496
579496
  const imported = bindingsByPlatformAndArch[platform2]?.[arch2];
@@ -673300,7 +673300,7 @@ var require_previous_map = __commonJS({
673300
673300
  "node_modules/.pnpm/postcss@8.4.40/node_modules/postcss/lib/previous-map.js"(exports2, module2) {
673301
673301
  "use strict";
673302
673302
  var { SourceMapConsumer, SourceMapGenerator } = require_source_map3();
673303
- var { existsSync: existsSync9, readFileSync: readFileSync4 } = require("fs");
673303
+ var { existsSync: existsSync10, readFileSync: readFileSync4 } = require("fs");
673304
673304
  var { dirname: dirname3, join: join10 } = require("path");
673305
673305
  function fromBase64(str) {
673306
673306
  if (Buffer) {
@@ -673360,7 +673360,7 @@ var require_previous_map = __commonJS({
673360
673360
  }
673361
673361
  loadFile(path8) {
673362
673362
  this.root = dirname3(path8);
673363
- if (existsSync9(path8)) {
673363
+ if (existsSync10(path8)) {
673364
673364
  this.mapFile = path8;
673365
673365
  return readFileSync4(path8, "utf-8").toString().trim();
673366
673366
  }
@@ -686458,7 +686458,7 @@ var require_cjs8 = __commonJS({
686458
686458
  }
686459
686459
  return mainFields;
686460
686460
  }
686461
- function getPackageInfo(options) {
686461
+ function getPackageInfo2(options) {
686462
686462
  const {
686463
686463
  cache: cache2,
686464
686464
  extensions,
@@ -686848,7 +686848,7 @@ var require_cjs8 = __commonJS({
686848
686848
  let packageBrowserField = false;
686849
686849
  let packageInfo;
686850
686850
  const filter2 = (pkg, pkgPath) => {
686851
- const info = getPackageInfo({
686851
+ const info = getPackageInfo2({
686852
686852
  cache: packageInfoCache,
686853
686853
  extensions,
686854
686854
  pkg,
@@ -686944,7 +686944,7 @@ var require_cjs8 = __commonJS({
686944
686944
  let packageBrowserField = false;
686945
686945
  let packageInfo;
686946
686946
  const filter2 = (pkg, pkgPath) => {
686947
- const info = getPackageInfo({
686947
+ const info = getPackageInfo2({
686948
686948
  cache: packageInfoCache,
686949
686949
  extensions,
686950
686950
  pkg,
@@ -819363,6 +819363,7 @@ __export(workspace_tools_exports, {
819363
819363
  NPM_LOCK_PATH: () => NPM_LOCK_PATH,
819364
819364
  PNPM_LOCK_FILE: () => PNPM_LOCK_FILE,
819365
819365
  PNPM_LOCK_PATH: () => PNPM_LOCK_PATH,
819366
+ PackageManagerTypes: () => PackageManagerTypes,
819366
819367
  ProjectTagConstants: () => ProjectTagConstants,
819367
819368
  YARN_LOCK_FILE: () => YARN_LOCK_FILE,
819368
819369
  YARN_LOCK_PATH: () => YARN_LOCK_PATH,
@@ -819385,6 +819386,7 @@ __export(workspace_tools_exports, {
819385
819386
  getLockFileName: () => getLockFileName,
819386
819387
  getLockFileNodes: () => getLockFileNodes,
819387
819388
  getOutputPath: () => getOutputPath,
819389
+ getPackageInfo: () => getPackageInfo,
819388
819390
  getProjectConfiguration: () => getProjectConfiguration,
819389
819391
  getProjectConfigurations: () => getProjectConfigurations,
819390
819392
  getProjectTag: () => getProjectTag,
@@ -829719,6 +829721,11 @@ async function* rollupExecutorFn(options, context, config) {
829719
829721
  options.additionalEntryPoints?.map(
829720
829722
  (entry) => correctPaths2((0, import_path.join)(workspaceRoot3, entry))
829721
829723
  ) ?? []
829724
+ ).map(
829725
+ (entry) => entry.replace(
829726
+ workspaceRoot3.endsWith("/") ? `${workspaceRoot3}/` : workspaceRoot3,
829727
+ ""
829728
+ )
829722
829729
  );
829723
829730
  }
829724
829731
  writeDebug2(
@@ -833469,6 +833476,10 @@ function isPostInstallProcess() {
833469
833476
  return process.env.npm_command === "install" && process.env.npm_lifecycle_event === "postinstall";
833470
833477
  }
833471
833478
 
833479
+ // packages/workspace-tools/src/utils/package-helpers.ts
833480
+ var import_devkit14 = require("@nx/devkit");
833481
+ var import_node_fs18 = require("node:fs");
833482
+
833472
833483
  // packages/workspace-tools/src/utils/project-tags.ts
833473
833484
  var ProjectTagConstants = {
833474
833485
  Language: {
@@ -833547,6 +833558,36 @@ var setDefaultProjectTags = (project) => {
833547
833558
  );
833548
833559
  };
833549
833560
 
833561
+ // packages/workspace-tools/src/utils/package-helpers.ts
833562
+ var PackageManagerTypes = {
833563
+ PackageJson: "package.json",
833564
+ CargoToml: "Cargo.toml"
833565
+ };
833566
+ var getPackageInfo = (project) => {
833567
+ if (isEqualProjectTag(
833568
+ project,
833569
+ ProjectTagConstants.Language.TAG_ID,
833570
+ ProjectTagConstants.Language.RUST
833571
+ ) && (0, import_node_fs18.existsSync)((0, import_devkit14.joinPathFragments)(project.root, "Cargo.toml"))) {
833572
+ return {
833573
+ type: "Cargo.toml",
833574
+ content: parseCargoToml((0, import_devkit14.joinPathFragments)(project.root, "Cargo.toml"))
833575
+ };
833576
+ } else if (isEqualProjectTag(
833577
+ project,
833578
+ ProjectTagConstants.Language.TAG_ID,
833579
+ ProjectTagConstants.Language.TYPESCRIPT
833580
+ ) && (0, import_node_fs18.existsSync)((0, import_devkit14.joinPathFragments)(project.root, "package.json"))) {
833581
+ return {
833582
+ type: "package.json",
833583
+ content: (0, import_devkit14.readJsonFile)(
833584
+ (0, import_devkit14.joinPathFragments)(project.root, "package.json")
833585
+ )
833586
+ };
833587
+ }
833588
+ return null;
833589
+ };
833590
+
833550
833591
  // packages/workspace-tools/src/utils/typia-transform.ts
833551
833592
  var import_transform = __toESM(require_transform3());
833552
833593
  var getTypiaTransform = (program, diagnostics) => (0, import_transform.default)(program, {}, { addDiagnostic: (input) => diagnostics.push(input) });
@@ -833560,6 +833601,7 @@ var getTypiaTransform = (program, diagnostics) => (0, import_transform.default)(
833560
833601
  NPM_LOCK_PATH,
833561
833602
  PNPM_LOCK_FILE,
833562
833603
  PNPM_LOCK_PATH,
833604
+ PackageManagerTypes,
833563
833605
  ProjectTagConstants,
833564
833606
  YARN_LOCK_FILE,
833565
833607
  YARN_LOCK_PATH,
@@ -833582,6 +833624,7 @@ var getTypiaTransform = (program, diagnostics) => (0, import_transform.default)(
833582
833624
  getLockFileName,
833583
833625
  getLockFileNodes,
833584
833626
  getOutputPath,
833627
+ getPackageInfo,
833585
833628
  getProjectConfiguration,
833586
833629
  getProjectConfigurations,
833587
833630
  getProjectTag,