@storm-software/workspace-tools 1.246.0 → 1.246.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 (117) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-7Q66XSCS.mjs → chunk-2AKLJNKO.mjs} +2 -2
  4. package/dist/{chunk-FZUZUTKX.js → chunk-2X5RIJLD.js} +41 -41
  5. package/dist/{chunk-6QSFQS3X.js → chunk-34JK7ZOU.js} +2 -2
  6. package/dist/{chunk-RSILHGEU.js → chunk-3EZ5RCSK.js} +21 -21
  7. package/dist/{chunk-CLBFXZQ5.mjs → chunk-3SPGOKCO.mjs} +1 -1
  8. package/dist/{chunk-HXU5ZXAJ.mjs → chunk-4F75KA7J.mjs} +1 -1
  9. package/dist/{chunk-GDE7VBWW.js → chunk-4O2MLA6O.js} +62 -62
  10. package/dist/{chunk-UI3SQYV3.mjs → chunk-4YODDZMS.mjs} +1 -1
  11. package/dist/{chunk-KLHTXAIU.js → chunk-66FRJGIN.js} +20 -20
  12. package/dist/{chunk-U6TLQT5H.js → chunk-6V5GP3U4.js} +3 -3
  13. package/dist/{chunk-EUCOXCI2.mjs → chunk-72JQWMSO.mjs} +3 -3
  14. package/dist/{chunk-5XF4CY7D.mjs → chunk-7QVGAOPQ.mjs} +1 -1
  15. package/dist/{chunk-GJ6DN3BR.mjs → chunk-AQLXZBXJ.mjs} +3 -3
  16. package/dist/{chunk-5DAZ2WTI.js → chunk-AWPP7DRY.js} +2 -2
  17. package/dist/{chunk-IBHLVELV.js → chunk-AY5HELLN.js} +25 -25
  18. package/dist/{chunk-ZOFW74B2.mjs → chunk-BLG6LLHW.mjs} +1 -1
  19. package/dist/{chunk-HONSACRT.js → chunk-BNYY2WQJ.js} +2 -2
  20. package/dist/{chunk-2HD75CLD.js → chunk-BYLPQCIB.js} +11 -11
  21. package/dist/{chunk-MMMTLP2W.js → chunk-CQAGLRNY.js} +5 -5
  22. package/dist/{chunk-2GRVQNW3.js → chunk-CUPARBOS.js} +3 -3
  23. package/dist/{chunk-RAVLTWJV.js → chunk-ECSCURQQ.js} +13 -13
  24. package/dist/{chunk-D2ECVPJF.js → chunk-EIL3PQQL.js} +2 -2
  25. package/dist/{chunk-XIOF32ZH.mjs → chunk-FBIVTCSJ.mjs} +1 -1
  26. package/dist/{chunk-RRWRVA7F.js → chunk-FDPZRNKZ.js} +15 -15
  27. package/dist/{chunk-SNFZL5BN.mjs → chunk-GQ6ZBQ6I.mjs} +3 -3
  28. package/dist/{chunk-RFO5NMSB.js → chunk-H5XURNDS.js} +2 -2
  29. package/dist/{chunk-Q45DDLNL.mjs → chunk-HK26KBWU.mjs} +2 -2
  30. package/dist/{chunk-TGDWEUKX.mjs → chunk-I6BCQJPP.mjs} +1 -1
  31. package/dist/{chunk-IUV3RLT4.mjs → chunk-IPMZQTRA.mjs} +1 -1
  32. package/dist/{chunk-YWKUJJ34.js → chunk-ITL2GPJB.js} +2 -2
  33. package/dist/chunk-JTAXCQX6.js +135 -0
  34. package/dist/{chunk-RLGZCVPW.mjs → chunk-KPKHTJWT.mjs} +3 -3
  35. package/dist/{chunk-PKBHUBDV.mjs → chunk-KV7YB4MU.mjs} +1 -1
  36. package/dist/{chunk-PCPEJBLO.js → chunk-LZNWOO4B.js} +7 -7
  37. package/dist/{chunk-YSYBVJGR.js → chunk-N3WLDHSN.js} +2 -2
  38. package/dist/chunk-NCFX2MWO.mjs +135 -0
  39. package/dist/{chunk-LYUV4LMB.mjs → chunk-O3ZLX7S5.mjs} +2 -2
  40. package/dist/{chunk-SBCLCF4E.mjs → chunk-O4ZT2WZN.mjs} +4 -4
  41. package/dist/{chunk-IF2GIONQ.js → chunk-P4ALYDGC.js} +5 -5
  42. package/dist/{chunk-C3YSVZWO.js → chunk-Q2DU6KGV.js} +7 -7
  43. package/dist/{chunk-T2NTGJ6O.mjs → chunk-Q47LFUGL.mjs} +3 -3
  44. package/dist/{chunk-6N67WSX5.mjs → chunk-R7VJ7ZHV.mjs} +1 -1
  45. package/dist/{chunk-GYGIXXAL.js → chunk-RWDBQOGV.js} +5 -5
  46. package/dist/{chunk-C2REXPET.mjs → chunk-SLCOHXD3.mjs} +1 -1
  47. package/dist/{chunk-KWIXQ4UN.mjs → chunk-TBQLIKD4.mjs} +3 -3
  48. package/dist/{chunk-INEO4WKL.mjs → chunk-TJ6WVBYM.mjs} +3 -3
  49. package/dist/{chunk-6ZRK5I4N.js → chunk-U3TVR7B3.js} +7 -7
  50. package/dist/{chunk-UHNTJRTW.mjs → chunk-U4AQXXXF.mjs} +3 -3
  51. package/dist/{chunk-6627ZZQF.mjs → chunk-WBFXAE2V.mjs} +4 -4
  52. package/dist/{chunk-K62HB3IT.mjs → chunk-WCIY3TEF.mjs} +1 -1
  53. package/dist/{chunk-YFERQMWX.js → chunk-WPYYDD5F.js} +2 -2
  54. package/dist/{chunk-7PLUDZNP.mjs → chunk-X7XA6QPV.mjs} +2 -2
  55. package/dist/{chunk-CFRPLVEU.mjs → chunk-XI4BWTXX.mjs} +2 -2
  56. package/dist/{chunk-M7ZE5SMZ.js → chunk-ZAE2P6GK.js} +7 -7
  57. package/dist/{chunk-B6PUPX6O.js → chunk-ZQPK5G4U.js} +27 -27
  58. package/dist/{chunk-QSLN7UYG.js → chunk-ZVP6NBMF.js} +2 -2
  59. package/dist/executors.js +19 -19
  60. package/dist/executors.mjs +20 -20
  61. package/dist/generators.js +13 -13
  62. package/dist/generators.mjs +12 -12
  63. package/dist/index.js +29 -29
  64. package/dist/index.mjs +30 -30
  65. package/dist/src/base/base-executor.js +6 -6
  66. package/dist/src/base/base-executor.mjs +5 -5
  67. package/dist/src/base/base-generator.js +6 -6
  68. package/dist/src/base/base-generator.mjs +5 -5
  69. package/dist/src/base/index.js +8 -8
  70. package/dist/src/base/index.mjs +7 -7
  71. package/dist/src/executors/cargo-build/executor.js +7 -7
  72. package/dist/src/executors/cargo-build/executor.mjs +6 -6
  73. package/dist/src/executors/cargo-check/executor.js +7 -7
  74. package/dist/src/executors/cargo-check/executor.mjs +6 -6
  75. package/dist/src/executors/cargo-clippy/executor.js +7 -7
  76. package/dist/src/executors/cargo-clippy/executor.mjs +6 -6
  77. package/dist/src/executors/cargo-doc/executor.js +7 -7
  78. package/dist/src/executors/cargo-doc/executor.mjs +6 -6
  79. package/dist/src/executors/cargo-format/executor.js +7 -7
  80. package/dist/src/executors/cargo-format/executor.mjs +6 -6
  81. package/dist/src/executors/clean-package/executor.js +9 -9
  82. package/dist/src/executors/clean-package/executor.mjs +5 -5
  83. package/dist/src/executors/esbuild/executor.js +8 -8
  84. package/dist/src/executors/esbuild/executor.mjs +7 -7
  85. package/dist/src/executors/npm-publish/executor.js +4 -4
  86. package/dist/src/executors/npm-publish/executor.mjs +3 -3
  87. package/dist/src/executors/size-limit/executor.js +7 -7
  88. package/dist/src/executors/size-limit/executor.mjs +6 -6
  89. package/dist/src/executors/tsdown/executor.js +8 -8
  90. package/dist/src/executors/tsdown/executor.mjs +7 -7
  91. package/dist/src/executors/typia/executor.js +7 -7
  92. package/dist/src/executors/typia/executor.mjs +6 -6
  93. package/dist/src/executors/unbuild/executor.js +7 -7
  94. package/dist/src/executors/unbuild/executor.mjs +6 -6
  95. package/dist/src/generators/browser-library/generator.js +8 -8
  96. package/dist/src/generators/browser-library/generator.mjs +7 -7
  97. package/dist/src/generators/config-schema/generator.js +7 -7
  98. package/dist/src/generators/config-schema/generator.mjs +6 -6
  99. package/dist/src/generators/neutral-library/generator.js +8 -8
  100. package/dist/src/generators/neutral-library/generator.mjs +7 -7
  101. package/dist/src/generators/node-library/generator.js +8 -8
  102. package/dist/src/generators/node-library/generator.mjs +7 -7
  103. package/dist/src/generators/preset/generator.js +7 -7
  104. package/dist/src/generators/preset/generator.mjs +6 -6
  105. package/dist/src/generators/release-version/generator.js +5 -5
  106. package/dist/src/generators/release-version/generator.mjs +4 -4
  107. package/dist/src/utils/apply-workspace-tokens.js +4 -4
  108. package/dist/src/utils/apply-workspace-tokens.mjs +3 -3
  109. package/dist/src/utils/get-project-configurations.js +4 -4
  110. package/dist/src/utils/get-project-configurations.mjs +3 -3
  111. package/dist/src/utils/index.js +6 -6
  112. package/dist/src/utils/index.mjs +5 -5
  113. package/dist/src/utils/pnpm-deps-update.js +3 -3
  114. package/dist/src/utils/pnpm-deps-update.mjs +2 -2
  115. package/package.json +1 -1
  116. package/dist/chunk-2AUNU6UA.mjs +0 -32
  117. package/dist/chunk-BUXJSVJG.js +0 -32
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 1.246.1 (2025-01-29)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **unbuild:** Adjust the output path to handle nested directories correctly ([4fa95fe0](https://github.com/storm-software/storm-ops/commit/4fa95fe0))
6
+
1
7
  ## 1.246.0 (2025-01-29)
2
8
 
3
9
  ### 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.245.7-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.246.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 -->
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  findWorkspaceRoot
3
- } from "./chunk-ZOFW74B2.mjs";
3
+ } from "./chunk-BLG6LLHW.mjs";
4
4
  import {
5
5
  correctPaths,
6
6
  joinPaths
7
- } from "./chunk-2AUNU6UA.mjs";
7
+ } from "./chunk-NCFX2MWO.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-XUV4U54K.mjs";
@@ -6,10 +6,10 @@
6
6
 
7
7
 
8
8
 
9
- var _chunkRSILHGEUjs = require('./chunk-RSILHGEU.js');
9
+ var _chunk3EZ5RCSKjs = require('./chunk-3EZ5RCSK.js');
10
10
 
11
11
 
12
- var _chunkIBHLVELVjs = require('./chunk-IBHLVELV.js');
12
+ var _chunkAY5HELLNjs = require('./chunk-AY5HELLN.js');
13
13
 
14
14
 
15
15
 
@@ -19,10 +19,10 @@ var _chunkIBHLVELVjs = require('./chunk-IBHLVELV.js');
19
19
 
20
20
 
21
21
 
22
- var _chunkB6PUPX6Ojs = require('./chunk-B6PUPX6O.js');
22
+ var _chunkZQPK5G4Ujs = require('./chunk-ZQPK5G4U.js');
23
23
 
24
24
 
25
- var _chunkBUXJSVJGjs = require('./chunk-BUXJSVJG.js');
25
+ var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
26
26
 
27
27
 
28
28
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -74,13 +74,13 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
74
74
  if (!workspaceRoot) {
75
75
  throw new Error("Cannot find Nx workspace root");
76
76
  }
77
- const config = await _chunkB6PUPX6Ojs.getConfig.call(void 0, workspaceRoot.dir);
78
- _chunkB6PUPX6Ojs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
79
- const stopwatch = _chunkB6PUPX6Ojs.getStopwatch.call(void 0, "Build options resolution");
77
+ const config = await _chunkZQPK5G4Ujs.getConfig.call(void 0, workspaceRoot.dir);
78
+ _chunkZQPK5G4Ujs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
79
+ const stopwatch = _chunkZQPK5G4Ujs.getStopwatch.call(void 0, "Build options resolution");
80
80
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
81
81
  exitOnError: true
82
82
  });
83
- const projectJsonPath = _chunkBUXJSVJGjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
83
+ const projectJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
84
84
  if (!_fs.existsSync.call(void 0, projectJsonPath)) {
85
85
  throw new Error("Cannot find project.json configuration");
86
86
  }
@@ -93,30 +93,30 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
93
93
  }
94
94
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
95
95
  options.name ??= `${projectName}-${options.format}`;
96
- options.target ??= _chunkRSILHGEUjs.DEFAULT_TARGET;
97
- const packageJsonPath = _chunkBUXJSVJGjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
96
+ options.target ??= _chunk3EZ5RCSKjs.DEFAULT_TARGET;
97
+ const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
98
98
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
99
99
  throw new Error("Cannot find package.json configuration");
100
100
  }
101
- const env = _chunkRSILHGEUjs.getEnv.call(void 0, "tsdown", options);
101
+ const env = _chunk3EZ5RCSKjs.getEnv.call(void 0, "tsdown", options);
102
102
  const result = {
103
103
  ...options,
104
104
  config,
105
105
  ...userOptions,
106
- tsconfig: _chunkBUXJSVJGjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
106
+ tsconfig: _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
107
107
  format: options.format || "cjs",
108
- entryPoints: await _chunkRSILHGEUjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
108
+ entryPoints: await _chunk3EZ5RCSKjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
109
109
  "./src/index.ts"
110
110
  ], userOptions.emitOnAll),
111
- outdir: userOptions.outputPath || _chunkBUXJSVJGjs.joinPaths.call(void 0, "dist", projectRoot),
111
+ outdir: userOptions.outputPath || _chunkJTAXCQX6js.joinPaths.call(void 0, "dist", projectRoot),
112
112
  plugins: [],
113
113
  name: userOptions.name || projectName,
114
114
  projectConfigurations,
115
115
  projectName,
116
116
  projectGraph,
117
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkBUXJSVJGjs.joinPaths.call(void 0, projectRoot, "src"),
117
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, "src"),
118
118
  minify: userOptions.minify || !userOptions.debug,
119
- verbose: userOptions.verbose || _chunkB6PUPX6Ojs.isVerbose.call(void 0, ) || userOptions.debug === true,
119
+ verbose: userOptions.verbose || _chunkZQPK5G4Ujs.isVerbose.call(void 0, ) || userOptions.debug === true,
120
120
  includeSrc: userOptions.includeSrc === true,
121
121
  metafile: userOptions.metafile !== false,
122
122
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -150,23 +150,23 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
150
150
  return result;
151
151
  }, "resolveOptions");
152
152
  async function generatePackageJson(options) {
153
- if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkBUXJSVJGjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
154
- _chunkB6PUPX6Ojs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
155
- const stopwatch = _chunkB6PUPX6Ojs.getStopwatch.call(void 0, "Write package.json file");
156
- const packageJsonPath = _chunkBUXJSVJGjs.joinPaths.call(void 0, options.projectRoot, "project.json");
153
+ if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
154
+ _chunkZQPK5G4Ujs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
155
+ const stopwatch = _chunkZQPK5G4Ujs.getStopwatch.call(void 0, "Write package.json file");
156
+ const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, options.projectRoot, "project.json");
157
157
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
158
158
  throw new Error("Cannot find package.json configuration");
159
159
  }
160
- const packageJsonFile = await _promises2.default.readFile(_chunkBUXJSVJGjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
160
+ const packageJsonFile = await _promises2.default.readFile(_chunkJTAXCQX6js.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
161
161
  if (!packageJsonFile) {
162
162
  throw new Error("Cannot find package.json configuration file");
163
163
  }
164
164
  let packageJson = JSON.parse(packageJsonFile);
165
- packageJson = await _chunkRSILHGEUjs.addPackageDependencies.call(void 0, options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
166
- packageJson = await _chunkRSILHGEUjs.addWorkspacePackageJsonFields.call(void 0, options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
165
+ packageJson = await _chunk3EZ5RCSKjs.addPackageDependencies.call(void 0, options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
166
+ packageJson = await _chunk3EZ5RCSKjs.addWorkspacePackageJsonFields.call(void 0, options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
167
167
  packageJson.exports ??= {};
168
168
  packageJson.exports["./package.json"] ??= "./package.json";
169
- packageJson.exports["."] ??= _chunkRSILHGEUjs.addPackageJsonExport.call(void 0, "index", packageJson.type, options.sourceRoot);
169
+ packageJson.exports["."] ??= _chunk3EZ5RCSKjs.addPackageJsonExport.call(void 0, "index", packageJson.type, options.sourceRoot);
170
170
  let entryPoints = [
171
171
  {
172
172
  in: "./src/index.ts",
@@ -184,7 +184,7 @@ async function generatePackageJson(options) {
184
184
  const split = entryPoint.out.split(".");
185
185
  split.pop();
186
186
  const entry = split.join(".").replaceAll("\\", "/");
187
- packageJson.exports[`./${entry}`] ??= _chunkRSILHGEUjs.addPackageJsonExport.call(void 0, entry, packageJson.type, options.sourceRoot);
187
+ packageJson.exports[`./${entry}`] ??= _chunk3EZ5RCSKjs.addPackageJsonExport.call(void 0, entry, packageJson.type, options.sourceRoot);
188
188
  }
189
189
  }
190
190
  packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
@@ -196,15 +196,15 @@ async function generatePackageJson(options) {
196
196
  }
197
197
  return ret;
198
198
  }, packageJson.exports);
199
- await _devkit.writeJsonFile.call(void 0, _chunkBUXJSVJGjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
199
+ await _devkit.writeJsonFile.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
200
200
  stopwatch();
201
201
  }
202
202
  return options;
203
203
  }
204
204
  _chunk3GQAWCBQjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
205
205
  async function executeTSDown(options) {
206
- _chunkB6PUPX6Ojs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
207
- const stopwatch = _chunkB6PUPX6Ojs.getStopwatch.call(void 0, `${options.name} build`);
206
+ _chunkZQPK5G4Ujs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
207
+ const stopwatch = _chunkZQPK5G4Ujs.getStopwatch.call(void 0, `${options.name} build`);
208
208
  await _tsdown.build.call(void 0, {
209
209
  ...options,
210
210
  entry: options.entryPoints,
@@ -216,21 +216,21 @@ async function executeTSDown(options) {
216
216
  }
217
217
  _chunk3GQAWCBQjs.__name.call(void 0, executeTSDown, "executeTSDown");
218
218
  async function copyBuildAssets(options) {
219
- _chunkB6PUPX6Ojs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
220
- const stopwatch = _chunkB6PUPX6Ojs.getStopwatch.call(void 0, `${options.name} asset copy`);
221
- await _chunkRSILHGEUjs.copyAssets.call(void 0, options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.sourceRoot, true, false);
219
+ _chunkZQPK5G4Ujs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
220
+ const stopwatch = _chunkZQPK5G4Ujs.getStopwatch.call(void 0, `${options.name} asset copy`);
221
+ await _chunk3EZ5RCSKjs.copyAssets.call(void 0, options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.sourceRoot, true, false);
222
222
  stopwatch();
223
223
  return options;
224
224
  }
225
225
  _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
226
226
  async function reportResults(options) {
227
- _chunkB6PUPX6Ojs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
227
+ _chunkZQPK5G4Ujs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
228
228
  }
229
229
  _chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
230
230
  async function cleanOutputPath(options) {
231
231
  if (options.clean !== false && options.outdir) {
232
- _chunkB6PUPX6Ojs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
233
- const stopwatch = _chunkB6PUPX6Ojs.getStopwatch.call(void 0, `${options.name} output clean`);
232
+ _chunkZQPK5G4Ujs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
233
+ const stopwatch = _chunkZQPK5G4Ujs.getStopwatch.call(void 0, `${options.name} output clean`);
234
234
  await cleanDirectories(options.name, options.outdir, options.config);
235
235
  stopwatch();
236
236
  }
@@ -238,8 +238,8 @@ async function cleanOutputPath(options) {
238
238
  }
239
239
  _chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
240
240
  async function build(options) {
241
- _chunkB6PUPX6Ojs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
242
- const stopwatch = _chunkB6PUPX6Ojs.getStopwatch.call(void 0, "TSDown pipeline");
241
+ _chunkZQPK5G4Ujs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
242
+ const stopwatch = _chunkZQPK5G4Ujs.getStopwatch.call(void 0, "TSDown pipeline");
243
243
  try {
244
244
  const opts = Array.isArray(options) ? options : [
245
245
  options
@@ -257,11 +257,11 @@ async function build(options) {
257
257
  await reportResults(opt);
258
258
  }));
259
259
  } else {
260
- _chunkB6PUPX6Ojs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
260
+ _chunkZQPK5G4Ujs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
261
261
  }
262
- _chunkB6PUPX6Ojs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
262
+ _chunkZQPK5G4Ujs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
263
263
  } catch (error) {
264
- _chunkB6PUPX6Ojs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
264
+ _chunkZQPK5G4Ujs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
265
265
  throw error;
266
266
  } finally {
267
267
  stopwatch();
@@ -271,7 +271,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, build, "build");
271
271
 
272
272
  // src/executors/tsdown/executor.ts
273
273
  async function tsdownExecutorFn(options, context, config) {
274
- _chunkB6PUPX6Ojs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
274
+ _chunkZQPK5G4Ujs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
275
275
  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])) {
276
276
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
277
277
  }
@@ -288,7 +288,7 @@ async function tsdownExecutorFn(options, context, config) {
288
288
  };
289
289
  }
290
290
  _chunk3GQAWCBQjs.__name.call(void 0, tsdownExecutorFn, "tsdownExecutorFn");
291
- var executor_default = _chunkIBHLVELVjs.withRunExecutor.call(void 0, "Storm TSDown build executor", tsdownExecutorFn, {
291
+ var executor_default = _chunkAY5HELLNjs.withRunExecutor.call(void 0, "Storm TSDown build executor", tsdownExecutorFn, {
292
292
  skipReadingConfig: false,
293
293
  hooks: {
294
294
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkU6TLQT5Hjs = require('./chunk-U6TLQT5H.js');
3
+ var _chunk6V5GP3U4js = require('./chunk-6V5GP3U4.js');
4
4
 
5
5
 
6
6
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -32,7 +32,7 @@ var applyWorkspaceBaseTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void
32
32
  }
33
33
  }
34
34
  if (result.includes("{workspaceRoot}")) {
35
- result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _2 => _2.config, 'optionalAccess', _3 => _3.workspaceRoot]))), () => ( _chunkU6TLQT5Hjs.findWorkspaceRoot.call(void 0, ))));
35
+ result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _2 => _2.config, 'optionalAccess', _3 => _3.workspaceRoot]))), () => ( _chunk6V5GP3U4js.findWorkspaceRoot.call(void 0, ))));
36
36
  }
37
37
  return result;
38
38
  }, "applyWorkspaceBaseTokens");
@@ -1,14 +1,14 @@
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(); } }
2
2
 
3
3
 
4
- var _chunkB6PUPX6Ojs = require('./chunk-B6PUPX6O.js');
4
+ var _chunkZQPK5G4Ujs = require('./chunk-ZQPK5G4U.js');
5
5
 
6
6
 
7
- var _chunkU6TLQT5Hjs = require('./chunk-U6TLQT5H.js');
7
+ var _chunk6V5GP3U4js = require('./chunk-6V5GP3U4.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkBUXJSVJGjs = require('./chunk-BUXJSVJG.js');
11
+ var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
12
12
 
13
13
 
14
14
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -54,8 +54,8 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
54
54
  output: "src/"
55
55
  });
56
56
  }
57
- _chunkB6PUPX6Ojs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
58
- ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkBUXJSVJGjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
57
+ _chunkZQPK5G4Ujs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
58
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkJTAXCQX6js.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
59
59
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
60
60
  projectDir: projectRoot,
61
61
  rootDir: config.workspaceRoot,
@@ -64,12 +64,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
64
64
  });
65
65
  await assetHandler.processAllAssetsOnce();
66
66
  if (includeSrc === true) {
67
- _chunkB6PUPX6Ojs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkBUXJSVJGjs.joinPaths.call(void 0, outputPath, "src")}`, config);
67
+ _chunkZQPK5G4Ujs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkJTAXCQX6js.joinPaths.call(void 0, outputPath, "src")}`, config);
68
68
  const files = await _glob.glob.call(void 0, [
69
- _chunkBUXJSVJGjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
70
- _chunkBUXJSVJGjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
71
- _chunkBUXJSVJGjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
72
- _chunkBUXJSVJGjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
69
+ _chunkJTAXCQX6js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
70
+ _chunkJTAXCQX6js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
71
+ _chunkJTAXCQX6js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
72
+ _chunkJTAXCQX6js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
73
73
  ]);
74
74
  await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
75
75
 
@@ -91,7 +91,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
91
91
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot)) {
92
92
  const projectNode = project.node;
93
93
  if (projectNode.data.root) {
94
- const projectPackageJsonPath = _chunkBUXJSVJGjs.joinPaths.call(void 0, workspaceRoot, projectNode.data.root, "package.json");
94
+ const projectPackageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, workspaceRoot, projectNode.data.root, "package.json");
95
95
  if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
96
96
  const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
97
97
  const projectPackageJson = JSON.parse(projectPackageJsonContent);
@@ -102,7 +102,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
102
102
  }
103
103
  }
104
104
  if (localPackages.length > 0) {
105
- _chunkB6PUPX6Ojs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
105
+ _chunkZQPK5G4Ujs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
106
106
  packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
107
107
  if (!ret[localPackage.name]) {
108
108
  ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
@@ -124,13 +124,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
124
124
  return ret;
125
125
  }, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
126
126
  } else {
127
- _chunkB6PUPX6Ojs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
127
+ _chunkZQPK5G4Ujs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
128
128
  }
129
129
  return packageJson;
130
130
  }, "addPackageDependencies");
131
131
  var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
132
- const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkU6TLQT5Hjs.findWorkspaceRoot.call(void 0, );
133
- const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkBUXJSVJGjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
132
+ const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunk6V5GP3U4js.findWorkspaceRoot.call(void 0, );
133
+ const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
134
134
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
135
135
  packageJson.type ??= "module";
136
136
  packageJson.sideEffects ??= false;
@@ -139,7 +139,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call
139
139
  if (distSrc.startsWith("/")) {
140
140
  distSrc = distSrc.substring(1);
141
141
  }
142
- packageJson.source ??= `${_chunkBUXJSVJGjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
142
+ packageJson.source ??= `${_chunkJTAXCQX6js.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
143
143
  }
144
144
  packageJson.files ??= [
145
145
  "dist/**/*"
@@ -170,7 +170,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call
170
170
  ];
171
171
  }
172
172
  packageJson.repository ??= workspacePackageJson.repository;
173
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkBUXJSVJGjs.joinPaths.call(void 0, "packages", projectName);
173
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkJTAXCQX6js.joinPaths.call(void 0, "packages", projectName);
174
174
  return packageJson;
175
175
  }, "addWorkspacePackageJsonFields");
176
176
  var addPackageJsonExport = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (file, type = "module", sourceRoot) => {
@@ -197,7 +197,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
197
197
  // ../build-tools/src/utilities/get-entry-points.ts
198
198
 
199
199
  var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
200
- const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkU6TLQT5Hjs.findWorkspaceRoot.call(void 0, );
200
+ const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunk6V5GP3U4js.findWorkspaceRoot.call(void 0, );
201
201
  const entryPoints = [];
202
202
  if (entry) {
203
203
  if (Array.isArray(entry)) {
@@ -209,7 +209,7 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
209
209
  }
210
210
  }
211
211
  if (emitOnAll) {
212
- entryPoints.push(_chunkBUXJSVJGjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
212
+ entryPoints.push(_chunkJTAXCQX6js.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
213
213
  }
214
214
  const results = [];
215
215
  for (const entryPoint in entryPoints) {
@@ -218,9 +218,9 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
218
218
  withFileTypes: true
219
219
  });
220
220
  results.push(...files.reduce((ret, filePath) => {
221
- const result = _chunkBUXJSVJGjs.correctPaths.call(void 0, _chunkBUXJSVJGjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkBUXJSVJGjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkBUXJSVJGjs.correctPaths.call(void 0, projectRoot), ""));
221
+ const result = _chunkJTAXCQX6js.correctPaths.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, projectRoot), ""));
222
222
  if (result) {
223
- _chunkB6PUPX6Ojs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkBUXJSVJGjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
223
+ _chunkZQPK5G4Ujs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkJTAXCQX6js.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
224
224
  if (!results.includes(result)) {
225
225
  results.push(result);
226
226
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  findWorkspaceRoot
3
- } from "./chunk-ZOFW74B2.mjs";
3
+ } from "./chunk-BLG6LLHW.mjs";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-XUV4U54K.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-QZHIWK5Z.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-GJ6DN3BR.mjs";
7
+ } from "./chunk-AQLXZBXJ.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-XUV4U54K.mjs";