@storm-software/workspace-tools 1.229.1 → 1.230.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.
Files changed (90) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/config/nx-default.json +4 -4
  4. package/dist/{chunk-ESRRKJO5.mjs → chunk-357OS575.mjs} +2 -2
  5. package/dist/{chunk-TILR7372.js → chunk-3O66TDXL.js} +5 -5
  6. package/dist/{chunk-CT7IVPJY.js → chunk-3SXUH27J.js} +7 -7
  7. package/dist/{chunk-XSCTGWRG.mjs → chunk-46HPJEJW.mjs} +1 -1
  8. package/dist/{chunk-JGTW4AJ7.mjs → chunk-4CWRH5ZE.mjs} +1 -1
  9. package/dist/{chunk-UDAQKEJS.mjs → chunk-55PB3HGB.mjs} +1 -1
  10. package/dist/{chunk-B3KIYNGT.mjs → chunk-63CXRJMW.mjs} +1 -1
  11. package/dist/{chunk-RKOOM5R5.js → chunk-6NIVQXVH.js} +77 -98
  12. package/dist/{chunk-MSENNRAY.js → chunk-72H4B5NB.js} +17 -17
  13. package/dist/{chunk-OA7KWN7D.mjs → chunk-A5H74FJO.mjs} +1 -1
  14. package/dist/{chunk-B7LWGAUI.js → chunk-AP62YOGH.js} +5 -5
  15. package/dist/{chunk-I7OZOKTH.js → chunk-AXC2MN2T.js} +2 -2
  16. package/dist/{chunk-SFT3A33D.mjs → chunk-BCM66MXI.mjs} +1 -1
  17. package/dist/{chunk-NCVJPQSP.js → chunk-CXLDWFA3.js} +15 -15
  18. package/dist/{chunk-6B6IVIMQ.js → chunk-CZJZJQ6D.js} +2 -2
  19. package/dist/{chunk-3GVBGSCQ.js → chunk-DIPIPI7H.js} +2 -2
  20. package/dist/{chunk-JEV3GSS7.js → chunk-EI3PUSCC.js} +9 -9
  21. package/dist/{chunk-W4QV74K2.mjs → chunk-FAD3MJIO.mjs} +1 -1
  22. package/dist/{chunk-35B5C22H.mjs → chunk-H3UJL3I6.mjs} +2 -2
  23. package/dist/{chunk-DLO5NZQI.mjs → chunk-HLPAP24L.mjs} +3 -3
  24. package/dist/{chunk-ZXT33DDB.js → chunk-IR6D2ZXA.js} +2 -2
  25. package/dist/{chunk-36FMHXUD.js → chunk-IX2EZD3F.js} +4 -4
  26. package/dist/{chunk-6267MSX4.mjs → chunk-J4POXWGW.mjs} +1 -1
  27. package/dist/{chunk-HAT7PSQD.mjs → chunk-JAWTCSKA.mjs} +53 -74
  28. package/dist/{chunk-F5WI7VDM.js → chunk-K7MNWUOY.js} +2 -2
  29. package/dist/{chunk-WJ5TU6JU.mjs → chunk-KNXGOGL5.mjs} +4 -4
  30. package/dist/{chunk-GV44QHV3.mjs → chunk-KS44WFBU.mjs} +1 -1
  31. package/dist/{chunk-KLEKFCL2.js → chunk-LPWSHG6O.js} +2 -2
  32. package/dist/{chunk-FP4PPOO6.js → chunk-MBCXSLG7.js} +2 -2
  33. package/dist/{chunk-WTHELTBU.mjs → chunk-MPOEEZVK.mjs} +2 -2
  34. package/dist/{chunk-PS55UN6T.mjs → chunk-PE2DD2SV.mjs} +1 -1
  35. package/dist/{chunk-PMDV5GKD.js → chunk-PHWTI5FA.js} +2 -2
  36. package/dist/{chunk-T7IVGU7T.mjs → chunk-RMRYTZQJ.mjs} +3 -3
  37. package/dist/{chunk-MF4RRA4Q.mjs → chunk-SON5KDOS.mjs} +1 -1
  38. package/dist/{chunk-QMJ7P54Z.mjs → chunk-TIKTN6ZZ.mjs} +1 -1
  39. package/dist/{chunk-OESA3G7F.mjs → chunk-UHT3YMUI.mjs} +1 -1
  40. package/dist/{chunk-7MZQTO7J.js → chunk-X5FFOC7V.js} +11 -11
  41. package/dist/{chunk-DIODSFGH.js → chunk-XW4IO5F6.js} +41 -41
  42. package/dist/{chunk-ZCZVVZBX.js → chunk-YCJU7YTL.js} +2 -2
  43. package/dist/{chunk-OJ3R7YBK.js → chunk-ZHQOK3NF.js} +31 -31
  44. package/dist/executors.js +14 -14
  45. package/dist/executors.mjs +13 -13
  46. package/dist/generators.js +9 -9
  47. package/dist/generators.mjs +8 -8
  48. package/dist/index.js +21 -21
  49. package/dist/index.mjs +20 -20
  50. package/dist/src/base/base-executor.js +3 -3
  51. package/dist/src/base/base-executor.mjs +2 -2
  52. package/dist/src/base/base-generator.js +3 -3
  53. package/dist/src/base/base-generator.mjs +2 -2
  54. package/dist/src/base/index.js +4 -4
  55. package/dist/src/base/index.mjs +3 -3
  56. package/dist/src/executors/cargo-build/executor.js +4 -4
  57. package/dist/src/executors/cargo-build/executor.mjs +3 -3
  58. package/dist/src/executors/cargo-check/executor.js +4 -4
  59. package/dist/src/executors/cargo-check/executor.mjs +3 -3
  60. package/dist/src/executors/cargo-clippy/executor.js +4 -4
  61. package/dist/src/executors/cargo-clippy/executor.mjs +3 -3
  62. package/dist/src/executors/cargo-doc/executor.js +4 -4
  63. package/dist/src/executors/cargo-doc/executor.mjs +3 -3
  64. package/dist/src/executors/cargo-format/executor.js +4 -4
  65. package/dist/src/executors/cargo-format/executor.mjs +3 -3
  66. package/dist/src/executors/clean-package/executor.js +5 -5
  67. package/dist/src/executors/clean-package/executor.mjs +2 -2
  68. package/dist/src/executors/esbuild/executor.js +5 -5
  69. package/dist/src/executors/esbuild/executor.mjs +4 -4
  70. package/dist/src/executors/size-limit/executor.js +4 -4
  71. package/dist/src/executors/size-limit/executor.mjs +3 -3
  72. package/dist/src/executors/tsdown/executor.js +5 -5
  73. package/dist/src/executors/tsdown/executor.mjs +4 -4
  74. package/dist/src/executors/typia/executor.js +4 -4
  75. package/dist/src/executors/typia/executor.mjs +3 -3
  76. package/dist/src/executors/unbuild/executor.js +5 -5
  77. package/dist/src/executors/unbuild/executor.mjs +4 -4
  78. package/dist/src/generators/browser-library/generator.js +4 -4
  79. package/dist/src/generators/browser-library/generator.mjs +3 -3
  80. package/dist/src/generators/config-schema/generator.js +4 -4
  81. package/dist/src/generators/config-schema/generator.mjs +3 -3
  82. package/dist/src/generators/neutral-library/generator.js +4 -4
  83. package/dist/src/generators/neutral-library/generator.mjs +3 -3
  84. package/dist/src/generators/node-library/generator.js +4 -4
  85. package/dist/src/generators/node-library/generator.mjs +3 -3
  86. package/dist/src/generators/preset/generator.js +4 -4
  87. package/dist/src/generators/preset/generator.mjs +3 -3
  88. package/dist/src/generators/release-version/generator.js +3 -3
  89. package/dist/src/generators/release-version/generator.mjs +2 -2
  90. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 1.230.1 (2025-01-20)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **unbuild:** Removed the invalid dependency types from package ([e83d0fcf](https://github.com/storm-software/storm-ops/commit/e83d0fcf))
6
+
7
+ ## 1.230.0 (2025-01-20)
8
+
9
+ ### Features
10
+
11
+ - **workspace-tools:** Added additional entry points to the package ([0322ac48](https://github.com/storm-software/storm-ops/commit/0322ac48))
12
+
1
13
  ## 1.229.1 (2025-01-20)
2
14
 
3
15
  ### Bug Fixes
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.227.4-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.230.0-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 -->
@@ -72,7 +72,6 @@
72
72
  "!{projectRoot}/typedoc.json",
73
73
  "!{projectRoot}/.eslint-doc-generatorrc.js",
74
74
  "!{projectRoot}/.eslint-doc-generatorrc.json",
75
- "!{projectRoot}/contentlayer.config.ts",
76
75
  "!{projectRoot}/.storybook/**/*",
77
76
  "!{projectRoot}/tsconfig.storybook.json",
78
77
  "!{projectRoot}/jest.config.ts",
@@ -268,7 +267,7 @@
268
267
  "{projectRoot}/README.md",
269
268
  "{projectRoot}/CHANGELOG.md",
270
269
  "{projectRoot}/.env",
271
- "{projectRoot}/.env.local",
270
+ "{projectRoot}/.env.*",
272
271
  "{projectRoot}/README.md",
273
272
  "{projectRoot}/docs/**/*",
274
273
  "{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
@@ -293,8 +292,9 @@
293
292
  "{projectRoot}/src/**/*.toml",
294
293
  "{projectRoot}/src/**/*.md",
295
294
  "{projectRoot}/src/**/*.mdx",
296
- "{projectRoot}/build.*.ts",
297
- "{projectRoot}/tsup.*.ts",
295
+ "{projectRoot}/build.*.[jt]s?(x)",
296
+ "{projectRoot}/tsup.*.[jt]s?(x)",
297
+ "{projectRoot}/contentlayer.*.[jt]s?(x)",
298
298
  "{projectRoot}/bin/**/*",
299
299
  "{projectRoot}/tools/**/*",
300
300
  "{projectRoot}/helpers/**/*",
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  withRunGenerator
3
- } from "./chunk-B3KIYNGT.mjs";
3
+ } from "./chunk-63CXRJMW.mjs";
4
4
  import {
5
5
  StormConfigSchema,
6
6
  writeInfo,
7
7
  writeSuccess,
8
8
  writeTrace
9
- } from "./chunk-WJ5TU6JU.mjs";
9
+ } from "./chunk-KNXGOGL5.mjs";
10
10
  import {
11
11
  findWorkspaceRoot
12
12
  } from "./chunk-DMUTOQCB.mjs";
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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 _chunkMSENNRAYjs = require('./chunk-MSENNRAY.js');
3
+ var _chunk72H4B5NBjs = require('./chunk-72H4B5NB.js');
4
4
 
5
5
 
6
- var _chunk36FMHXUDjs = require('./chunk-36FMHXUD.js');
6
+ var _chunkIX2EZD3Fjs = require('./chunk-IX2EZD3F.js');
7
7
 
8
8
 
9
9
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -18,7 +18,7 @@ async function sizeLimitExecutorFn(options, context, config) {
18
18
  if (!_optionalChain([context, 'optionalAccess', _ => _.projectName]) || !_optionalChain([context, 'access', _2 => _2.projectsConfigurations, 'optionalAccess', _3 => _3.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
19
19
  throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
20
20
  }
21
- _chunk36FMHXUDjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
21
+ _chunkIX2EZD3Fjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
22
22
  _sizelimit2.default.call(void 0, [
23
23
  _file2.default,
24
24
  _esbuild2.default,
@@ -26,14 +26,14 @@ async function sizeLimitExecutorFn(options, context, config) {
26
26
  ], {
27
27
  checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _4 => _4.projectsConfigurations, 'access', _5 => _5.projects, 'access', _6 => _6[context.projectName], 'optionalAccess', _7 => _7.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context, 'access', _8 => _8.projectsConfigurations, 'access', _9 => _9.projects, 'access', _10 => _10[context.projectName], 'optionalAccess', _11 => _11.root]), () => ( "./")), "src")))
28
28
  }).then((result) => {
29
- _chunk36FMHXUDjs.writeInfo.call(void 0, `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
29
+ _chunkIX2EZD3Fjs.writeInfo.call(void 0, `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
30
30
  });
31
31
  return {
32
32
  success: true
33
33
  };
34
34
  }
35
35
  _chunk3GQAWCBQjs.__name.call(void 0, sizeLimitExecutorFn, "sizeLimitExecutorFn");
36
- var executor_default = _chunkMSENNRAYjs.withRunExecutor.call(void 0, "Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
36
+ var executor_default = _chunk72H4B5NBjs.withRunExecutor.call(void 0, "Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
37
37
  skipReadingConfig: false,
38
38
  hooks: {
39
39
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunk36FMHXUDjs = require('./chunk-36FMHXUD.js');
6
+ var _chunkIX2EZD3Fjs = require('./chunk-IX2EZD3F.js');
7
7
 
8
8
 
9
9
  var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
@@ -37,7 +37,7 @@ var _glob = require('glob');
37
37
  var readNxConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot) => {
38
38
  let rootDir = workspaceRoot;
39
39
  if (!rootDir) {
40
- const config = await _chunk36FMHXUDjs.loadStormConfig.call(void 0, );
40
+ const config = await _chunkIX2EZD3Fjs.loadStormConfig.call(void 0, );
41
41
  rootDir = config.workspaceRoot;
42
42
  }
43
43
  const nxJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, rootDir, "nx.json");
@@ -103,13 +103,13 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
103
103
  projectsConfigurations,
104
104
  nxJsonConfiguration: nxJson,
105
105
  cwd: config.workspaceRoot,
106
- isVerbose: _chunk36FMHXUDjs.isVerbose.call(void 0, config.logLevel)
106
+ isVerbose: _chunkIX2EZD3Fjs.isVerbose.call(void 0, config.logLevel)
107
107
  });
108
108
  if (!result.success) {
109
109
  throw new Error("The Build process failed trying to copy assets");
110
110
  }
111
111
  if (includeSrc === true) {
112
- _chunk36FMHXUDjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkXCSSYTCUjs.joinPaths.call(void 0, outputPath, "src")}`, config);
112
+ _chunkIX2EZD3Fjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkXCSSYTCUjs.joinPaths.call(void 0, outputPath, "src")}`, config);
113
113
  const files = await _glob.glob.call(void 0, [
114
114
  _chunkXCSSYTCUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
115
115
  _chunkXCSSYTCUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
@@ -159,7 +159,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
159
159
  }
160
160
  }
161
161
  if (localPackages.length > 0) {
162
- _chunk36FMHXUDjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
162
+ _chunkIX2EZD3Fjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
163
163
  packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
164
164
  if (!ret[localPackage.name]) {
165
165
  ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
@@ -181,7 +181,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
181
181
  return ret;
182
182
  }, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
183
183
  } else {
184
- _chunk36FMHXUDjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
184
+ _chunkIX2EZD3Fjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
185
185
  }
186
186
  return packageJson;
187
187
  }, "addPackageDependencies");
@@ -304,7 +304,7 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
304
304
  results.push(...files.reduce((ret, filePath) => {
305
305
  const result = _chunkXCSSYTCUjs.correctPaths.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkXCSSYTCUjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkXCSSYTCUjs.correctPaths.call(void 0, projectRoot), ""));
306
306
  if (result) {
307
- _chunk36FMHXUDjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkXCSSYTCUjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
307
+ _chunkIX2EZD3Fjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkXCSSYTCUjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
308
308
  if (!results.includes(result)) {
309
309
  results.push(result);
310
310
  }
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-QZHIWK5Z.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-6267MSX4.mjs";
7
+ } from "./chunk-J4POXWGW.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-XUV4U54K.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-QZHIWK5Z.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-6267MSX4.mjs";
7
+ } from "./chunk-J4POXWGW.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-XUV4U54K.mjs";
@@ -3,7 +3,7 @@ import {
3
3
  loadStormConfig,
4
4
  writeDebug,
5
5
  writeTrace
6
- } from "./chunk-WJ5TU6JU.mjs";
6
+ } from "./chunk-KNXGOGL5.mjs";
7
7
  import {
8
8
  findWorkspaceRoot
9
9
  } from "./chunk-DMUTOQCB.mjs";
@@ -11,7 +11,7 @@ import {
11
11
  writeInfo,
12
12
  writeSuccess,
13
13
  writeTrace
14
- } from "./chunk-WJ5TU6JU.mjs";
14
+ } from "./chunk-KNXGOGL5.mjs";
15
15
  import {
16
16
  findWorkspaceRoot
17
17
  } from "./chunk-DMUTOQCB.mjs";
@@ -3,10 +3,10 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkCT7IVPJYjs = require('./chunk-CT7IVPJY.js');
6
+ var _chunk3SXUH27Jjs = require('./chunk-3SXUH27J.js');
7
7
 
8
8
 
9
- var _chunkMSENNRAYjs = require('./chunk-MSENNRAY.js');
9
+ var _chunk72H4B5NBjs = require('./chunk-72H4B5NB.js');
10
10
 
11
11
 
12
12
 
@@ -18,21 +18,21 @@ var _chunkMSENNRAYjs = require('./chunk-MSENNRAY.js');
18
18
 
19
19
 
20
20
 
21
- var _chunk36FMHXUDjs = require('./chunk-36FMHXUD.js');
21
+ var _chunkIX2EZD3Fjs = require('./chunk-IX2EZD3F.js');
22
22
 
23
23
 
24
24
  var _chunkXCSSYTCUjs = require('./chunk-XCSSYTCU.js');
25
25
 
26
26
 
27
-
28
27
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
29
28
 
30
29
  // ../unbuild/src/build.ts
31
- var _node = require('@humanfs/node');
32
30
  var _devkit = require('@nx/devkit');
33
31
  var _js = require('@nx/js');
34
32
  var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
35
33
  var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
34
+ var _fs = require('fs');
35
+ var _promises = require('fs/promises');
36
36
  var _path = require('path');
37
37
  var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
38
38
  var _unbuild = require('unbuild');
@@ -40,9 +40,12 @@ var _unbuild = require('unbuild');
40
40
  // ../unbuild/src/clean.ts
41
41
 
42
42
  async function clean(name = "Unbuild", directory, config) {
43
- _chunk36FMHXUDjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
44
- const stopwatch = _chunk36FMHXUDjs.getStopwatch.call(void 0, `${name} output clean`);
45
- await _node.hfs.deleteAll(directory);
43
+ _chunkIX2EZD3Fjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
44
+ const stopwatch = _chunkIX2EZD3Fjs.getStopwatch.call(void 0, `${name} output clean`);
45
+ await _promises.rm.call(void 0, directory, {
46
+ recursive: true,
47
+ force: true
48
+ });
46
49
  stopwatch();
47
50
  }
48
51
  _chunk3GQAWCBQjs.__name.call(void 0, clean, "clean");
@@ -67,7 +70,7 @@ var analyzePlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (option
67
70
  renderChunk(source, chunk) {
68
71
  const sourceBytes = formatBytes(source.length);
69
72
  const fileName = chunk.fileName;
70
- _chunk36FMHXUDjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, resolvedOptions.config);
73
+ _chunkIX2EZD3Fjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, resolvedOptions.config);
71
74
  }
72
75
  };
73
76
  }, "analyzePlugin");
@@ -77,7 +80,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (option
77
80
  name: "storm:on-error",
78
81
  buildEnd(error) {
79
82
  if (error) {
80
- _chunk36FMHXUDjs.writeError.call(void 0, `The following errors occurred during the build:
83
+ _chunkIX2EZD3Fjs.writeError.call(void 0, `The following errors occurred during the build:
81
84
  ${error ? error.message : "Unknown build error"}
82
85
 
83
86
  `, resolvedOptions.config);
@@ -85,7 +88,7 @@ ${error ? error.message : "Unknown build error"}
85
88
  }
86
89
  },
87
90
  renderError(error) {
88
- _chunk36FMHXUDjs.writeError.call(void 0, `The following errors occurred during the build:
91
+ _chunkIX2EZD3Fjs.writeError.call(void 0, `The following errors occurred during the build:
89
92
  ${error ? error.message : "Unknown build error"}
90
93
 
91
94
  `, resolvedOptions.config);
@@ -93,26 +96,6 @@ ${error ? error.message : "Unknown build error"}
93
96
  }
94
97
  }), "onErrorPlugin");
95
98
 
96
- // ../unbuild/src/plugins/swc.ts
97
- var swcPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => {
98
- const { transform } = _chunk3GQAWCBQjs.__require.call(void 0, "@swc/core");
99
- return {
100
- name: "storm:swc",
101
- transform(code, filename) {
102
- return transform(code, {
103
- filename,
104
- jsc: {
105
- transform: {
106
- react: {
107
- runtime: "automatic"
108
- }
109
- }
110
- }
111
- });
112
- }
113
- };
114
- }, "swcPlugin");
115
-
116
99
  // ../unbuild/src/plugins/tsc.ts
117
100
 
118
101
 
@@ -140,16 +123,14 @@ async function createTsCompilerOptions(config, tsConfigPath, projectRoot, depend
140
123
  declaration: true,
141
124
  paths: _buildablelibsutils.computeCompilerOptionsPaths.call(void 0, tsConfig, _nullishCoalesce(dependencies, () => ( [])))
142
125
  };
143
- _chunk36FMHXUDjs.writeTrace.call(void 0, compilerOptions, config);
126
+ _chunkIX2EZD3Fjs.writeTrace.call(void 0, compilerOptions, config);
144
127
  return compilerOptions;
145
128
  }
146
129
  _chunk3GQAWCBQjs.__name.call(void 0, createTsCompilerOptions, "createTsCompilerOptions");
147
130
 
148
131
  // ../unbuild/src/plugins/tsc.ts
149
132
  var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, resolvedOptions) => {
150
- const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
151
- exitOnError: true
152
- });
133
+ const projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
153
134
  const result = _buildablelibsutils.calculateProjectBuildableDependencies.call(void 0, void 0, projectGraph, resolvedOptions.config.workspaceRoot, resolvedOptions.projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
154
135
  let dependencies = result.dependencies;
155
136
  const tsLibDependency = _compilerhelperdependency.getHelperDependency.call(void 0, _compilerhelperdependency.HelperDependency.tsc, resolvedOptions.tsconfig, dependencies, projectGraph, true);
@@ -168,37 +149,39 @@ var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (opti
168
149
 
169
150
  // ../unbuild/src/plugins/type-definitions.ts
170
151
 
171
- var typeDefinitions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => ({
172
- name: "storm:dts-bundle",
173
- async generateBundle(_opts, bundle) {
174
- for (const file of Object.values(bundle)) {
175
- if (file.type === "asset" || !file.isEntry || file.facadeModuleId == null) {
176
- continue;
177
- }
178
- const hasDefaultExport = file.exports.includes("default");
179
- const entrySourceFileName = _path.relative.call(void 0, options.projectRoot, file.facadeModuleId);
180
- const entrySourceDtsName = entrySourceFileName.replace(/\.[cm]?[jt]sx?$/, "");
181
- const dtsFileName = file.fileName.replace(/\.[cm]?js$/, ".d.ts");
182
- const relativeSourceDtsName = JSON.stringify("./" + entrySourceDtsName);
183
- const dtsFileSource = hasDefaultExport ? `
152
+ function typeDefinitions(projectRoot) {
153
+ return {
154
+ name: "storm:dts-bundle",
155
+ async generateBundle(_opts, bundle) {
156
+ for (const file of Object.values(bundle)) {
157
+ if (file.type === "asset" || !file.isEntry || file.facadeModuleId == null) {
158
+ continue;
159
+ }
160
+ const hasDefaultExport = file.exports.includes("default");
161
+ const entrySourceFileName = _path.relative.call(void 0, projectRoot, file.facadeModuleId);
162
+ const entrySourceDtsName = entrySourceFileName.replace(/\.[cm]?[jt]sx?$/, "");
163
+ const dtsFileName = file.fileName.replace(/\.[cm]?js$/, ".d.ts");
164
+ const relativeSourceDtsName = JSON.stringify("./" + entrySourceDtsName);
165
+ const dtsFileSource = hasDefaultExport ? `
184
166
  export * from ${relativeSourceDtsName};
185
167
  export { default } from ${relativeSourceDtsName};
186
168
  ` : `export * from ${relativeSourceDtsName};
187
169
  `;
188
- this.emitFile({
189
- type: "asset",
190
- fileName: dtsFileName,
191
- source: dtsFileSource
192
- });
170
+ this.emitFile({
171
+ type: "asset",
172
+ fileName: dtsFileName,
173
+ source: dtsFileSource
174
+ });
175
+ }
193
176
  }
194
- }
195
- }), "typeDefinitions");
177
+ };
178
+ }
179
+ _chunk3GQAWCBQjs.__name.call(void 0, typeDefinitions, "typeDefinitions");
196
180
 
197
181
  // ../unbuild/src/config.ts
198
182
  var getDefaultBuildPlugins = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, resolvedOptions) => Promise.all([
199
183
  analyzePlugin(options, resolvedOptions),
200
- swcPlugin(options, resolvedOptions),
201
- typeDefinitions(options, resolvedOptions),
184
+ typeDefinitions(resolvedOptions.projectRoot),
202
185
  tscPlugin(options, resolvedOptions),
203
186
  onErrorPlugin(options, resolvedOptions)
204
187
  ].map((plugin) => Promise.resolve(plugin))), "getDefaultBuildPlugins");
@@ -214,47 +197,43 @@ async function resolveOptions(options) {
214
197
  if (!workspaceRoot) {
215
198
  throw new Error("Cannot find workspace root");
216
199
  }
217
- const config = await _chunk36FMHXUDjs.loadStormConfig.call(void 0, workspaceRoot.dir);
218
- _chunk36FMHXUDjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
219
- const stopwatch = _chunk36FMHXUDjs.getStopwatch.call(void 0, "Build options resolution");
200
+ const config = await _chunkIX2EZD3Fjs.loadStormConfig.call(void 0, workspaceRoot.dir);
201
+ _chunkIX2EZD3Fjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
202
+ const stopwatch = _chunkIX2EZD3Fjs.getStopwatch.call(void 0, "Build options resolution");
220
203
  if (options.configPath) {
221
204
  const configFile = await loadConfig(options.configPath);
222
205
  if (configFile) {
223
206
  options = _defu2.default.call(void 0, options, configFile);
224
207
  }
225
208
  }
226
- const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
227
- exitOnError: true
228
- });
209
+ const projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
229
210
  const projectJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, config.workspaceRoot, projectRoot, "project.json");
230
- if (!await _node.hfs.isFile(projectJsonPath)) {
211
+ if (!_fs.existsSync.call(void 0, projectJsonPath)) {
231
212
  throw new Error("Cannot find project.json configuration");
232
213
  }
233
- const projectJson = await _node.hfs.json(projectJsonPath);
214
+ const projectJsonContent = await _promises.readFile.call(void 0, projectJsonPath, "utf8");
215
+ const projectJson = JSON.parse(projectJsonContent);
234
216
  const projectName = projectJson.name;
235
217
  const packageJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "package.json");
236
- if (!await _node.hfs.isFile(packageJsonPath)) {
218
+ if (!_fs.existsSync.call(void 0, packageJsonPath)) {
237
219
  throw new Error("Cannot find package.json configuration");
238
220
  }
239
- const packageJson = await _node.hfs.json(packageJsonPath);
221
+ const packageJsonContent = await _promises.readFile.call(void 0, packageJsonPath, "utf8");
222
+ const packageJson = JSON.parse(packageJsonContent);
240
223
  let tsconfig = options.tsconfig;
241
224
  if (!tsconfig) {
242
225
  tsconfig = _chunkXCSSYTCUjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "tsconfig.json");
243
226
  }
244
- if (!await _node.hfs.isFile(tsconfig)) {
227
+ if (!_fs.existsSync.call(void 0, tsconfig)) {
245
228
  throw new Error("Cannot find tsconfig.json configuration");
246
229
  }
247
230
  let sourceRoot = projectJson.sourceRoot;
248
231
  if (!sourceRoot) {
249
232
  sourceRoot = _chunkXCSSYTCUjs.joinPaths.call(void 0, projectRoot, "src");
250
233
  }
251
- if (!await _node.hfs.isDirectory(sourceRoot)) {
234
+ if (!_fs.existsSync.call(void 0, sourceRoot)) {
252
235
  throw new Error("Cannot find sourceRoot directory");
253
236
  }
254
- const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
255
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _ => _.projects, 'optionalAccess', _2 => _2[projectName]])) {
256
- throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
257
- }
258
237
  const result = _buildablelibsutils.calculateProjectBuildableDependencies.call(void 0, void 0, projectGraph, workspaceRoot.dir, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
259
238
  let dependencies = result.dependencies;
260
239
  const tsLibDependency = _js.getHelperDependency.call(void 0, _js.HelperDependency.tsc, tsconfig, dependencies, projectGraph, true);
@@ -339,7 +318,7 @@ async function resolveOptions(options) {
339
318
  splitting: options.splitting !== false,
340
319
  treeShaking: options.treeShaking !== false,
341
320
  color: true,
342
- logLevel: config.logLevel === _chunk36FMHXUDjs.LogLevelLabel.FATAL ? _chunk36FMHXUDjs.LogLevelLabel.ERROR : _chunk36FMHXUDjs.isVerbose.call(void 0, ) ? "verbose" : config.logLevel
321
+ logLevel: config.logLevel === _chunkIX2EZD3Fjs.LogLevelLabel.FATAL ? _chunkIX2EZD3Fjs.LogLevelLabel.ERROR : _chunkIX2EZD3Fjs.isVerbose.call(void 0, ) ? "verbose" : config.logLevel
343
322
  }
344
323
  }
345
324
  };
@@ -375,29 +354,29 @@ async function resolveOptions(options) {
375
354
  }
376
355
  _chunk3GQAWCBQjs.__name.call(void 0, resolveOptions, "resolveOptions");
377
356
  async function generatePackageJson(options) {
378
- if (options.generatePackageJson !== false && await _node.hfs.isFile(_chunkXCSSYTCUjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
379
- _chunk36FMHXUDjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
380
- const stopwatch = _chunk36FMHXUDjs.getStopwatch.call(void 0, "Write package.json file");
357
+ if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
358
+ _chunkIX2EZD3Fjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
359
+ const stopwatch = _chunkIX2EZD3Fjs.getStopwatch.call(void 0, "Write package.json file");
381
360
  const packageJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, options.projectRoot, "project.json");
382
- if (!await _node.hfs.isFile(packageJsonPath)) {
361
+ if (!_fs.existsSync.call(void 0, packageJsonPath)) {
383
362
  throw new Error("Cannot find package.json configuration");
384
363
  }
385
- let packageJson = await _node.hfs.json(_chunkXCSSYTCUjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"));
386
- if (!packageJson) {
364
+ let packageJsonContent = await _promises.readFile.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
365
+ if (!packageJsonContent) {
387
366
  throw new Error("Cannot find package.json configuration file");
388
367
  }
389
- packageJson = await _chunkCT7IVPJYjs.addPackageDependencies.call(void 0, options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
390
- packageJson = await _chunkCT7IVPJYjs.addWorkspacePackageJsonFields.call(void 0, options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
391
- packageJson = await _chunkCT7IVPJYjs.addPackageJsonExports.call(void 0, options.sourceRoot, packageJson);
392
- await _devkit.writeJsonFile.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
368
+ let packageJson = JSON.parse(packageJsonContent);
369
+ packageJson = await _chunk3SXUH27Jjs.addPackageDependencies.call(void 0, options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
370
+ packageJson = await _chunk3SXUH27Jjs.addWorkspacePackageJsonFields.call(void 0, options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
371
+ await _devkit.writeJsonFile.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, options.outDir, "package.json"), await _chunk3SXUH27Jjs.addPackageJsonExports.call(void 0, options.sourceRoot, packageJson));
393
372
  stopwatch();
394
373
  }
395
374
  return options;
396
375
  }
397
376
  _chunk3GQAWCBQjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
398
377
  async function executeUnbuild(options) {
399
- _chunk36FMHXUDjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} (${options.projectRoot}) build`, options.config);
400
- const stopwatch = _chunk36FMHXUDjs.getStopwatch.call(void 0, `${options.name} (${options.projectRoot}) build`);
378
+ _chunkIX2EZD3Fjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} (${options.projectRoot}) build`, options.config);
379
+ const stopwatch = _chunkIX2EZD3Fjs.getStopwatch.call(void 0, `${options.name} (${options.projectRoot}) build`);
401
380
  try {
402
381
  await _unbuild.build.call(void 0, options.projectRoot, false, {
403
382
  ...options,
@@ -410,9 +389,9 @@ async function executeUnbuild(options) {
410
389
  }
411
390
  _chunk3GQAWCBQjs.__name.call(void 0, executeUnbuild, "executeUnbuild");
412
391
  async function copyBuildAssets(options) {
413
- _chunk36FMHXUDjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`, options.config);
414
- const stopwatch = _chunk36FMHXUDjs.getStopwatch.call(void 0, `${options.name} asset copy`);
415
- await _chunkCT7IVPJYjs.copyAssets.call(void 0, options.config, _nullishCoalesce(options.assets, () => ( [])), options.outDir, options.projectRoot, options.projectName, options.sourceRoot, options.generatePackageJson, options.includeSrc);
392
+ _chunkIX2EZD3Fjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`, options.config);
393
+ const stopwatch = _chunkIX2EZD3Fjs.getStopwatch.call(void 0, `${options.name} asset copy`);
394
+ await _chunk3SXUH27Jjs.copyAssets.call(void 0, options.config, _nullishCoalesce(options.assets, () => ( [])), options.outDir, options.projectRoot, options.projectName, options.sourceRoot, options.generatePackageJson, options.includeSrc);
416
395
  stopwatch();
417
396
  return options;
418
397
  }
@@ -425,17 +404,17 @@ async function cleanOutputPath(options) {
425
404
  }
426
405
  _chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
427
406
  async function build(options) {
428
- _chunk36FMHXUDjs.writeDebug.call(void 0, ` \u26A1 Executing Storm Unbuild pipeline`);
429
- const stopwatch = _chunk36FMHXUDjs.getStopwatch.call(void 0, "Unbuild pipeline");
407
+ _chunkIX2EZD3Fjs.writeDebug.call(void 0, ` \u26A1 Executing Storm Unbuild pipeline`);
408
+ const stopwatch = _chunkIX2EZD3Fjs.getStopwatch.call(void 0, "Unbuild pipeline");
430
409
  try {
431
410
  const resolvedOptions = await resolveOptions(options);
432
411
  await cleanOutputPath(resolvedOptions);
433
412
  await generatePackageJson(resolvedOptions);
434
413
  await executeUnbuild(resolvedOptions);
435
414
  await copyBuildAssets(resolvedOptions);
436
- _chunk36FMHXUDjs.writeSuccess.call(void 0, ` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`, resolvedOptions.config);
415
+ _chunkIX2EZD3Fjs.writeSuccess.call(void 0, ` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`, resolvedOptions.config);
437
416
  } catch (error) {
438
- _chunk36FMHXUDjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
417
+ _chunkIX2EZD3Fjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
439
418
  throw error;
440
419
  } finally {
441
420
  stopwatch();
@@ -446,15 +425,15 @@ _chunk3GQAWCBQjs.__name.call(void 0, build, "build");
446
425
  // src/executors/unbuild/executor.ts
447
426
 
448
427
  async function unbuildExecutorFn(options, context, config) {
449
- _chunk36FMHXUDjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
450
- if (!_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'optionalAccess', _4 => _4.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _5 => _5.projectsConfigurations, 'access', _6 => _6.projects, 'access', _7 => _7[context.projectName], 'optionalAccess', _8 => _8.root])) {
428
+ _chunkIX2EZD3Fjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
429
+ if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'access', _4 => _4.projects, 'access', _5 => _5[context.projectName], 'optionalAccess', _6 => _6.root])) {
451
430
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
452
431
  }
453
432
  await build(_defu.defu.call(void 0, {
454
433
  ...options,
455
- projectRoot: _optionalChain([context, 'access', _9 => _9.projectsConfigurations, 'access', _10 => _10.projects, 'optionalAccess', _11 => _11[context.projectName], 'access', _12 => _12.root]),
434
+ projectRoot: _optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'optionalAccess', _9 => _9[context.projectName], 'access', _10 => _10.root]),
456
435
  projectName: context.projectName,
457
- sourceRoot: _optionalChain([context, 'access', _13 => _13.projectsConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[context.projectName], 'optionalAccess', _16 => _16.sourceRoot]),
436
+ sourceRoot: _optionalChain([context, 'access', _11 => _11.projectsConfigurations, 'access', _12 => _12.projects, 'optionalAccess', _13 => _13[context.projectName], 'optionalAccess', _14 => _14.sourceRoot]),
458
437
  platform: options.platform,
459
438
  name: context.projectName
460
439
  }, {
@@ -489,7 +468,7 @@ async function unbuildExecutorFn(options, context, config) {
489
468
  };
490
469
  }
491
470
  _chunk3GQAWCBQjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
492
- var executor_default = _chunkMSENNRAYjs.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
471
+ var executor_default = _chunk72H4B5NBjs.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
493
472
  skipReadingConfig: false,
494
473
  hooks: {
495
474
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {