@storm-software/build-tools 0.151.7 → 0.151.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.
Files changed (52) hide show
  1. package/README.md +1 -1
  2. package/dist/{chunk-MKL5Y27F.mjs → chunk-2XBT7L44.mjs} +14 -3
  3. package/dist/{chunk-NS4C45JM.mjs → chunk-46D6MNXS.mjs} +1 -1
  4. package/dist/{chunk-TN2GANQN.js → chunk-AF2TCIHF.js} +8 -8
  5. package/dist/{chunk-YKHCDDKA.mjs → chunk-AFBMMFQN.mjs} +1 -1
  6. package/dist/{chunk-SEERZ2JR.mjs → chunk-BLY6BYC6.mjs} +1 -1
  7. package/dist/{chunk-EYW3TTNG.mjs → chunk-ENFZY5GA.mjs} +1 -1
  8. package/dist/{chunk-6Y3B4IWQ.js → chunk-F4WUX2LJ.js} +2 -2
  9. package/dist/{chunk-SK2HHQ74.js → chunk-IVICX4OH.js} +8 -8
  10. package/dist/{chunk-JAKX4BFP.mjs → chunk-PJ5CGKV4.mjs} +1 -1
  11. package/dist/{chunk-UIODWJMU.js → chunk-PWWAXIKO.js} +10 -10
  12. package/dist/{chunk-UHSZT2UP.js → chunk-QEEDXYKL.js} +9 -9
  13. package/dist/{chunk-APEVCDWC.mjs → chunk-UC4C5SCY.mjs} +35 -3
  14. package/dist/{chunk-J6WEWRXQ.js → chunk-XBURNOOH.js} +89 -78
  15. package/dist/{chunk-2JOIQLII.js → chunk-Y4N6UQVD.js} +77 -45
  16. package/dist/index.d.mts +2 -2
  17. package/dist/index.d.ts +2 -2
  18. package/dist/index.js +8 -8
  19. package/dist/index.mjs +7 -7
  20. package/dist/plugins/analyze.js +3 -3
  21. package/dist/plugins/analyze.mjs +2 -2
  22. package/dist/plugins/index.js +4 -4
  23. package/dist/plugins/index.mjs +3 -3
  24. package/dist/plugins/ts-resolve.js +3 -3
  25. package/dist/plugins/ts-resolve.mjs +2 -2
  26. package/dist/types-B4rGVLza.d.mts +267 -0
  27. package/dist/types-B4rGVLza.d.ts +267 -0
  28. package/dist/types.d.mts +2 -2
  29. package/dist/types.d.ts +2 -2
  30. package/dist/utilities/copy-assets.d.mts +2 -2
  31. package/dist/utilities/copy-assets.d.ts +2 -2
  32. package/dist/utilities/copy-assets.js +3 -3
  33. package/dist/utilities/copy-assets.mjs +2 -2
  34. package/dist/utilities/generate-package-json.d.mts +2 -2
  35. package/dist/utilities/generate-package-json.d.ts +2 -2
  36. package/dist/utilities/generate-package-json.js +3 -3
  37. package/dist/utilities/generate-package-json.mjs +2 -2
  38. package/dist/utilities/get-entry-points.d.mts +2 -2
  39. package/dist/utilities/get-entry-points.d.ts +2 -2
  40. package/dist/utilities/get-entry-points.js +3 -3
  41. package/dist/utilities/get-entry-points.mjs +2 -2
  42. package/dist/utilities/get-env.d.mts +2 -2
  43. package/dist/utilities/get-env.d.ts +2 -2
  44. package/dist/utilities/index.d.mts +2 -2
  45. package/dist/utilities/index.d.ts +2 -2
  46. package/dist/utilities/index.js +6 -6
  47. package/dist/utilities/index.mjs +5 -5
  48. package/dist/utilities/read-nx-config.js +3 -3
  49. package/dist/utilities/read-nx-config.mjs +2 -2
  50. package/package.json +1 -1
  51. package/dist/types-BUGkxiRi.d.mts +0 -1292
  52. package/dist/types-BUGkxiRi.d.ts +0 -1292
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-0.151.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-0.151.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 -->
@@ -265,7 +265,7 @@ If this sounds interesting, and you would like to help us in creating the next g
265
265
  var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
266
266
 
267
267
  // ../config/src/schema.ts
268
- import z from "zod";
268
+ import * as z from "zod/v4";
269
269
  var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
270
270
  var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
271
271
  var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
@@ -406,6 +406,15 @@ var errorConfigSchema = z.object({
406
406
  "A URL to a page that looks up the workspace's error messages given a specific error code"
407
407
  )
408
408
  }).describe("The workspace's error config used during the error process");
409
+ var organizationConfigSchema = z.object({
410
+ name: z.string().trim().describe("The name of the organization"),
411
+ description: z.string().trim().optional().describe("A description of the organization"),
412
+ logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
413
+ icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
414
+ url: z.string().trim().url().optional().describe(
415
+ "A URL to a page that provides more information about the organization"
416
+ )
417
+ }).describe("The workspace's organization details");
409
418
  var stormWorkspaceConfigSchema = z.object({
410
419
  $schema: z.string().trim().default(
411
420
  "https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
@@ -417,7 +426,9 @@ var stormWorkspaceConfigSchema = z.object({
417
426
  "The name of the service/package/scope using this configuration"
418
427
  ),
419
428
  namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
420
- organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
429
+ organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
430
+ "The organization of the workspace. This can be a string or an object containing the organization's details"
431
+ ),
421
432
  repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
422
433
  license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
423
434
  homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
@@ -470,7 +481,7 @@ var stormWorkspaceConfigSchema = z.object({
470
481
  colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
471
482
  "Storm theme config values used for styling various package elements"
472
483
  ),
473
- extensions: z.record(z.any()).optional().default({}).describe("Configuration of each used extension")
484
+ extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
474
485
  }).describe(
475
486
  "Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
476
487
  );
@@ -2,7 +2,7 @@ import {
2
2
  joinPaths,
3
3
  writeDebug,
4
4
  writeTrace
5
- } from "./chunk-MKL5Y27F.mjs";
5
+ } from "./chunk-2XBT7L44.mjs";
6
6
 
7
7
  // src/utilities/copy-assets.ts
8
8
  import { CopyAssetsHandler } from "@nx/js/src/utils/assets/copy-assets-handler";
@@ -3,12 +3,12 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkJ6WEWRXQjs = require('./chunk-J6WEWRXQ.js');
6
+ var _chunkXBURNOOHjs = require('./chunk-XBURNOOH.js');
7
7
 
8
8
  // src/utilities/get-entry-points.ts
9
9
  var _glob = require('glob');
10
10
  var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
11
- const workspaceRoot = config.workspaceRoot || _chunkJ6WEWRXQjs.findWorkspaceRoot.call(void 0, );
11
+ const workspaceRoot = config.workspaceRoot || _chunkXBURNOOHjs.findWorkspaceRoot.call(void 0, );
12
12
  const entryPoints = [];
13
13
  if (entry) {
14
14
  if (typeof entry === "string") {
@@ -21,7 +21,7 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
21
21
  }
22
22
  if (emitOnAll) {
23
23
  entryPoints.push(
24
- _chunkJ6WEWRXQjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}")
24
+ _chunkXBURNOOHjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}")
25
25
  );
26
26
  }
27
27
  const results = await Promise.all(
@@ -34,12 +34,12 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
34
34
  });
35
35
  paths.push(
36
36
  ...files.reduce((ret, filePath) => {
37
- const result = _chunkJ6WEWRXQjs.correctPaths.call(void 0,
38
- _chunkJ6WEWRXQjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkJ6WEWRXQjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkJ6WEWRXQjs.correctPaths.call(void 0, projectRoot), "")
37
+ const result = _chunkXBURNOOHjs.correctPaths.call(void 0,
38
+ _chunkXBURNOOHjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkXBURNOOHjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkXBURNOOHjs.correctPaths.call(void 0, projectRoot), "")
39
39
  );
40
40
  if (result) {
41
- _chunkJ6WEWRXQjs.writeDebug.call(void 0,
42
- `Trying to add entry point ${result} at "${_chunkJ6WEWRXQjs.joinPaths.call(void 0,
41
+ _chunkXBURNOOHjs.writeDebug.call(void 0,
42
+ `Trying to add entry point ${result} at "${_chunkXBURNOOHjs.joinPaths.call(void 0,
43
43
  filePath.path,
44
44
  filePath.name
45
45
  )}"`,
@@ -53,7 +53,7 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
53
53
  }, [])
54
54
  );
55
55
  } else {
56
- _chunkJ6WEWRXQjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
56
+ _chunkXBURNOOHjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
57
57
  if (!paths.includes(entryPoint)) {
58
58
  paths.push(entryPoint);
59
59
  }
@@ -2,7 +2,7 @@ import {
2
2
  findWorkspaceRoot,
3
3
  joinPaths,
4
4
  writeTrace
5
- } from "./chunk-MKL5Y27F.mjs";
5
+ } from "./chunk-2XBT7L44.mjs";
6
6
 
7
7
  // src/utilities/generate-package-json.ts
8
8
  import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
@@ -3,7 +3,7 @@ import {
3
3
  findWorkspaceRoot,
4
4
  joinPaths,
5
5
  writeDebug
6
- } from "./chunk-MKL5Y27F.mjs";
6
+ } from "./chunk-2XBT7L44.mjs";
7
7
 
8
8
  // src/utilities/get-entry-points.ts
9
9
  import { glob } from "glob";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeInfo
3
- } from "./chunk-MKL5Y27F.mjs";
3
+ } from "./chunk-2XBT7L44.mjs";
4
4
 
5
5
  // src/plugins/analyze.ts
6
6
  var formatBytes = (bytes) => {
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkJ6WEWRXQjs = require('./chunk-J6WEWRXQ.js');
3
+ var _chunkXBURNOOHjs = require('./chunk-XBURNOOH.js');
4
4
 
5
5
  // src/plugins/analyze.ts
6
6
  var formatBytes = (bytes) => {
@@ -22,7 +22,7 @@ function analyze() {
22
22
  renderChunk(source, chunk) {
23
23
  const sourceBytes = formatBytes(source.length);
24
24
  const fileName = chunk.fileName;
25
- _chunkJ6WEWRXQjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`);
25
+ _chunkXBURNOOHjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`);
26
26
  }
27
27
  };
28
28
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkJ6WEWRXQjs = require('./chunk-J6WEWRXQ.js');
3
+ var _chunkXBURNOOHjs = require('./chunk-XBURNOOH.js');
4
4
 
5
5
  // src/plugins/ts-resolve.ts
6
6
  var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
@@ -26,8 +26,8 @@ var tsResolvePlugin = ({
26
26
  return {
27
27
  name: `storm:ts-resolve`,
28
28
  async resolveId(source, importer) {
29
- _chunkJ6WEWRXQjs.writeDebug.call(void 0, `ts-resolve - resolveId source: ${source}`);
30
- _chunkJ6WEWRXQjs.writeDebug.call(void 0, `ts-resolve - resolveId importer: ${importer}`);
29
+ _chunkXBURNOOHjs.writeDebug.call(void 0, `ts-resolve - resolveId source: ${source}`);
30
+ _chunkXBURNOOHjs.writeDebug.call(void 0, `ts-resolve - resolveId importer: ${importer}`);
31
31
  if (!importer) {
32
32
  return null;
33
33
  }
@@ -38,7 +38,7 @@ var tsResolvePlugin = ({
38
38
  return false;
39
39
  }
40
40
  if (ignore && ignore(source, importer)) {
41
- _chunkJ6WEWRXQjs.writeDebug.call(void 0, `ts-resolve - ignored ${source}`);
41
+ _chunkXBURNOOHjs.writeDebug.call(void 0, `ts-resolve - ignored ${source}`);
42
42
  return null;
43
43
  }
44
44
  if (resolveOnly) {
@@ -47,12 +47,12 @@ var tsResolvePlugin = ({
47
47
  return v.test(source);
48
48
  });
49
49
  if (!shouldResolve) {
50
- _chunkJ6WEWRXQjs.writeDebug.call(void 0, `ts-resolve - skipped by matching resolveOnly ${source}`);
50
+ _chunkXBURNOOHjs.writeDebug.call(void 0, `ts-resolve - skipped by matching resolveOnly ${source}`);
51
51
  return null;
52
52
  }
53
53
  }
54
54
  if (_path2.default.isAbsolute(source)) {
55
- _chunkJ6WEWRXQjs.writeDebug.call(void 0, `ts-resolve - skipped absolute path: ${source}`);
55
+ _chunkXBURNOOHjs.writeDebug.call(void 0, `ts-resolve - skipped absolute path: ${source}`);
56
56
  return null;
57
57
  }
58
58
  const basedir = importer ? await _fs2.default.promises.realpath(_path2.default.dirname(importer)) : process.cwd();
@@ -81,10 +81,10 @@ var tsResolvePlugin = ({
81
81
  });
82
82
  }
83
83
  if (id) {
84
- _chunkJ6WEWRXQjs.writeDebug.call(void 0, `ts-resolve - resolved ${source} to ${id}`);
84
+ _chunkXBURNOOHjs.writeDebug.call(void 0, `ts-resolve - resolved ${source} to ${id}`);
85
85
  return id;
86
86
  }
87
- _chunkJ6WEWRXQjs.writeDebug.call(void 0, `ts-resolve - mark ${source} as external`);
87
+ _chunkXBURNOOHjs.writeDebug.call(void 0, `ts-resolve - mark ${source} as external`);
88
88
  return false;
89
89
  }
90
90
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeDebug
3
- } from "./chunk-MKL5Y27F.mjs";
3
+ } from "./chunk-2XBT7L44.mjs";
4
4
 
5
5
  // src/plugins/ts-resolve.ts
6
6
  import fs from "node:fs";
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkJ6WEWRXQjs = require('./chunk-J6WEWRXQ.js');
5
+ var _chunkXBURNOOHjs = require('./chunk-XBURNOOH.js');
6
6
 
7
7
  // src/utilities/generate-package-json.ts
8
8
  var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
@@ -42,7 +42,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
42
42
  )) {
43
43
  const projectNode = project.node;
44
44
  if (projectNode.data.root) {
45
- const projectPackageJsonPath = _chunkJ6WEWRXQjs.joinPaths.call(void 0,
45
+ const projectPackageJsonPath = _chunkXBURNOOHjs.joinPaths.call(void 0,
46
46
  workspaceRoot,
47
47
  projectNode.data.root,
48
48
  "package.json"
@@ -60,11 +60,11 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
60
60
  }
61
61
  }
62
62
  if (localPackages.length > 0) {
63
- _chunkJ6WEWRXQjs.writeTrace.call(void 0,
63
+ _chunkXBURNOOHjs.writeTrace.call(void 0,
64
64
  `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
65
65
  );
66
66
  const projectJsonFile = await _promises.readFile.call(void 0,
67
- _chunkJ6WEWRXQjs.joinPaths.call(void 0, projectRoot, "project.json"),
67
+ _chunkXBURNOOHjs.joinPaths.call(void 0, projectRoot, "project.json"),
68
68
  "utf8"
69
69
  );
70
70
  const projectJson = JSON.parse(projectJsonFile);
@@ -77,7 +77,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
77
77
  }
78
78
  const implicitDependencies = _optionalChain([projectConfigurations, 'access', _9 => _9.projects, 'optionalAccess', _10 => _10[projectName2], 'access', _11 => _11.implicitDependencies, 'optionalAccess', _12 => _12.reduce, 'call', _13 => _13((ret, dep) => {
79
79
  if (_optionalChain([projectConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[dep]])) {
80
- const depPackageJsonPath = _chunkJ6WEWRXQjs.joinPaths.call(void 0,
80
+ const depPackageJsonPath = _chunkXBURNOOHjs.joinPaths.call(void 0,
81
81
  workspaceRoot,
82
82
  projectConfigurations.projects[dep].root,
83
83
  "package.json"
@@ -108,14 +108,14 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
108
108
  return ret;
109
109
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
110
110
  } else {
111
- _chunkJ6WEWRXQjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
111
+ _chunkXBURNOOHjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
112
112
  }
113
113
  return packageJson;
114
114
  };
115
115
  var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
116
- const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkJ6WEWRXQjs.findWorkspaceRoot.call(void 0, );
116
+ const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkXBURNOOHjs.findWorkspaceRoot.call(void 0, );
117
117
  const workspacePackageJsonContent = await _promises.readFile.call(void 0,
118
- _chunkJ6WEWRXQjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
118
+ _chunkXBURNOOHjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
119
119
  "utf8"
120
120
  );
121
121
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
@@ -126,7 +126,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
126
126
  if (distSrc.startsWith("/")) {
127
127
  distSrc = distSrc.substring(1);
128
128
  }
129
- packageJson.source ??= `${_chunkJ6WEWRXQjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
129
+ packageJson.source ??= `${_chunkXBURNOOHjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
130
130
  }
131
131
  packageJson.files ??= ["dist/**/*"];
132
132
  if (includeSrc === true && !packageJson.files.includes("src")) {
@@ -151,7 +151,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
151
151
  packageJson.contributors = [packageJson.author];
152
152
  }
153
153
  packageJson.repository ??= workspacePackageJson.repository;
154
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkJ6WEWRXQjs.joinPaths.call(void 0, "packages", projectName);
154
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkXBURNOOHjs.joinPaths.call(void 0, "packages", projectName);
155
155
  return packageJson;
156
156
  };
157
157
  var addPackageJsonExport = (file, type = "module", sourceRoot) => {
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkJ6WEWRXQjs = require('./chunk-J6WEWRXQ.js');
5
+ var _chunkXBURNOOHjs = require('./chunk-XBURNOOH.js');
6
6
 
7
7
  // src/utilities/copy-assets.ts
8
8
  var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
@@ -34,9 +34,9 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
34
34
  output: "src/"
35
35
  });
36
36
  }
37
- _chunkJ6WEWRXQjs.writeTrace.call(void 0,
37
+ _chunkXBURNOOHjs.writeTrace.call(void 0,
38
38
  `\u{1F4DD} Copying the following assets to the output directory:
39
- ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkJ6WEWRXQjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
39
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkXBURNOOHjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
40
40
  config
41
41
  );
42
42
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
@@ -47,18 +47,18 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
47
47
  });
48
48
  await assetHandler.processAllAssetsOnce();
49
49
  if (includeSrc === true) {
50
- _chunkJ6WEWRXQjs.writeDebug.call(void 0,
51
- `\u{1F4DD} Adding banner and writing source files: ${_chunkJ6WEWRXQjs.joinPaths.call(void 0,
50
+ _chunkXBURNOOHjs.writeDebug.call(void 0,
51
+ `\u{1F4DD} Adding banner and writing source files: ${_chunkXBURNOOHjs.joinPaths.call(void 0,
52
52
  outputPath,
53
53
  "src"
54
54
  )}`,
55
55
  config
56
56
  );
57
57
  const files = await _glob.glob.call(void 0, [
58
- _chunkJ6WEWRXQjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
59
- _chunkJ6WEWRXQjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
60
- _chunkJ6WEWRXQjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
61
- _chunkJ6WEWRXQjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
58
+ _chunkXBURNOOHjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
59
+ _chunkXBURNOOHjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
60
+ _chunkXBURNOOHjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
61
+ _chunkXBURNOOHjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
62
62
  ]);
63
63
  await Promise.allSettled(
64
64
  files.map(
@@ -15,7 +15,7 @@ import {
15
15
  stormWorkspaceConfigSchema,
16
16
  writeTrace,
17
17
  writeWarning
18
- } from "./chunk-MKL5Y27F.mjs";
18
+ } from "./chunk-2XBT7L44.mjs";
19
19
 
20
20
  // ../config-tools/src/config-file/get-config-file.ts
21
21
  import { loadConfig } from "c12";
@@ -139,7 +139,13 @@ var getConfigEnv = () => {
139
139
  medium: process.env[`${prefix}ACCOUNT_MEDIUM`] || void 0,
140
140
  github: process.env[`${prefix}ACCOUNT_GITHUB`] || void 0
141
141
  },
142
- organization: process.env[`${prefix}ORGANIZATION`] || void 0,
142
+ organization: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] ? process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] ? {
143
+ name: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`],
144
+ description: process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || void 0,
145
+ url: process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || void 0,
146
+ logo: process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] || void 0,
147
+ icon: process.env[`${prefix}ORG_ICON`] || process.env[`${prefix}ORGANIZATION_ICON`] || void 0
148
+ } : process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] : void 0,
143
149
  packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
144
150
  license: process.env[`${prefix}LICENSE`] || void 0,
145
151
  homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
@@ -346,7 +352,33 @@ var setConfigEnv = (config) => {
346
352
  }
347
353
  }
348
354
  if (config.organization) {
349
- process.env[`${prefix}ORGANIZATION`] = config.organization;
355
+ if (typeof config.organization === "string") {
356
+ process.env[`${prefix}ORG`] = config.organization;
357
+ process.env[`${prefix}ORG_NAME`] = config.organization;
358
+ process.env[`${prefix}ORGANIZATION`] = config.organization;
359
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization;
360
+ } else {
361
+ process.env[`${prefix}ORG`] = config.organization.name;
362
+ process.env[`${prefix}ORG_NAME`] = config.organization.name;
363
+ process.env[`${prefix}ORGANIZATION`] = config.organization.name;
364
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization.name;
365
+ if (config.organization.url) {
366
+ process.env[`${prefix}ORG_URL`] = config.organization.url;
367
+ process.env[`${prefix}ORGANIZATION_URL`] = config.organization.url;
368
+ }
369
+ if (config.organization.description) {
370
+ process.env[`${prefix}ORG_DESCRIPTION`] = config.organization.description;
371
+ process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config.organization.description;
372
+ }
373
+ if (config.organization.logo) {
374
+ process.env[`${prefix}ORG_LOGO`] = config.organization.logo;
375
+ process.env[`${prefix}ORGANIZATION_LOGO`] = config.organization.logo;
376
+ }
377
+ if (config.organization.icon) {
378
+ process.env[`${prefix}ORG_ICON`] = config.organization.icon;
379
+ process.env[`${prefix}ORGANIZATION_ICON`] = config.organization.icon;
380
+ }
381
+ }
350
382
  }
351
383
  if (config.packageManager) {
352
384
  process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;