@storm-software/cloudflare-tools 0.55.59 → 0.55.61

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 (31) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-QHEOKFFX.mjs → chunk-FUE6U32Q.mjs} +1 -1
  4. package/dist/{chunk-4CNZ5PH2.mjs → chunk-I4BEGOU2.mjs} +12 -6
  5. package/dist/{chunk-ZZMK5H75.js → chunk-J67QGNB5.js} +4 -4
  6. package/dist/{chunk-A6L4ZGKM.js → chunk-KLU3MC7D.js} +204 -41
  7. package/dist/{chunk-UHTKO6PS.mjs → chunk-OZZB2O7W.mjs} +2 -2
  8. package/dist/{chunk-U2GYOTAE.js → chunk-QYQD76ND.js} +12 -6
  9. package/dist/{chunk-PUQB7POQ.js → chunk-RC7NR5DM.js} +1 -1
  10. package/dist/{chunk-I3INFEES.js → chunk-XFDLWZLO.js} +2 -2
  11. package/dist/{chunk-K5VN3HED.mjs → chunk-Y5KOP5W7.mjs} +187 -24
  12. package/dist/{chunk-TTTVOVML.mjs → chunk-YSDG777H.mjs} +1 -1
  13. package/dist/executors.js +3 -3
  14. package/dist/executors.mjs +3 -3
  15. package/dist/generators.js +4 -4
  16. package/dist/generators.mjs +3 -3
  17. package/dist/index.d.mts +14 -1
  18. package/dist/index.d.ts +14 -1
  19. package/dist/index.js +6 -6
  20. package/dist/index.mjs +5 -5
  21. package/dist/src/executors/cloudflare-publish/executor.js +2 -2
  22. package/dist/src/executors/cloudflare-publish/executor.mjs +2 -2
  23. package/dist/src/executors/r2-upload-publish/executor.js +3 -3
  24. package/dist/src/executors/r2-upload-publish/executor.mjs +2 -2
  25. package/dist/src/executors/serve/executor.js +3 -3
  26. package/dist/src/executors/serve/executor.mjs +2 -2
  27. package/dist/src/generators/init/generator.js +2 -2
  28. package/dist/src/generators/init/generator.mjs +1 -1
  29. package/dist/src/generators/worker/generator.js +4 -4
  30. package/dist/src/generators/worker/generator.mjs +3 -3
  31. package/package.json +11 -11
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  # Changelog for Storm Ops - Cloudflare Tools
4
4
 
5
+ ## [0.55.61](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.61) (2025-04-16)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Regenerate README markdown files
10
+ ([762e7076f](https://github.com/storm-software/storm-ops/commit/762e7076f))
11
+
12
+ ## [0.55.60](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.60) (2025-04-15)
13
+
14
+ ### Miscellaneous
15
+
16
+ - **monorepo:** Regenerate README markdown files
17
+ ([57ce01f17](https://github.com/storm-software/storm-ops/commit/57ce01f17))
18
+
5
19
  ## [0.55.59](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.59) (2025-04-15)
6
20
 
7
21
  ### Miscellaneous
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.55.58-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.55.61-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 -->
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-H36VLRVB.mjs";
9
9
  import {
10
10
  getConfig
11
- } from "./chunk-4CNZ5PH2.mjs";
11
+ } from "./chunk-I4BEGOU2.mjs";
12
12
  import {
13
13
  findWorkspaceRoot,
14
14
  writeDebug,
@@ -135,12 +135,12 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
135
135
  configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
136
136
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
137
137
  directories: {
138
- cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : void 0,
139
- data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : void 0,
140
- config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : void 0,
141
- temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : void 0,
142
- log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : void 0,
143
- build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
138
+ cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
139
+ data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? correctPaths(process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
140
+ config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? correctPaths(process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
141
+ temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? correctPaths(process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
142
+ log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? correctPaths(process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
143
+ build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? correctPaths(process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
144
144
  },
145
145
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
146
146
  mode: (process.env[`${prefix}MODE`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
@@ -360,21 +360,27 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
360
360
  if (config.directories) {
361
361
  if (!config.skipCache && config.directories.cache) {
362
362
  process.env[`${prefix}CACHE_DIR`] = correctPaths(config.directories.cache);
363
+ process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
363
364
  }
364
365
  if (config.directories.data) {
365
366
  process.env[`${prefix}DATA_DIR`] = correctPaths(config.directories.data);
367
+ process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
366
368
  }
367
369
  if (config.directories.config) {
368
370
  process.env[`${prefix}CONFIG_DIR`] = correctPaths(config.directories.config);
371
+ process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
369
372
  }
370
373
  if (config.directories.temp) {
371
374
  process.env[`${prefix}TEMP_DIR`] = correctPaths(config.directories.temp);
375
+ process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
372
376
  }
373
377
  if (config.directories.log) {
374
378
  process.env[`${prefix}LOG_DIR`] = correctPaths(config.directories.log);
379
+ process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
375
380
  }
376
381
  if (config.directories.build) {
377
382
  process.env[`${prefix}BUILD_DIR`] = correctPaths(config.directories.build);
383
+ process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
378
384
  }
379
385
  }
380
386
  if (config.skipCache !== void 0) {
@@ -1,9 +1,9 @@
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 _chunkPUQB7POQjs = require('./chunk-PUQB7POQ.js');
3
+ var _chunkRC7NR5DMjs = require('./chunk-RC7NR5DM.js');
4
4
 
5
5
 
6
- var _chunkU2GYOTAEjs = require('./chunk-U2GYOTAE.js');
6
+ var _chunkQYQD76NDjs = require('./chunk-QYQD76ND.js');
7
7
 
8
8
 
9
9
 
@@ -47,12 +47,12 @@ async function applicationGenerator(tree, schema) {
47
47
  const workspaceRoot = _chunkWNICDYXYjs.findWorkspaceRoot.call(void 0, );
48
48
  _chunkWNICDYXYjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.json file...
49
49
  - workspaceRoot: ${workspaceRoot}`, config);
50
- config = await _chunkU2GYOTAEjs.getConfig.call(void 0, workspaceRoot);
50
+ config = await _chunkQYQD76NDjs.getConfig.call(void 0, workspaceRoot);
51
51
  _chunkWNICDYXYjs.writeTrace.call(void 0, `Loaded Storm config into env:
52
52
  ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`, config);
53
53
  const options = await normalizeOptions(tree, schema, config);
54
54
  const tasks = [];
55
- tasks.push(await _chunkPUQB7POQjs.generator_default.call(void 0, tree, {
55
+ tasks.push(await _chunkRC7NR5DMjs.generator_default.call(void 0, tree, {
56
56
  ...options,
57
57
  skipFormat: true
58
58
  }));
@@ -1,10 +1,10 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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; }
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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; } var _class;
2
2
 
3
3
 
4
4
  var _chunkVTHBMY4Bjs = require('./chunk-VTHBMY4B.js');
5
5
 
6
6
 
7
- var _chunkU2GYOTAEjs = require('./chunk-U2GYOTAE.js');
7
+ var _chunkQYQD76NDjs = require('./chunk-QYQD76ND.js');
8
8
 
9
9
 
10
10
 
@@ -121,7 +121,7 @@ var withRunExecutor = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (name
121
121
  - sourceRoot: ${sourceRoot}
122
122
  - projectName: ${projectName}
123
123
  `, config);
124
- config = await _chunkU2GYOTAEjs.getConfig.call(void 0, workspaceRoot3);
124
+ config = await _chunkQYQD76NDjs.getConfig.call(void 0, workspaceRoot3);
125
125
  }
126
126
  if (_optionalChain([executorOptions, 'optionalAccess', _7 => _7.hooks, 'optionalAccess', _8 => _8.applyDefaultOptions])) {
127
127
  _chunkWNICDYXYjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
@@ -1027,7 +1027,7 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, bundleTypeDefinitions, "bundleTypeDefinitio
1027
1027
  var tscPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, resolvedOptions) => ({
1028
1028
  name: "storm:tsc",
1029
1029
  setup(build4) {
1030
- if (options.emitTypes === false) {
1030
+ if (options.dts === false) {
1031
1031
  return;
1032
1032
  }
1033
1033
  build4.onStart(async () => {
@@ -1079,7 +1079,7 @@ var getDefaultBuildPlugins = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
1079
1079
  var DEFAULT_BUILD_OPTIONS = {
1080
1080
  platform: "node",
1081
1081
  target: "node22",
1082
- format: "cjs",
1082
+ format: "esm",
1083
1083
  external: [],
1084
1084
  logLevel: "error",
1085
1085
  tsconfig: "tsconfig.json",
@@ -1228,6 +1228,155 @@ var shebangRenderer = {
1228
1228
  }
1229
1229
  };
1230
1230
 
1231
+ // ../esbuild/src/tsc.ts
1232
+ var _bundlerequire = require('bundle-require');
1233
+
1234
+
1235
+
1236
+ var _typescript = require('typescript'); var _typescript2 = _interopRequireDefault(_typescript);
1237
+ function ensureTempDeclarationDir(workspaceConfig) {
1238
+ const root = workspaceConfig.directories.temp || _path.join.call(void 0, workspaceConfig.workspaceRoot, "tmp");
1239
+ const dirPath = _path.join.call(void 0, root, ".tsc", "declaration");
1240
+ if (_fs.existsSync.call(void 0, dirPath)) {
1241
+ return dirPath;
1242
+ }
1243
+ _fs.mkdirSync.call(void 0, dirPath, {
1244
+ recursive: true
1245
+ });
1246
+ const gitIgnorePath = _path.join.call(void 0, root, ".tsc", ".gitignore");
1247
+ _fs.writeFileSync.call(void 0, gitIgnorePath, "**/*\n");
1248
+ return dirPath;
1249
+ }
1250
+ _chunkJ5SB6L2Ljs.__name.call(void 0, ensureTempDeclarationDir, "ensureTempDeclarationDir");
1251
+ function slash(path7) {
1252
+ const isExtendedLengthPath = path7.startsWith("\\\\?\\");
1253
+ if (isExtendedLengthPath) {
1254
+ return path7;
1255
+ }
1256
+ return path7.replace(/\\/g, "/");
1257
+ }
1258
+ _chunkJ5SB6L2Ljs.__name.call(void 0, slash, "slash");
1259
+ function toAbsolutePath(workspaceConfig, p, cwd) {
1260
+ if (_path.isAbsolute.call(void 0, p)) {
1261
+ return p;
1262
+ }
1263
+ return slash(_path.normalize.call(void 0, _path.join.call(void 0, cwd || workspaceConfig.workspaceRoot, p)));
1264
+ }
1265
+ _chunkJ5SB6L2Ljs.__name.call(void 0, toAbsolutePath, "toAbsolutePath");
1266
+ var AliasPool = (_class = class AliasPool2 {constructor() { _class.prototype.__init.call(this); }
1267
+ static {
1268
+ _chunkJ5SB6L2Ljs.__name.call(void 0, this, "AliasPool");
1269
+ }
1270
+ __init() {this.seen = /* @__PURE__ */ new Set()}
1271
+ assign(name) {
1272
+ let suffix = 0;
1273
+ let alias = name === "default" ? "default_alias" : name;
1274
+ while (this.seen.has(alias)) {
1275
+ alias = `${name}_alias_${++suffix}`;
1276
+ if (suffix >= 1e3) {
1277
+ throw new Error("Alias generation exceeded limit. Possible infinite loop detected.");
1278
+ }
1279
+ }
1280
+ this.seen.add(alias);
1281
+ return alias;
1282
+ }
1283
+ }, _class);
1284
+ function getExports(workspaceConfig, program, fileMapping) {
1285
+ const checker = program.getTypeChecker();
1286
+ const aliasPool = new AliasPool();
1287
+ const assignAlias = aliasPool.assign.bind(aliasPool);
1288
+ function extractExports(sourceFileName) {
1289
+ const cwd = program.getCurrentDirectory();
1290
+ sourceFileName = toAbsolutePath(workspaceConfig, sourceFileName, cwd);
1291
+ const sourceFile = program.getSourceFile(sourceFileName);
1292
+ if (!sourceFile) {
1293
+ return [];
1294
+ }
1295
+ const destFileName = fileMapping.get(sourceFileName);
1296
+ if (!destFileName) {
1297
+ return [];
1298
+ }
1299
+ const moduleSymbol = checker.getSymbolAtLocation(sourceFile);
1300
+ if (!moduleSymbol) {
1301
+ return [];
1302
+ }
1303
+ const exports = [];
1304
+ const exportSymbols = checker.getExportsOfModule(moduleSymbol);
1305
+ exportSymbols.forEach((symbol) => {
1306
+ const name = symbol.getName();
1307
+ exports.push({
1308
+ kind: "named",
1309
+ sourceFileName,
1310
+ destFileName,
1311
+ name,
1312
+ alias: assignAlias(name),
1313
+ isTypeOnly: false
1314
+ });
1315
+ });
1316
+ return exports;
1317
+ }
1318
+ _chunkJ5SB6L2Ljs.__name.call(void 0, extractExports, "extractExports");
1319
+ return program.getRootFileNames().flatMap(extractExports);
1320
+ }
1321
+ _chunkJ5SB6L2Ljs.__name.call(void 0, getExports, "getExports");
1322
+ function emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles = true, customTransformers) {
1323
+ const fileMapping = /* @__PURE__ */ new Map();
1324
+ const writeFile3 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (fileName, text, writeByteOrderMark, onError, sourceFiles, data) => {
1325
+ const sourceFile = _optionalChain([sourceFiles, 'optionalAccess', _73 => _73[0]]);
1326
+ const sourceFileName = _optionalChain([sourceFile, 'optionalAccess', _74 => _74.fileName]);
1327
+ if (sourceFileName && !fileName.endsWith(".map")) {
1328
+ const cwd = program.getCurrentDirectory();
1329
+ fileMapping.set(toAbsolutePath(workspaceConfig, sourceFileName, cwd), toAbsolutePath(workspaceConfig, fileName, cwd));
1330
+ }
1331
+ return host.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);
1332
+ }, "writeFile");
1333
+ const emitResult = program.emit(void 0, writeFile3, void 0, emitOnlyDtsFiles, customTransformers);
1334
+ const diagnostics = _typescript2.default.getPreEmitDiagnostics(program).concat(emitResult.diagnostics);
1335
+ const diagnosticMessages = [];
1336
+ diagnostics.forEach((diagnostic) => {
1337
+ if (diagnostic.file) {
1338
+ const { line, character } = _typescript2.default.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start);
1339
+ const message = _typescript2.default.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
1340
+ diagnosticMessages.push(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`);
1341
+ } else {
1342
+ const message = _typescript2.default.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
1343
+ diagnosticMessages.push(message);
1344
+ }
1345
+ });
1346
+ const diagnosticMessage = diagnosticMessages.join("\n");
1347
+ if (diagnosticMessage) {
1348
+ _chunkWNICDYXYjs.writeError.call(void 0, `Failed to emit declaration files.
1349
+
1350
+ ${diagnosticMessage}`, workspaceConfig);
1351
+ throw new Error("TypeScript compilation failed");
1352
+ }
1353
+ return fileMapping;
1354
+ }
1355
+ _chunkJ5SB6L2Ljs.__name.call(void 0, emitDtsFiles, "emitDtsFiles");
1356
+ function emitDts(workspaceConfig, tsconfig, tsconfigRaw, emitOnlyDtsFiles = true, customTransformers) {
1357
+ const rawTsconfig = _bundlerequire.loadTsConfig.call(void 0, workspaceConfig.workspaceRoot, tsconfig);
1358
+ if (!rawTsconfig) {
1359
+ throw new Error(`Unable to find ${tsconfig || "tsconfig.json"} in ${workspaceConfig.workspaceRoot}`);
1360
+ }
1361
+ const declarationDir = ensureTempDeclarationDir(workspaceConfig);
1362
+ const parsedTsconfig = _typescript2.default.parseJsonConfigFileContent(_defu2.default.call(void 0, {
1363
+ compilerOptions: {
1364
+ // Enable declaration emit and disable javascript emit
1365
+ noEmit: false,
1366
+ declaration: true,
1367
+ declarationMap: true,
1368
+ declarationDir,
1369
+ emitDeclarationOnly: true
1370
+ }
1371
+ }, _nullishCoalesce(_optionalChain([tsconfigRaw, 'optionalAccess', _75 => _75.compilerOptions]), () => ( {})), _nullishCoalesce(rawTsconfig.data, () => ( {}))), _typescript2.default.sys, tsconfig ? _path.dirname.call(void 0, tsconfig) : "./");
1372
+ const options = parsedTsconfig.options;
1373
+ const host = _typescript2.default.createCompilerHost(options);
1374
+ const program = _typescript2.default.createProgram(parsedTsconfig.fileNames, options, host);
1375
+ const fileMapping = emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles, customTransformers);
1376
+ return getExports(workspaceConfig, program, fileMapping);
1377
+ }
1378
+ _chunkJ5SB6L2Ljs.__name.call(void 0, emitDts, "emitDts");
1379
+
1231
1380
  // ../esbuild/src/utilities/get-entry-points.ts
1232
1381
 
1233
1382
  var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
@@ -1356,7 +1505,7 @@ function pipeSync(fn, ...fns) {
1356
1505
  return (...args) => {
1357
1506
  let result = fn(...args);
1358
1507
  for (let i = 0; result !== skip && i < fns.length; ++i) {
1359
- result = _optionalChain([fns, 'access', _73 => _73[i], 'optionalCall', _74 => _74(result)]);
1508
+ result = _optionalChain([fns, 'access', _76 => _76[i], 'optionalCall', _77 => _77(result)]);
1360
1509
  }
1361
1510
  return result;
1362
1511
  };
@@ -1366,7 +1515,7 @@ function pipeAsync(fn, ...fns) {
1366
1515
  return async (...args) => {
1367
1516
  let result = await fn(...args);
1368
1517
  for (let i = 0; result !== skip && i < fns.length; ++i) {
1369
- result = await _optionalChain([fns, 'access', _75 => _75[i], 'optionalCall', _76 => _76(result)]);
1518
+ result = await _optionalChain([fns, 'access', _78 => _78[i], 'optionalCall', _79 => _79(result)]);
1370
1519
  }
1371
1520
  return result;
1372
1521
  };
@@ -1382,7 +1531,7 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1382
1531
  if (!workspaceRoot3) {
1383
1532
  throw new Error("Cannot find Nx workspace root");
1384
1533
  }
1385
- const config = await _chunkU2GYOTAEjs.getConfig.call(void 0, workspaceRoot3.dir);
1534
+ const config = await _chunkQYQD76NDjs.getConfig.call(void 0, workspaceRoot3.dir);
1386
1535
  _chunkWNICDYXYjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1387
1536
  const stopwatch = _chunkWNICDYXYjs.getStopwatch.call(void 0, "Build options resolution");
1388
1537
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
@@ -1396,7 +1545,7 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1396
1545
  const projectJson = JSON.parse(projectJsonFile);
1397
1546
  const projectName = projectJson.name;
1398
1547
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
1399
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _77 => _77.projects, 'optionalAccess', _78 => _78[projectName]])) {
1548
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _80 => _80.projects, 'optionalAccess', _81 => _81[projectName]])) {
1400
1549
  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.");
1401
1550
  }
1402
1551
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
@@ -1560,6 +1709,7 @@ async function executeEsBuild(context2) {
1560
1709
  options.inject === {}) {
1561
1710
  delete options.inject;
1562
1711
  }
1712
+ delete options.dts;
1563
1713
  delete options.env;
1564
1714
  delete options.name;
1565
1715
  delete options.assets;
@@ -1595,8 +1745,18 @@ ${_chunkWNICDYXYjs.formatLogMessage.call(void 0, {
1595
1745
  return context2;
1596
1746
  }
1597
1747
  _chunkJ5SB6L2Ljs.__name.call(void 0, executeEsBuild, "executeEsBuild");
1748
+ async function executeTypescript(context2) {
1749
+ if (_optionalChain([context2, 'access', _82 => _82.result, 'optionalAccess', _83 => _83.errors, 'access', _84 => _84.length]) === 0 && context2.options.dts) {
1750
+ _chunkWNICDYXYjs.writeDebug.call(void 0, ` \u{1F4CB} Running TypeScript Compiler for ${context2.options.name}`, context2.options.config);
1751
+ const stopwatch = _chunkWNICDYXYjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1752
+ await emitDts(context2.options.config, context2.options.tsconfig, context2.options.tsconfigRaw, true);
1753
+ stopwatch();
1754
+ }
1755
+ return context2;
1756
+ }
1757
+ _chunkJ5SB6L2Ljs.__name.call(void 0, executeTypescript, "executeTypescript");
1598
1758
  async function copyBuildAssets(context2) {
1599
- if (_optionalChain([context2, 'access', _79 => _79.result, 'optionalAccess', _80 => _80.errors, 'access', _81 => _81.length]) === 0) {
1759
+ if (_optionalChain([context2, 'access', _85 => _85.result, 'optionalAccess', _86 => _86.errors, 'access', _87 => _87.length]) === 0) {
1600
1760
  _chunkWNICDYXYjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1601
1761
  const stopwatch = _chunkWNICDYXYjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1602
1762
  await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
@@ -1606,11 +1766,14 @@ async function copyBuildAssets(context2) {
1606
1766
  }
1607
1767
  _chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
1608
1768
  async function reportResults(context2) {
1609
- if (_optionalChain([context2, 'access', _82 => _82.result, 'optionalAccess', _83 => _83.errors, 'access', _84 => _84.length]) === 0) {
1769
+ if (_optionalChain([context2, 'access', _88 => _88.result, 'optionalAccess', _89 => _89.errors, 'access', _90 => _90.length]) === 0) {
1610
1770
  if (context2.result.warnings.length > 0) {
1611
1771
  _chunkWNICDYXYjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
1612
1772
  }
1613
1773
  _chunkWNICDYXYjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
1774
+ } else if (_optionalChain([context2, 'access', _91 => _91.result, 'optionalAccess', _92 => _92.errors]) && _optionalChain([context2, 'access', _93 => _93.result, 'optionalAccess', _94 => _94.errors, 'access', _95 => _95.length]) > 0) {
1775
+ _chunkWNICDYXYjs.writeError.call(void 0, ` \u274C The ${context2.options.name} build failed with the following errors: ${context2.result.errors.map((error) => error.text).join("\n")}`, context2.options.config);
1776
+ throw new Error(`The ${context2.options.name} build failed with the following errors: ${context2.result.errors.map((error) => error.text).join("\n")}`);
1614
1777
  }
1615
1778
  }
1616
1779
  _chunkJ5SB6L2Ljs.__name.call(void 0, reportResults, "reportResults");
@@ -1665,7 +1828,7 @@ async function build3(options) {
1665
1828
  throw new Error("No build options were provided");
1666
1829
  }
1667
1830
  void transduce.async(opts, dependencyCheck);
1668
- await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
1831
+ await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeTypescript, executeEsBuild, copyBuildAssets, reportResults));
1669
1832
  _chunkWNICDYXYjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1670
1833
  } catch (error) {
1671
1834
  _chunkWNICDYXYjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
@@ -1707,14 +1870,14 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
1707
1870
  // ../workspace-tools/src/executors/esbuild/executor.ts
1708
1871
  async function esbuildExecutorFn(options, context2, config) {
1709
1872
  _chunkWNICDYXYjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1710
- if (!_optionalChain([context2, 'access', _85 => _85.projectsConfigurations, 'optionalAccess', _86 => _86.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _87 => _87.projectsConfigurations, 'access', _88 => _88.projects, 'access', _89 => _89[context2.projectName], 'optionalAccess', _90 => _90.root])) {
1873
+ if (!_optionalChain([context2, 'access', _96 => _96.projectsConfigurations, 'optionalAccess', _97 => _97.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _98 => _98.projectsConfigurations, 'access', _99 => _99.projects, 'access', _100 => _100[context2.projectName], 'optionalAccess', _101 => _101.root])) {
1711
1874
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1712
1875
  }
1713
1876
  await build3({
1714
1877
  ...options,
1715
- projectRoot: _optionalChain([context2, 'access', _91 => _91.projectsConfigurations, 'access', _92 => _92.projects, 'optionalAccess', _93 => _93[context2.projectName], 'access', _94 => _94.root]),
1878
+ projectRoot: _optionalChain([context2, 'access', _102 => _102.projectsConfigurations, 'access', _103 => _103.projects, 'optionalAccess', _104 => _104[context2.projectName], 'access', _105 => _105.root]),
1716
1879
  projectName: context2.projectName,
1717
- sourceRoot: _optionalChain([context2, 'access', _95 => _95.projectsConfigurations, 'access', _96 => _96.projects, 'optionalAccess', _97 => _97[context2.projectName], 'optionalAccess', _98 => _98.sourceRoot]),
1880
+ sourceRoot: _optionalChain([context2, 'access', _106 => _106.projectsConfigurations, 'access', _107 => _107.projects, 'optionalAccess', _108 => _108[context2.projectName], 'optionalAccess', _109 => _109.sourceRoot]),
1718
1881
  format: options.format,
1719
1882
  platform: options.format
1720
1883
  });
@@ -1757,7 +1920,7 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
1757
1920
  var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
1758
1921
  var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
1759
1922
  async function sizeLimitExecutorFn(options, context2, config) {
1760
- if (!_optionalChain([context2, 'optionalAccess', _99 => _99.projectName]) || !_optionalChain([context2, 'access', _100 => _100.projectsConfigurations, 'optionalAccess', _101 => _101.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1923
+ if (!_optionalChain([context2, 'optionalAccess', _110 => _110.projectName]) || !_optionalChain([context2, 'access', _111 => _111.projectsConfigurations, 'optionalAccess', _112 => _112.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1761
1924
  throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
1762
1925
  }
1763
1926
  _chunkWNICDYXYjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
@@ -1766,7 +1929,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
1766
1929
  _esbuild3.default,
1767
1930
  _esbuildwhy2.default
1768
1931
  ], {
1769
- checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _102 => _102.projectsConfigurations, 'access', _103 => _103.projects, 'access', _104 => _104[context2.projectName], 'optionalAccess', _105 => _105.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _106 => _106.projectsConfigurations, 'access', _107 => _107.projects, 'access', _108 => _108[context2.projectName], 'optionalAccess', _109 => _109.root]), () => ( "./")), "src")))
1932
+ checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _113 => _113.projectsConfigurations, 'access', _114 => _114.projects, 'access', _115 => _115[context2.projectName], 'optionalAccess', _116 => _116.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _117 => _117.projectsConfigurations, 'access', _118 => _118.projects, 'access', _119 => _119[context2.projectName], 'optionalAccess', _120 => _120.root]), () => ( "./")), "src")))
1770
1933
  }).then((result) => {
1771
1934
  _chunkWNICDYXYjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1772
1935
  });
@@ -1825,7 +1988,7 @@ var executor_default8 = withRunExecutor("Typia runtime validation generator", ty
1825
1988
  var _jiti = require('jiti');
1826
1989
  async function unbuildExecutorFn(options, context2, config) {
1827
1990
  _chunkWNICDYXYjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
1828
- if (!_optionalChain([context2, 'access', _110 => _110.projectsConfigurations, 'optionalAccess', _111 => _111.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
1991
+ if (!_optionalChain([context2, 'access', _121 => _121.projectsConfigurations, 'optionalAccess', _122 => _122.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
1829
1992
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
1830
1993
  }
1831
1994
  if (!context2.projectsConfigurations.projects[context2.projectName].root) {
@@ -1907,9 +2070,9 @@ var withRunGenerator = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (nam
1907
2070
  if (!generatorOptions.skipReadingConfig) {
1908
2071
  _chunkWNICDYXYjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
1909
2072
  - workspaceRoot: ${workspaceRoot3}`, config);
1910
- config = await _chunkU2GYOTAEjs.getConfig.call(void 0, workspaceRoot3);
2073
+ config = await _chunkQYQD76NDjs.getConfig.call(void 0, workspaceRoot3);
1911
2074
  }
1912
- if (_optionalChain([generatorOptions, 'optionalAccess', _112 => _112.hooks, 'optionalAccess', _113 => _113.applyDefaultOptions])) {
2075
+ if (_optionalChain([generatorOptions, 'optionalAccess', _123 => _123.hooks, 'optionalAccess', _124 => _124.applyDefaultOptions])) {
1913
2076
  _chunkWNICDYXYjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
1914
2077
  options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
1915
2078
  _chunkWNICDYXYjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
@@ -1920,22 +2083,22 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
1920
2083
  workspaceRoot: tree.root,
1921
2084
  config
1922
2085
  }, applyWorkspaceBaseTokens);
1923
- if (_optionalChain([generatorOptions, 'optionalAccess', _114 => _114.hooks, 'optionalAccess', _115 => _115.preProcess])) {
2086
+ if (_optionalChain([generatorOptions, 'optionalAccess', _125 => _125.hooks, 'optionalAccess', _126 => _126.preProcess])) {
1924
2087
  _chunkWNICDYXYjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
1925
2088
  await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
1926
2089
  _chunkWNICDYXYjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
1927
2090
  }
1928
2091
  const result = await Promise.resolve(generatorFn(tree, tokenized, config));
1929
2092
  if (result) {
1930
- if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _116 => _116.error, 'optionalAccess', _117 => _117.message]) && typeof _optionalChain([result, 'optionalAccess', _118 => _118.error, 'optionalAccess', _119 => _119.message]) === "string" && _optionalChain([result, 'optionalAccess', _120 => _120.error, 'optionalAccess', _121 => _121.name]) && typeof _optionalChain([result, 'optionalAccess', _122 => _122.error, 'optionalAccess', _123 => _123.name]) === "string") {
2093
+ if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _127 => _127.error, 'optionalAccess', _128 => _128.message]) && typeof _optionalChain([result, 'optionalAccess', _129 => _129.error, 'optionalAccess', _130 => _130.message]) === "string" && _optionalChain([result, 'optionalAccess', _131 => _131.error, 'optionalAccess', _132 => _132.name]) && typeof _optionalChain([result, 'optionalAccess', _133 => _133.error, 'optionalAccess', _134 => _134.name]) === "string") {
1931
2094
  throw new Error(`The ${name} generator failed to run`, {
1932
- cause: _optionalChain([result, 'optionalAccess', _124 => _124.error])
2095
+ cause: _optionalChain([result, 'optionalAccess', _135 => _135.error])
1933
2096
  });
1934
2097
  } else if (result.success && result.data) {
1935
2098
  return result;
1936
2099
  }
1937
2100
  }
1938
- if (_optionalChain([generatorOptions, 'optionalAccess', _125 => _125.hooks, 'optionalAccess', _126 => _126.postProcess])) {
2101
+ if (_optionalChain([generatorOptions, 'optionalAccess', _136 => _136.hooks, 'optionalAccess', _137 => _137.postProcess])) {
1939
2102
  _chunkWNICDYXYjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
1940
2103
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
1941
2104
  _chunkWNICDYXYjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
@@ -2045,15 +2208,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2045
2208
  _devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
2046
2209
  let repository = {
2047
2210
  type: "github",
2048
- url: _optionalChain([config, 'optionalAccess', _127 => _127.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _128 => _128.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _129 => _129.namespace]) || _optionalChain([config, 'optionalAccess', _130 => _130.name]) || "repository"}.git`
2211
+ url: _optionalChain([config, 'optionalAccess', _138 => _138.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _139 => _139.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _140 => _140.namespace]) || _optionalChain([config, 'optionalAccess', _141 => _141.name]) || "repository"}.git`
2049
2212
  };
2050
2213
  let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
2051
2214
  if (tree.exists("package.json")) {
2052
2215
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
2053
- if (_optionalChain([packageJson, 'optionalAccess', _131 => _131.repository])) {
2216
+ if (_optionalChain([packageJson, 'optionalAccess', _142 => _142.repository])) {
2054
2217
  repository = packageJson.repository;
2055
2218
  }
2056
- if (_optionalChain([packageJson, 'optionalAccess', _132 => _132.description])) {
2219
+ if (_optionalChain([packageJson, 'optionalAccess', _143 => _143.description])) {
2057
2220
  description = packageJson.description;
2058
2221
  }
2059
2222
  }
@@ -2108,9 +2271,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2108
2271
  _devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
2109
2272
  ...json,
2110
2273
  pnpm: {
2111
- ..._optionalChain([json, 'optionalAccess', _133 => _133.pnpm]),
2274
+ ..._optionalChain([json, 'optionalAccess', _144 => _144.pnpm]),
2112
2275
  overrides: {
2113
- ..._optionalChain([json, 'optionalAccess', _134 => _134.pnpm, 'optionalAccess', _135 => _135.overrides]),
2276
+ ..._optionalChain([json, 'optionalAccess', _145 => _145.pnpm, 'optionalAccess', _146 => _146.overrides]),
2114
2277
  [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
2115
2278
  }
2116
2279
  }
@@ -2124,10 +2287,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2124
2287
  ]);
2125
2288
  if (tree.exists("package.json")) {
2126
2289
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
2127
- if (_optionalChain([packageJson, 'optionalAccess', _136 => _136.repository])) {
2290
+ if (_optionalChain([packageJson, 'optionalAccess', _147 => _147.repository])) {
2128
2291
  repository = packageJson.repository;
2129
2292
  }
2130
- if (_optionalChain([packageJson, 'optionalAccess', _137 => _137.description])) {
2293
+ if (_optionalChain([packageJson, 'optionalAccess', _148 => _148.description])) {
2131
2294
  description = packageJson.description;
2132
2295
  }
2133
2296
  }
@@ -2175,24 +2338,24 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, getOutputPath, "getOutputPath");
2175
2338
  function createProjectTsConfigJson(tree, options) {
2176
2339
  const tsconfig = {
2177
2340
  extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
2178
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _138 => _138.tsconfigOptions]), () => ( {})),
2341
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _149 => _149.tsconfigOptions]), () => ( {})),
2179
2342
  compilerOptions: {
2180
2343
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
2181
2344
  outDir: _chunkWNICDYXYjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2182
2345
  noEmit: true,
2183
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _139 => _139.tsconfigOptions, 'optionalAccess', _140 => _140.compilerOptions]), () => ( {}))
2346
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _150 => _150.tsconfigOptions, 'optionalAccess', _151 => _151.compilerOptions]), () => ( {}))
2184
2347
  },
2185
2348
  files: [
2186
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _141 => _141.tsconfigOptions, 'optionalAccess', _142 => _142.files]), () => ( []))
2349
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _152 => _152.tsconfigOptions, 'optionalAccess', _153 => _153.files]), () => ( []))
2187
2350
  ],
2188
2351
  include: [
2189
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _143 => _143.tsconfigOptions, 'optionalAccess', _144 => _144.include]), () => ( [])),
2352
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _154 => _154.tsconfigOptions, 'optionalAccess', _155 => _155.include]), () => ( [])),
2190
2353
  "src/**/*.ts",
2191
2354
  "src/**/*.js",
2192
2355
  "bin/**/*"
2193
2356
  ],
2194
2357
  exclude: [
2195
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _145 => _145.tsconfigOptions, 'optionalAccess', _146 => _146.exclude]), () => ( [])),
2358
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _156 => _156.tsconfigOptions, 'optionalAccess', _157 => _157.exclude]), () => ( [])),
2196
2359
  "jest.config.ts",
2197
2360
  "src/**/*.spec.ts",
2198
2361
  "src/**/*.test.ts"
@@ -2203,8 +2366,8 @@ function createProjectTsConfigJson(tree, options) {
2203
2366
  _chunkJ5SB6L2Ljs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
2204
2367
  async function normalizeOptions(tree, options, config) {
2205
2368
  let importPath = options.importPath;
2206
- if (!importPath && _optionalChain([config, 'optionalAccess', _147 => _147.namespace])) {
2207
- importPath = `@${_optionalChain([config, 'optionalAccess', _148 => _148.namespace])}/${options.name}`;
2369
+ if (!importPath && _optionalChain([config, 'optionalAccess', _158 => _158.namespace])) {
2370
+ importPath = `@${_optionalChain([config, 'optionalAccess', _159 => _159.namespace])}/${options.name}`;
2208
2371
  }
2209
2372
  if (options.publishable) {
2210
2373
  if (!importPath) {
@@ -2336,7 +2499,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
2336
2499
  name: "StormWorkspaceConfiguration"
2337
2500
  });
2338
2501
  _chunkWNICDYXYjs.writeTrace.call(void 0, jsonSchema, config);
2339
- const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _149 => _149.workspaceRoot]), () => ( _chunkWNICDYXYjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _150 => _150.outputFile, 'optionalAccess', _151 => _151.startsWith, 'call', _152 => _152("./")]) ? "" : "./");
2502
+ const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _160 => _160.workspaceRoot]), () => ( _chunkWNICDYXYjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _161 => _161.outputFile, 'optionalAccess', _162 => _162.startsWith, 'call', _163 => _163("./")]) ? "" : "./");
2340
2503
  _chunkWNICDYXYjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2341
2504
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
2342
2505
  spaces: 2
@@ -2675,7 +2838,7 @@ var generator_default5 = withRunGenerator("Storm Workspace Preset Generator", pr
2675
2838
  // ../workspace-tools/src/generators/release-version/generator.ts
2676
2839
 
2677
2840
  var _resolvelocalpackagedependencies = require('@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies');
2678
- var _updatelockfile = require('@nx/js/src/generators/release-version/utils/update-lock-file');
2841
+ var _updatelockfile = require('@nx/js/src/release/utils/update-lock-file');
2679
2842
 
2680
2843
  // ../git-tools/src/types.ts
2681
2844
  var DEFAULT_COMMIT_TYPES = {
@@ -2885,7 +3048,7 @@ var _config = require('nx/src/command-line/release/config/config');
2885
3048
  var _git = require('nx/src/command-line/release/utils/git');
2886
3049
  var _resolvesemverspecifier = require('nx/src/command-line/release/utils/resolve-semver-specifier');
2887
3050
  var _semver = require('nx/src/command-line/release/utils/semver');
2888
- var _version = require('nx/src/command-line/release/version');
3051
+ var _versionlegacy = require('nx/src/command-line/release/version-legacy');
2889
3052
  var _utils = require('nx/src/tasks-runner/utils');
2890
3053
  var _semver3 = require('semver');
2891
3054
 
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  generator_default
3
- } from "./chunk-TTTVOVML.mjs";
3
+ } from "./chunk-YSDG777H.mjs";
4
4
  import {
5
5
  getConfig
6
- } from "./chunk-4CNZ5PH2.mjs";
6
+ } from "./chunk-I4BEGOU2.mjs";
7
7
  import {
8
8
  findWorkspaceRoot,
9
9
  getStopwatch,