@storm-software/cloudflare-tools 0.53.1 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.54.0 (2025-01-22)
2
+
3
+ ### Features
4
+
5
+ - **workspace-tools:** Enhanced option tokenization logic for executors ([14ed93d7](https://github.com/storm-software/storm-ops/commit/14ed93d7))
6
+
1
7
  ## 0.53.1 (2025-01-21)
2
8
 
3
9
  ### 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-0.53.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)
24
+ [![Version](https://img.shields.io/badge/version-0.53.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 -->
@@ -58,6 +58,9 @@ var applyWorkspaceBaseTokens = /* @__PURE__ */ __name(async (option, tokenizerOp
58
58
  }
59
59
  return result;
60
60
  }, "applyWorkspaceBaseTokens");
61
+ var applyWorkspaceProjectTokens = /* @__PURE__ */ __name((option, tokenizerOptions) => {
62
+ return applyWorkspaceBaseTokens(option, tokenizerOptions);
63
+ }, "applyWorkspaceProjectTokens");
61
64
  var applyWorkspaceTokens = /* @__PURE__ */ __name(async (options, config, tokenizerFn) => {
62
65
  if (!options) {
63
66
  return {};
@@ -96,71 +99,24 @@ var run = /* @__PURE__ */ __name((config, command, cwd = config.workspaceRoot ??
96
99
  });
97
100
  }, "run");
98
101
 
99
- // ../workspace-tools/src/utils/apply-workspace-tokens.ts
100
- var applyWorkspaceExecutorTokens = /* @__PURE__ */ __name(async (option, tokenizerOptions) => {
101
- let result = option;
102
- if (!result) {
103
- return result;
104
- }
105
- let projectName;
106
- let projectRoot;
107
- let sourceRoot;
108
- if (tokenizerOptions?.projectName) {
109
- const context2 = tokenizerOptions;
110
- projectName = context2.projectName;
111
- projectRoot = context2.root;
112
- sourceRoot = context2.sourceRoot;
113
- } else {
114
- const projectConfig = tokenizerOptions;
115
- projectRoot = projectConfig.root;
116
- if (projectConfig.name) {
117
- projectName = projectConfig.name;
118
- }
119
- if (projectConfig.sourceRoot) {
120
- sourceRoot = projectConfig.sourceRoot;
121
- }
122
- }
123
- if (tokenizerOptions.config) {
124
- const configKeys = Object.keys(tokenizerOptions.config);
125
- if (configKeys.some((configKey) => result.includes(`{${configKey}}`))) {
126
- for (const configKey of configKeys) {
127
- if (result.includes(`{${configKey}}`)) {
128
- result = result.replaceAll(`{${configKey}}`, tokenizerOptions.config[configKey]);
129
- }
130
- }
131
- }
132
- }
133
- if (result.includes("{projectName}")) {
134
- result = result.replaceAll("{projectName}", projectName);
135
- }
136
- if (result.includes("{projectRoot}")) {
137
- result = result.replaceAll("{projectRoot}", projectRoot);
138
- }
139
- if (result.includes("{sourceRoot}")) {
140
- result = result.replaceAll("{sourceRoot}", sourceRoot);
141
- }
142
- if (result.includes("{workspaceRoot}")) {
143
- result = result.replaceAll("{workspaceRoot}", tokenizerOptions.workspaceRoot ?? findWorkspaceRoot());
144
- }
145
- return result;
146
- }, "applyWorkspaceExecutorTokens");
147
-
148
102
  // ../workspace-tools/src/base/base-executor.ts
103
+ import { defu } from "defu";
149
104
  var withRunExecutor = /* @__PURE__ */ __name((name, executorFn, executorOptions = {}) => async (_options, context2) => {
150
105
  const stopwatch = getStopwatch(name);
151
106
  let options = _options;
152
107
  let config = {};
153
108
  try {
154
- writeInfo(`\u26A1 Running the ${name} executor...
155
- `, config);
156
109
  if (!context2.projectsConfigurations?.projects || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
157
110
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
158
111
  }
159
112
  const workspaceRoot3 = findWorkspaceRoot();
160
- const projectRoot = context2.projectsConfigurations.projects[context2.projectName]?.root ?? workspaceRoot3;
161
- const sourceRoot = context2.projectsConfigurations.projects[context2.projectName]?.sourceRoot ?? workspaceRoot3;
162
- const projectName = context2.projectsConfigurations.projects[context2.projectName]?.name ?? context2.projectName;
113
+ const projectRoot = context2.projectsConfigurations.projects[context2.projectName].root || workspaceRoot3;
114
+ const sourceRoot = context2.projectsConfigurations.projects[context2.projectName].sourceRoot || workspaceRoot3;
115
+ const projectName = context2.projectsConfigurations.projects[context2.projectName].name || context2.projectName;
163
116
  config.workspaceRoot = workspaceRoot3;
117
+ writeInfo(`
118
+ \u26A1 Running the ${name} executor for ${projectName}
119
+ `, config);
164
120
  if (!executorOptions.skipReadingConfig) {
165
121
  writeTrace(`Loading the Storm Config from environment variables and storm.config.js file...
166
122
  - workspaceRoot: ${workspaceRoot3}
@@ -175,17 +131,19 @@ var withRunExecutor = /* @__PURE__ */ __name((name, executorFn, executorOptions
175
131
  options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
176
132
  writeDebug("Completed the applyDefaultOptions hook", config);
177
133
  }
178
- writeTrace(`Executor schema options \u2699\uFE0F
179
- ${Object.keys(options).map((key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`).join("\n")}`, config);
180
- const tokenized = await applyWorkspaceTokens(options, {
181
- config,
134
+ writeTrace(`Executor schema options \u2699\uFE0F
135
+ ${formatLogMessage(options)}
136
+ `, config);
137
+ const tokenized = await applyWorkspaceTokens(options, defu({
182
138
  workspaceRoot: workspaceRoot3,
183
139
  projectRoot,
184
140
  sourceRoot,
185
141
  projectName,
186
- ...context2.projectsConfigurations.projects[context2.projectName],
187
- ...executorOptions
188
- }, applyWorkspaceExecutorTokens);
142
+ config
143
+ }, executorOptions, context2.projectsConfigurations.projects[context2.projectName], config), applyWorkspaceProjectTokens);
144
+ writeTrace(`Executor schema tokenized options \u2699\uFE0F
145
+ ${formatLogMessage(tokenized)}
146
+ `, config);
189
147
  if (executorOptions?.hooks?.preProcess) {
190
148
  writeDebug("Running the preProcess hook...", config);
191
149
  await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
@@ -781,7 +739,7 @@ import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-r
781
739
 
782
740
  // ../esbuild/src/build.ts
783
741
  import { watch as createWatcher } from "chokidar";
784
- import defu from "defu";
742
+ import defu2 from "defu";
785
743
  import { debounce, flatten } from "es-toolkit";
786
744
  import { map } from "es-toolkit/compat";
787
745
  import * as esbuild2 from "esbuild";
@@ -1452,7 +1410,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1452
1410
  if (!projectConfigurations?.projects?.[projectName]) {
1453
1411
  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.");
1454
1412
  }
1455
- const options = defu(userOptions, DEFAULT_BUILD_OPTIONS);
1413
+ const options = defu2(userOptions, DEFAULT_BUILD_OPTIONS);
1456
1414
  options.name ??= `${projectName}-${options.format}`;
1457
1415
  options.target ??= DEFAULT_TARGET;
1458
1416
  const packageJsonPath = joinPaths(workspaceRoot3.dir, options.projectRoot, "package.json");
@@ -1813,7 +1771,7 @@ var executor_default7 = withRunExecutor("Size-Limit Performance Test Executor",
1813
1771
  // ../tsdown/src/build.ts
1814
1772
  import { hfs as hfs5 } from "@humanfs/node";
1815
1773
  import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph3, writeJsonFile as writeJsonFile2 } from "@nx/devkit";
1816
- import defu2 from "defu";
1774
+ import defu3 from "defu";
1817
1775
  import { findWorkspaceRoot as findWorkspaceRoot3 } from "nx/src/utils/find-workspace-root";
1818
1776
  import { build as tsdown } from "tsdown";
1819
1777
 
@@ -1872,7 +1830,7 @@ var resolveOptions2 = /* @__PURE__ */ __name(async (userOptions) => {
1872
1830
  if (!projectConfigurations?.projects?.[projectName]) {
1873
1831
  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.");
1874
1832
  }
1875
- const options = defu2(userOptions, DEFAULT_BUILD_OPTIONS2);
1833
+ const options = defu3(userOptions, DEFAULT_BUILD_OPTIONS2);
1876
1834
  options.name ??= `${projectName}-${options.format}`;
1877
1835
  options.target ??= DEFAULT_TARGET;
1878
1836
  const packageJsonPath = joinPaths(workspaceRoot3.dir, options.projectRoot, "package.json");
@@ -2116,7 +2074,7 @@ var executor_default9 = withRunExecutor("Typia runtime validation generator", ty
2116
2074
  });
2117
2075
 
2118
2076
  // ../workspace-tools/src/executors/unbuild/executor.ts
2119
- import { defu as defu3 } from "defu";
2077
+ import { defu as defu4 } from "defu";
2120
2078
  import { createJiti } from "jiti";
2121
2079
  async function unbuildExecutorFn(options, context2, config) {
2122
2080
  writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
@@ -2128,7 +2086,7 @@ async function unbuildExecutorFn(options, context2, config) {
2128
2086
  interopDefault: true
2129
2087
  });
2130
2088
  const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
2131
- await stormUnbuild.build(defu3({
2089
+ await stormUnbuild.build(defu4({
2132
2090
  ...options,
2133
2091
  projectRoot: context2.projectsConfigurations.projects?.[context2.projectName].root,
2134
2092
  projectName: context2.projectName,
@@ -8,7 +8,7 @@ var require_package = __commonJS({
8
8
  "package.json"(exports, module) {
9
9
  module.exports = {
10
10
  name: "@storm-software/cloudflare-tools",
11
- version: "0.53.1",
11
+ version: "0.54.0",
12
12
  description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
13
13
  repository: {
14
14
  type: "github",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generator_default
3
- } from "./chunk-L6Z7B2FZ.mjs";
3
+ } from "./chunk-HSYTAPR3.mjs";
4
4
  import {
5
5
  loadStormConfig
6
6
  } from "./chunk-6H63LE3D.mjs";
@@ -57,6 +57,9 @@ var applyWorkspaceBaseTokens = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void
57
57
  }
58
58
  return result;
59
59
  }, "applyWorkspaceBaseTokens");
60
+ var applyWorkspaceProjectTokens = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (option, tokenizerOptions) => {
61
+ return applyWorkspaceBaseTokens(option, tokenizerOptions);
62
+ }, "applyWorkspaceProjectTokens");
60
63
  var applyWorkspaceTokens = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (options, config, tokenizerFn) => {
61
64
  if (!options) {
62
65
  return {};
@@ -95,71 +98,24 @@ var run = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (config, command,
95
98
  });
96
99
  }, "run");
97
100
 
98
- // ../workspace-tools/src/utils/apply-workspace-tokens.ts
99
- var applyWorkspaceExecutorTokens = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (option, tokenizerOptions) => {
100
- let result = option;
101
- if (!result) {
102
- return result;
103
- }
104
- let projectName;
105
- let projectRoot;
106
- let sourceRoot;
107
- if (_optionalChain([tokenizerOptions, 'optionalAccess', _6 => _6.projectName])) {
108
- const context2 = tokenizerOptions;
109
- projectName = context2.projectName;
110
- projectRoot = context2.root;
111
- sourceRoot = context2.sourceRoot;
112
- } else {
113
- const projectConfig = tokenizerOptions;
114
- projectRoot = projectConfig.root;
115
- if (projectConfig.name) {
116
- projectName = projectConfig.name;
117
- }
118
- if (projectConfig.sourceRoot) {
119
- sourceRoot = projectConfig.sourceRoot;
120
- }
121
- }
122
- if (tokenizerOptions.config) {
123
- const configKeys = Object.keys(tokenizerOptions.config);
124
- if (configKeys.some((configKey) => result.includes(`{${configKey}}`))) {
125
- for (const configKey of configKeys) {
126
- if (result.includes(`{${configKey}}`)) {
127
- result = result.replaceAll(`{${configKey}}`, tokenizerOptions.config[configKey]);
128
- }
129
- }
130
- }
131
- }
132
- if (result.includes("{projectName}")) {
133
- result = result.replaceAll("{projectName}", projectName);
134
- }
135
- if (result.includes("{projectRoot}")) {
136
- result = result.replaceAll("{projectRoot}", projectRoot);
137
- }
138
- if (result.includes("{sourceRoot}")) {
139
- result = result.replaceAll("{sourceRoot}", sourceRoot);
140
- }
141
- if (result.includes("{workspaceRoot}")) {
142
- result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(tokenizerOptions.workspaceRoot, () => ( _chunkW6YNIJQDjs.findWorkspaceRoot.call(void 0, ))));
143
- }
144
- return result;
145
- }, "applyWorkspaceExecutorTokens");
146
-
147
101
  // ../workspace-tools/src/base/base-executor.ts
102
+ var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
148
103
  var withRunExecutor = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context2) => {
149
104
  const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, name);
150
105
  let options = _options;
151
106
  let config = {};
152
107
  try {
153
- _chunkW6YNIJQDjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor...
154
- `, config);
155
- if (!_optionalChain([context2, 'access', _7 => _7.projectsConfigurations, 'optionalAccess', _8 => _8.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
108
+ if (!_optionalChain([context2, 'access', _6 => _6.projectsConfigurations, 'optionalAccess', _7 => _7.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
156
109
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
157
110
  }
158
111
  const workspaceRoot3 = _chunkW6YNIJQDjs.findWorkspaceRoot.call(void 0, );
159
- const projectRoot = _nullishCoalesce(_optionalChain([context2, 'access', _9 => _9.projectsConfigurations, 'access', _10 => _10.projects, 'access', _11 => _11[context2.projectName], 'optionalAccess', _12 => _12.root]), () => ( workspaceRoot3));
160
- const sourceRoot = _nullishCoalesce(_optionalChain([context2, 'access', _13 => _13.projectsConfigurations, 'access', _14 => _14.projects, 'access', _15 => _15[context2.projectName], 'optionalAccess', _16 => _16.sourceRoot]), () => ( workspaceRoot3));
161
- const projectName = _nullishCoalesce(_optionalChain([context2, 'access', _17 => _17.projectsConfigurations, 'access', _18 => _18.projects, 'access', _19 => _19[context2.projectName], 'optionalAccess', _20 => _20.name]), () => ( context2.projectName));
112
+ const projectRoot = context2.projectsConfigurations.projects[context2.projectName].root || workspaceRoot3;
113
+ const sourceRoot = context2.projectsConfigurations.projects[context2.projectName].sourceRoot || workspaceRoot3;
114
+ const projectName = context2.projectsConfigurations.projects[context2.projectName].name || context2.projectName;
162
115
  config.workspaceRoot = workspaceRoot3;
116
+ _chunkW6YNIJQDjs.writeInfo.call(void 0, `
117
+ \u26A1 Running the ${name} executor for ${projectName}
118
+ `, config);
163
119
  if (!executorOptions.skipReadingConfig) {
164
120
  _chunkW6YNIJQDjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
165
121
  - workspaceRoot: ${workspaceRoot3}
@@ -169,43 +125,45 @@ var withRunExecutor = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (name
169
125
  `, config);
170
126
  config = await _chunkTHKJZT32js.loadStormConfig.call(void 0, workspaceRoot3);
171
127
  }
172
- if (_optionalChain([executorOptions, 'optionalAccess', _21 => _21.hooks, 'optionalAccess', _22 => _22.applyDefaultOptions])) {
128
+ if (_optionalChain([executorOptions, 'optionalAccess', _8 => _8.hooks, 'optionalAccess', _9 => _9.applyDefaultOptions])) {
173
129
  _chunkW6YNIJQDjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
174
130
  options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
175
131
  _chunkW6YNIJQDjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
176
132
  }
177
- _chunkW6YNIJQDjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
178
- ${Object.keys(options).map((key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`).join("\n")}`, config);
179
- const tokenized = await applyWorkspaceTokens(options, {
180
- config,
133
+ _chunkW6YNIJQDjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
134
+ ${_chunkW6YNIJQDjs.formatLogMessage.call(void 0, options)}
135
+ `, config);
136
+ const tokenized = await applyWorkspaceTokens(options, _defu.defu.call(void 0, {
181
137
  workspaceRoot: workspaceRoot3,
182
138
  projectRoot,
183
139
  sourceRoot,
184
140
  projectName,
185
- ...context2.projectsConfigurations.projects[context2.projectName],
186
- ...executorOptions
187
- }, applyWorkspaceExecutorTokens);
188
- if (_optionalChain([executorOptions, 'optionalAccess', _23 => _23.hooks, 'optionalAccess', _24 => _24.preProcess])) {
141
+ config
142
+ }, executorOptions, context2.projectsConfigurations.projects[context2.projectName], config), applyWorkspaceProjectTokens);
143
+ _chunkW6YNIJQDjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
144
+ ${_chunkW6YNIJQDjs.formatLogMessage.call(void 0, tokenized)}
145
+ `, config);
146
+ if (_optionalChain([executorOptions, 'optionalAccess', _10 => _10.hooks, 'optionalAccess', _11 => _11.preProcess])) {
189
147
  _chunkW6YNIJQDjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
190
148
  await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
191
149
  _chunkW6YNIJQDjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
192
150
  }
193
151
  const ret = executorFn(tokenized, context2, config);
194
- if (_isFunction(_optionalChain([ret, 'optionalAccess', _25 => _25.next]))) {
152
+ if (_isFunction(_optionalChain([ret, 'optionalAccess', _12 => _12.next]))) {
195
153
  const asyncGen = ret;
196
154
  for await (const iter of asyncGen) {
197
155
  }
198
156
  }
199
157
  const result = await Promise.resolve(ret);
200
- if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _26 => _26.error, 'optionalAccess', _27 => _27.message]) && typeof _optionalChain([result, 'optionalAccess', _28 => _28.error, 'optionalAccess', _29 => _29.message]) === "string" && _optionalChain([result, 'optionalAccess', _30 => _30.error, 'optionalAccess', _31 => _31.name]) && typeof _optionalChain([result, 'optionalAccess', _32 => _32.error, 'optionalAccess', _33 => _33.name]) === "string")) {
158
+ if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _13 => _13.error, 'optionalAccess', _14 => _14.message]) && typeof _optionalChain([result, 'optionalAccess', _15 => _15.error, 'optionalAccess', _16 => _16.message]) === "string" && _optionalChain([result, 'optionalAccess', _17 => _17.error, 'optionalAccess', _18 => _18.name]) && typeof _optionalChain([result, 'optionalAccess', _19 => _19.error, 'optionalAccess', _20 => _20.name]) === "string")) {
201
159
  _chunkW6YNIJQDjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
202
160
  ${_chunkW6YNIJQDjs.formatLogMessage.call(void 0, result)}`, config);
203
161
  console.error(result);
204
162
  throw new Error(`The ${name} executor failed to run`, {
205
- cause: _optionalChain([result, 'optionalAccess', _34 => _34.error])
163
+ cause: _optionalChain([result, 'optionalAccess', _21 => _21.error])
206
164
  });
207
165
  }
208
- if (_optionalChain([executorOptions, 'optionalAccess', _35 => _35.hooks, 'optionalAccess', _36 => _36.postProcess])) {
166
+ if (_optionalChain([executorOptions, 'optionalAccess', _22 => _22.hooks, 'optionalAccess', _23 => _23.postProcess])) {
209
167
  _chunkW6YNIJQDjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
210
168
  await Promise.resolve(executorOptions.hooks.postProcess(config));
211
169
  _chunkW6YNIJQDjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
@@ -229,7 +187,7 @@ ${_chunkW6YNIJQDjs.formatLogMessage.call(void 0, result)}`, config);
229
187
  }, "withRunExecutor");
230
188
  var _isFunction = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (value) => {
231
189
  try {
232
- return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _37 => _37.constructor]) && _optionalChain([value, 'optionalAccess', _38 => _38.call]) && _optionalChain([value, 'optionalAccess', _39 => _39.apply]));
190
+ return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _24 => _24.constructor]) && _optionalChain([value, 'optionalAccess', _25 => _25.call]) && _optionalChain([value, 'optionalAccess', _26 => _26.apply]));
233
191
  } catch (e) {
234
192
  return false;
235
193
  }
@@ -294,10 +252,10 @@ async function cargoCommand(...args) {
294
252
  _chunkJ5SB6L2Ljs.__name.call(void 0, cargoCommand, "cargoCommand");
295
253
  function cargoCommandSync(args = "", options) {
296
254
  const normalizedOptions = {
297
- stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _40 => _40.stdio]), () => ( "inherit")),
255
+ stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _27 => _27.stdio]), () => ( "inherit")),
298
256
  env: {
299
257
  ...process.env,
300
- ..._optionalChain([options, 'optionalAccess', _41 => _41.env])
258
+ ..._optionalChain([options, 'optionalAccess', _28 => _28.env])
301
259
  }
302
260
  };
303
261
  try {
@@ -332,7 +290,7 @@ function cargoMetadata() {
332
290
  _chunkJ5SB6L2Ljs.__name.call(void 0, cargoMetadata, "cargoMetadata");
333
291
  function runProcess(processCmd, ...args) {
334
292
  const metadata = cargoMetadata();
335
- const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _42 => _42.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, _devkit.workspaceRoot, "dist", "cargo")));
293
+ const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _29 => _29.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, _devkit.workspaceRoot, "dist", "cargo")));
336
294
  return new Promise((resolve) => {
337
295
  if (process.env.VERCEL) {
338
296
  return resolve({
@@ -543,10 +501,10 @@ var copyAssets = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (con
543
501
  const nxJson = readNxConfig(config.workspaceRoot);
544
502
  const projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
545
503
  const projectsConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
546
- if (!_optionalChain([projectsConfigurations, 'optionalAccess', _43 => _43.projects, 'optionalAccess', _44 => _44[projectName]])) {
504
+ if (!_optionalChain([projectsConfigurations, 'optionalAccess', _30 => _30.projects, 'optionalAccess', _31 => _31[projectName]])) {
547
505
  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.");
548
506
  }
549
- const buildTarget = _optionalChain([projectsConfigurations, 'access', _45 => _45.projects, 'access', _46 => _46[projectName], 'access', _47 => _47.targets, 'optionalAccess', _48 => _48.build]);
507
+ const buildTarget = _optionalChain([projectsConfigurations, 'access', _32 => _32.projects, 'access', _33 => _33[projectName], 'access', _34 => _34.targets, 'optionalAccess', _35 => _35.build]);
550
508
  if (!buildTarget) {
551
509
  throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${_chunkW6YNIJQDjs.joinPaths.call(void 0, projectRoot, "project.json")}`);
552
510
  }
@@ -780,7 +738,7 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
780
738
 
781
739
  // ../esbuild/src/build.ts
782
740
  var _chokidar = require('chokidar');
783
- var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
741
+
784
742
  var _estoolkit = require('es-toolkit');
785
743
  var _compat = require('es-toolkit/compat');
786
744
  var _esbuild = require('esbuild'); var esbuild2 = _interopRequireWildcard(_esbuild); var esbuild = _interopRequireWildcard(_esbuild);
@@ -853,15 +811,15 @@ var RendererEngine = class {
853
811
  if (!relativePath.startsWith("\\\\?\\")) {
854
812
  relativePath = relativePath.replace(/\\/g, "/");
855
813
  }
856
- const meta = _optionalChain([metafile, 'optionalAccess', _49 => _49.outputs, 'access', _50 => _50[relativePath]]);
814
+ const meta = _optionalChain([metafile, 'optionalAccess', _36 => _36.outputs, 'access', _37 => _37[relativePath]]);
857
815
  return {
858
816
  type: "chunk",
859
817
  path: file.path,
860
818
  code: file.text,
861
- map: _optionalChain([outputFiles, 'access', _51 => _51.find, 'call', _52 => _52((f) => f.path === `${file.path}.map`), 'optionalAccess', _53 => _53.text]),
862
- entryPoint: _optionalChain([meta, 'optionalAccess', _54 => _54.entryPoint]),
863
- exports: _optionalChain([meta, 'optionalAccess', _55 => _55.exports]),
864
- imports: _optionalChain([meta, 'optionalAccess', _56 => _56.imports])
819
+ map: _optionalChain([outputFiles, 'access', _38 => _38.find, 'call', _39 => _39((f) => f.path === `${file.path}.map`), 'optionalAccess', _40 => _40.text]),
820
+ entryPoint: _optionalChain([meta, 'optionalAccess', _41 => _41.entryPoint]),
821
+ exports: _optionalChain([meta, 'optionalAccess', _42 => _42.exports]),
822
+ imports: _optionalChain([meta, 'optionalAccess', _43 => _43.imports])
865
823
  };
866
824
  } else {
867
825
  return {
@@ -944,7 +902,7 @@ var esmSplitCodeToCjsPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void
944
902
  name: "storm:esm-split-code-to-cjs",
945
903
  setup(build5) {
946
904
  build5.onEnd(async (result) => {
947
- const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access', _57 => _57.metafile, 'optionalAccess', _58 => _58.outputs]), () => ( {})));
905
+ const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access', _44 => _44.metafile, 'optionalAccess', _45 => _45.outputs]), () => ( {})));
948
906
  const jsFiles = outFiles.filter((f) => f.endsWith("js"));
949
907
  await esbuild.build({
950
908
  outdir: resolvedOptions.outdir,
@@ -1066,7 +1024,7 @@ ${result.errors.map((error) => error.text).join("\n")}
1066
1024
  // ../esbuild/src/plugins/resolve-paths.ts
1067
1025
 
1068
1026
  function resolvePathsConfig(options, cwd) {
1069
- if (_optionalChain([options, 'optionalAccess', _59 => _59.compilerOptions, 'optionalAccess', _60 => _60.paths])) {
1027
+ if (_optionalChain([options, 'optionalAccess', _46 => _46.compilerOptions, 'optionalAccess', _47 => _47.paths])) {
1070
1028
  const paths = Object.entries(options.compilerOptions.paths);
1071
1029
  const resolvedPaths = paths.map(([key, paths2]) => {
1072
1030
  return [
@@ -1094,7 +1052,7 @@ var resolvePathsPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (o
1094
1052
  build5.onResolve({
1095
1053
  filter: packagesRegex
1096
1054
  }, (args) => {
1097
- if (_optionalChain([build5, 'access', _61 => _61.initialOptions, 'access', _62 => _62.external, 'optionalAccess', _63 => _63.includes, 'call', _64 => _64(args.path)])) {
1055
+ if (_optionalChain([build5, 'access', _48 => _48.initialOptions, 'access', _49 => _49.external, 'optionalAccess', _50 => _50.includes, 'call', _51 => _51(args.path)])) {
1098
1056
  return {
1099
1057
  path: args.path,
1100
1058
  external: true
@@ -1202,7 +1160,7 @@ var tscPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, r
1202
1160
  function getTypeDependencyPackageName(npmPackage) {
1203
1161
  if (npmPackage.startsWith("@")) {
1204
1162
  const [scope, name] = npmPackage.split("/");
1205
- return `@types/${_optionalChain([scope, 'optionalAccess', _65 => _65.slice, 'call', _66 => _66(1)])}__${name}`;
1163
+ return `@types/${_optionalChain([scope, 'optionalAccess', _52 => _52.slice, 'call', _53 => _53(1)])}__${name}`;
1206
1164
  }
1207
1165
  return `@types/${npmPackage}`;
1208
1166
  }
@@ -1409,7 +1367,7 @@ function pipeSync(fn, ...fns) {
1409
1367
  return (...args) => {
1410
1368
  let result = fn(...args);
1411
1369
  for (let i = 0; result !== skip && i < fns.length; ++i) {
1412
- result = _optionalChain([fns, 'access', _67 => _67[i], 'optionalCall', _68 => _68(result)]);
1370
+ result = _optionalChain([fns, 'access', _54 => _54[i], 'optionalCall', _55 => _55(result)]);
1413
1371
  }
1414
1372
  return result;
1415
1373
  };
@@ -1419,7 +1377,7 @@ function pipeAsync(fn, ...fns) {
1419
1377
  return async (...args) => {
1420
1378
  let result = await fn(...args);
1421
1379
  for (let i = 0; result !== skip && i < fns.length; ++i) {
1422
- result = await _optionalChain([fns, 'access', _69 => _69[i], 'optionalCall', _70 => _70(result)]);
1380
+ result = await _optionalChain([fns, 'access', _56 => _56[i], 'optionalCall', _57 => _57(result)]);
1423
1381
  }
1424
1382
  return result;
1425
1383
  };
@@ -1448,7 +1406,7 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1448
1406
  const projectJson = await _node.hfs.json(projectJsonPath);
1449
1407
  const projectName = projectJson.name;
1450
1408
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
1451
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _71 => _71.projects, 'optionalAccess', _72 => _72[projectName]])) {
1409
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _58 => _58.projects, 'optionalAccess', _59 => _59[projectName]])) {
1452
1410
  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.");
1453
1411
  }
1454
1412
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
@@ -1624,7 +1582,7 @@ async function executeEsBuild(context2) {
1624
1582
  }
1625
1583
  _chunkJ5SB6L2Ljs.__name.call(void 0, executeEsBuild, "executeEsBuild");
1626
1584
  async function copyBuildAssets(context2) {
1627
- if (_optionalChain([context2, 'access', _73 => _73.result, 'optionalAccess', _74 => _74.errors, 'access', _75 => _75.length]) === 0) {
1585
+ if (_optionalChain([context2, 'access', _60 => _60.result, 'optionalAccess', _61 => _61.errors, 'access', _62 => _62.length]) === 0) {
1628
1586
  _chunkW6YNIJQDjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1629
1587
  const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1630
1588
  await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.projectName, context2.options.sourceRoot, true, false);
@@ -1634,7 +1592,7 @@ async function copyBuildAssets(context2) {
1634
1592
  }
1635
1593
  _chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
1636
1594
  async function reportResults(context2) {
1637
- if (_optionalChain([context2, 'access', _76 => _76.result, 'optionalAccess', _77 => _77.errors, 'access', _78 => _78.length]) === 0) {
1595
+ if (_optionalChain([context2, 'access', _63 => _63.result, 'optionalAccess', _64 => _64.errors, 'access', _65 => _65.length]) === 0) {
1638
1596
  if (context2.result.warnings.length > 0) {
1639
1597
  _chunkW6YNIJQDjs.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);
1640
1598
  }
@@ -1732,14 +1690,14 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
1732
1690
  // ../workspace-tools/src/executors/esbuild/executor.ts
1733
1691
  async function esbuildExecutorFn(options, context2, config) {
1734
1692
  _chunkW6YNIJQDjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1735
- if (!_optionalChain([context2, 'access', _79 => _79.projectsConfigurations, 'optionalAccess', _80 => _80.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _81 => _81.projectsConfigurations, 'access', _82 => _82.projects, 'access', _83 => _83[context2.projectName], 'optionalAccess', _84 => _84.root])) {
1693
+ if (!_optionalChain([context2, 'access', _66 => _66.projectsConfigurations, 'optionalAccess', _67 => _67.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _68 => _68.projectsConfigurations, 'access', _69 => _69.projects, 'access', _70 => _70[context2.projectName], 'optionalAccess', _71 => _71.root])) {
1736
1694
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1737
1695
  }
1738
1696
  await build3({
1739
1697
  ...options,
1740
- projectRoot: _optionalChain([context2, 'access', _85 => _85.projectsConfigurations, 'access', _86 => _86.projects, 'optionalAccess', _87 => _87[context2.projectName], 'access', _88 => _88.root]),
1698
+ projectRoot: _optionalChain([context2, 'access', _72 => _72.projectsConfigurations, 'access', _73 => _73.projects, 'optionalAccess', _74 => _74[context2.projectName], 'access', _75 => _75.root]),
1741
1699
  projectName: context2.projectName,
1742
- sourceRoot: _optionalChain([context2, 'access', _89 => _89.projectsConfigurations, 'access', _90 => _90.projects, 'optionalAccess', _91 => _91[context2.projectName], 'optionalAccess', _92 => _92.sourceRoot]),
1700
+ sourceRoot: _optionalChain([context2, 'access', _76 => _76.projectsConfigurations, 'access', _77 => _77.projects, 'optionalAccess', _78 => _78[context2.projectName], 'optionalAccess', _79 => _79.sourceRoot]),
1743
1701
  format: options.format,
1744
1702
  platform: options.format
1745
1703
  });
@@ -1782,7 +1740,7 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
1782
1740
  var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
1783
1741
  var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
1784
1742
  async function sizeLimitExecutorFn(options, context2, config) {
1785
- if (!_optionalChain([context2, 'optionalAccess', _93 => _93.projectName]) || !_optionalChain([context2, 'access', _94 => _94.projectsConfigurations, 'optionalAccess', _95 => _95.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1743
+ if (!_optionalChain([context2, 'optionalAccess', _80 => _80.projectName]) || !_optionalChain([context2, 'access', _81 => _81.projectsConfigurations, 'optionalAccess', _82 => _82.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1786
1744
  throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
1787
1745
  }
1788
1746
  _chunkW6YNIJQDjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
@@ -1791,7 +1749,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
1791
1749
  _esbuild3.default,
1792
1750
  _esbuildwhy2.default
1793
1751
  ], {
1794
- checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _96 => _96.projectsConfigurations, 'access', _97 => _97.projects, 'access', _98 => _98[context2.projectName], 'optionalAccess', _99 => _99.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _100 => _100.projectsConfigurations, 'access', _101 => _101.projects, 'access', _102 => _102[context2.projectName], 'optionalAccess', _103 => _103.root]), () => ( "./")), "src")))
1752
+ checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _83 => _83.projectsConfigurations, 'access', _84 => _84.projects, 'access', _85 => _85[context2.projectName], 'optionalAccess', _86 => _86.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _87 => _87.projectsConfigurations, 'access', _88 => _88.projects, 'access', _89 => _89[context2.projectName], 'optionalAccess', _90 => _90.root]), () => ( "./")), "src")))
1795
1753
  }).then((result) => {
1796
1754
  _chunkW6YNIJQDjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1797
1755
  });
@@ -1868,7 +1826,7 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1868
1826
  const projectJson = await _node.hfs.json(projectJsonPath);
1869
1827
  const projectName = projectJson.name;
1870
1828
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
1871
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _104 => _104.projects, 'optionalAccess', _105 => _105[projectName]])) {
1829
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _91 => _91.projects, 'optionalAccess', _92 => _92[projectName]])) {
1872
1830
  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.");
1873
1831
  }
1874
1832
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS2);
@@ -2048,14 +2006,14 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, build4, "build");
2048
2006
  // ../workspace-tools/src/executors/tsdown/executor.ts
2049
2007
  async function tsdownExecutorFn(options, context2, config) {
2050
2008
  _chunkW6YNIJQDjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
2051
- if (!_optionalChain([context2, 'access', _106 => _106.projectsConfigurations, 'optionalAccess', _107 => _107.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _108 => _108.projectsConfigurations, 'access', _109 => _109.projects, 'access', _110 => _110[context2.projectName], 'optionalAccess', _111 => _111.root])) {
2009
+ if (!_optionalChain([context2, 'access', _93 => _93.projectsConfigurations, 'optionalAccess', _94 => _94.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _95 => _95.projectsConfigurations, 'access', _96 => _96.projects, 'access', _97 => _97[context2.projectName], 'optionalAccess', _98 => _98.root])) {
2052
2010
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
2053
2011
  }
2054
2012
  await build4({
2055
2013
  ...options,
2056
- projectRoot: _optionalChain([context2, 'access', _112 => _112.projectsConfigurations, 'access', _113 => _113.projects, 'optionalAccess', _114 => _114[context2.projectName], 'access', _115 => _115.root]),
2014
+ projectRoot: _optionalChain([context2, 'access', _99 => _99.projectsConfigurations, 'access', _100 => _100.projects, 'optionalAccess', _101 => _101[context2.projectName], 'access', _102 => _102.root]),
2057
2015
  projectName: context2.projectName,
2058
- sourceRoot: _optionalChain([context2, 'access', _116 => _116.projectsConfigurations, 'access', _117 => _117.projects, 'optionalAccess', _118 => _118[context2.projectName], 'optionalAccess', _119 => _119.sourceRoot]),
2016
+ sourceRoot: _optionalChain([context2, 'access', _103 => _103.projectsConfigurations, 'access', _104 => _104.projects, 'optionalAccess', _105 => _105[context2.projectName], 'optionalAccess', _106 => _106.sourceRoot]),
2059
2017
  format: options.format,
2060
2018
  platform: options.platform
2061
2019
  });
@@ -2119,7 +2077,7 @@ var executor_default9 = withRunExecutor("Typia runtime validation generator", ty
2119
2077
  var _jiti = require('jiti');
2120
2078
  async function unbuildExecutorFn(options, context2, config) {
2121
2079
  _chunkW6YNIJQDjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
2122
- if (!_optionalChain([context2, 'access', _120 => _120.projectsConfigurations, 'optionalAccess', _121 => _121.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _122 => _122.projectsConfigurations, 'access', _123 => _123.projects, 'access', _124 => _124[context2.projectName], 'optionalAccess', _125 => _125.root])) {
2080
+ if (!_optionalChain([context2, 'access', _107 => _107.projectsConfigurations, 'optionalAccess', _108 => _108.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _109 => _109.projectsConfigurations, 'access', _110 => _110.projects, 'access', _111 => _111[context2.projectName], 'optionalAccess', _112 => _112.root])) {
2123
2081
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
2124
2082
  }
2125
2083
  const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
@@ -2129,9 +2087,9 @@ async function unbuildExecutorFn(options, context2, config) {
2129
2087
  const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
2130
2088
  await stormUnbuild.build(_defu.defu.call(void 0, {
2131
2089
  ...options,
2132
- projectRoot: _optionalChain([context2, 'access', _126 => _126.projectsConfigurations, 'access', _127 => _127.projects, 'optionalAccess', _128 => _128[context2.projectName], 'access', _129 => _129.root]),
2090
+ projectRoot: _optionalChain([context2, 'access', _113 => _113.projectsConfigurations, 'access', _114 => _114.projects, 'optionalAccess', _115 => _115[context2.projectName], 'access', _116 => _116.root]),
2133
2091
  projectName: context2.projectName,
2134
- sourceRoot: _optionalChain([context2, 'access', _130 => _130.projectsConfigurations, 'access', _131 => _131.projects, 'optionalAccess', _132 => _132[context2.projectName], 'optionalAccess', _133 => _133.sourceRoot]),
2092
+ sourceRoot: _optionalChain([context2, 'access', _117 => _117.projectsConfigurations, 'access', _118 => _118.projects, 'optionalAccess', _119 => _119[context2.projectName], 'optionalAccess', _120 => _120.sourceRoot]),
2135
2093
  platform: options.platform,
2136
2094
  name: context2.projectName
2137
2095
  }, {
@@ -2203,7 +2161,7 @@ var withRunGenerator = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (nam
2203
2161
  - workspaceRoot: ${workspaceRoot3}`, config);
2204
2162
  config = await _chunkTHKJZT32js.loadStormConfig.call(void 0, workspaceRoot3);
2205
2163
  }
2206
- if (_optionalChain([generatorOptions, 'optionalAccess', _134 => _134.hooks, 'optionalAccess', _135 => _135.applyDefaultOptions])) {
2164
+ if (_optionalChain([generatorOptions, 'optionalAccess', _121 => _121.hooks, 'optionalAccess', _122 => _122.applyDefaultOptions])) {
2207
2165
  _chunkW6YNIJQDjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
2208
2166
  options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
2209
2167
  _chunkW6YNIJQDjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
@@ -2214,22 +2172,22 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
2214
2172
  workspaceRoot: tree.root,
2215
2173
  config
2216
2174
  }, applyWorkspaceBaseTokens);
2217
- if (_optionalChain([generatorOptions, 'optionalAccess', _136 => _136.hooks, 'optionalAccess', _137 => _137.preProcess])) {
2175
+ if (_optionalChain([generatorOptions, 'optionalAccess', _123 => _123.hooks, 'optionalAccess', _124 => _124.preProcess])) {
2218
2176
  _chunkW6YNIJQDjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
2219
2177
  await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
2220
2178
  _chunkW6YNIJQDjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
2221
2179
  }
2222
2180
  const result = await Promise.resolve(generatorFn(tree, tokenized, config));
2223
2181
  if (result) {
2224
- if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _138 => _138.error, 'optionalAccess', _139 => _139.message]) && typeof _optionalChain([result, 'optionalAccess', _140 => _140.error, 'optionalAccess', _141 => _141.message]) === "string" && _optionalChain([result, 'optionalAccess', _142 => _142.error, 'optionalAccess', _143 => _143.name]) && typeof _optionalChain([result, 'optionalAccess', _144 => _144.error, 'optionalAccess', _145 => _145.name]) === "string") {
2182
+ if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _125 => _125.error, 'optionalAccess', _126 => _126.message]) && typeof _optionalChain([result, 'optionalAccess', _127 => _127.error, 'optionalAccess', _128 => _128.message]) === "string" && _optionalChain([result, 'optionalAccess', _129 => _129.error, 'optionalAccess', _130 => _130.name]) && typeof _optionalChain([result, 'optionalAccess', _131 => _131.error, 'optionalAccess', _132 => _132.name]) === "string") {
2225
2183
  throw new Error(`The ${name} generator failed to run`, {
2226
- cause: _optionalChain([result, 'optionalAccess', _146 => _146.error])
2184
+ cause: _optionalChain([result, 'optionalAccess', _133 => _133.error])
2227
2185
  });
2228
2186
  } else if (result.success && result.data) {
2229
2187
  return result;
2230
2188
  }
2231
2189
  }
2232
- if (_optionalChain([generatorOptions, 'optionalAccess', _147 => _147.hooks, 'optionalAccess', _148 => _148.postProcess])) {
2190
+ if (_optionalChain([generatorOptions, 'optionalAccess', _134 => _134.hooks, 'optionalAccess', _135 => _135.postProcess])) {
2233
2191
  _chunkW6YNIJQDjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
2234
2192
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
2235
2193
  _chunkW6YNIJQDjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
@@ -2339,15 +2297,15 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
2339
2297
  _devkit.addProjectConfiguration.call(void 0, tree, options.name, projectConfig);
2340
2298
  let repository = {
2341
2299
  type: "github",
2342
- url: _optionalChain([config, 'optionalAccess', _149 => _149.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _150 => _150.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _151 => _151.namespace]) || _optionalChain([config, 'optionalAccess', _152 => _152.name]) || "repository"}.git`
2300
+ url: _optionalChain([config, 'optionalAccess', _136 => _136.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _137 => _137.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _138 => _138.namespace]) || _optionalChain([config, 'optionalAccess', _139 => _139.name]) || "repository"}.git`
2343
2301
  };
2344
2302
  let description = schema.description || "A package developed by Storm Software used to create modern, scalable web applications.";
2345
2303
  if (tree.exists("package.json")) {
2346
2304
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
2347
- if (_optionalChain([packageJson, 'optionalAccess', _153 => _153.repository])) {
2305
+ if (_optionalChain([packageJson, 'optionalAccess', _140 => _140.repository])) {
2348
2306
  repository = packageJson.repository;
2349
2307
  }
2350
- if (_optionalChain([packageJson, 'optionalAccess', _154 => _154.description])) {
2308
+ if (_optionalChain([packageJson, 'optionalAccess', _141 => _141.description])) {
2351
2309
  description = packageJson.description;
2352
2310
  }
2353
2311
  }
@@ -2402,9 +2360,9 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
2402
2360
  _devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
2403
2361
  ...json,
2404
2362
  pnpm: {
2405
- ..._optionalChain([json, 'optionalAccess', _155 => _155.pnpm]),
2363
+ ..._optionalChain([json, 'optionalAccess', _142 => _142.pnpm]),
2406
2364
  overrides: {
2407
- ..._optionalChain([json, 'optionalAccess', _156 => _156.pnpm, 'optionalAccess', _157 => _157.overrides]),
2365
+ ..._optionalChain([json, 'optionalAccess', _143 => _143.pnpm, 'optionalAccess', _144 => _144.overrides]),
2408
2366
  [_nullishCoalesce(options.importPath, () => ( ""))]: "workspace:*"
2409
2367
  }
2410
2368
  }
@@ -2418,10 +2376,10 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
2418
2376
  ]);
2419
2377
  if (tree.exists("package.json")) {
2420
2378
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
2421
- if (_optionalChain([packageJson, 'optionalAccess', _158 => _158.repository])) {
2379
+ if (_optionalChain([packageJson, 'optionalAccess', _145 => _145.repository])) {
2422
2380
  repository = packageJson.repository;
2423
2381
  }
2424
- if (_optionalChain([packageJson, 'optionalAccess', _159 => _159.description])) {
2382
+ if (_optionalChain([packageJson, 'optionalAccess', _146 => _146.description])) {
2425
2383
  description = packageJson.description;
2426
2384
  }
2427
2385
  }
@@ -2469,24 +2427,24 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, getOutputPath, "getOutputPath");
2469
2427
  function createProjectTsConfigJson(tree, options) {
2470
2428
  const tsconfig = {
2471
2429
  extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
2472
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _160 => _160.tsconfigOptions]), () => ( {})),
2430
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _147 => _147.tsconfigOptions]), () => ( {})),
2473
2431
  compilerOptions: {
2474
2432
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
2475
2433
  outDir: _chunkW6YNIJQDjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2476
2434
  noEmit: true,
2477
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _161 => _161.tsconfigOptions, 'optionalAccess', _162 => _162.compilerOptions]), () => ( {}))
2435
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _148 => _148.tsconfigOptions, 'optionalAccess', _149 => _149.compilerOptions]), () => ( {}))
2478
2436
  },
2479
2437
  files: [
2480
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _163 => _163.tsconfigOptions, 'optionalAccess', _164 => _164.files]), () => ( []))
2438
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _150 => _150.tsconfigOptions, 'optionalAccess', _151 => _151.files]), () => ( []))
2481
2439
  ],
2482
2440
  include: [
2483
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _165 => _165.tsconfigOptions, 'optionalAccess', _166 => _166.include]), () => ( [])),
2441
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _152 => _152.tsconfigOptions, 'optionalAccess', _153 => _153.include]), () => ( [])),
2484
2442
  "src/**/*.ts",
2485
2443
  "src/**/*.js",
2486
2444
  "bin/**/*"
2487
2445
  ],
2488
2446
  exclude: [
2489
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _167 => _167.tsconfigOptions, 'optionalAccess', _168 => _168.exclude]), () => ( [])),
2447
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _154 => _154.tsconfigOptions, 'optionalAccess', _155 => _155.exclude]), () => ( [])),
2490
2448
  "jest.config.ts",
2491
2449
  "src/**/*.spec.ts",
2492
2450
  "src/**/*.test.ts"
@@ -2624,7 +2582,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
2624
2582
  name: "StormWorkspaceConfiguration"
2625
2583
  });
2626
2584
  _chunkW6YNIJQDjs.writeTrace.call(void 0, jsonSchema, config);
2627
- const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _169 => _169.workspaceRoot]), () => ( _chunkW6YNIJQDjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _170 => _170.outputFile, 'optionalAccess', _171 => _171.startsWith, 'call', _172 => _172("./")]) ? "" : "./");
2585
+ const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _156 => _156.workspaceRoot]), () => ( _chunkW6YNIJQDjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _157 => _157.outputFile, 'optionalAccess', _158 => _158.startsWith, 'call', _159 => _159("./")]) ? "" : "./");
2628
2586
  _chunkW6YNIJQDjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2629
2587
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
2630
2588
  spaces: 2
@@ -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 _chunkCCD6A6BNjs = require('./chunk-CCD6A6BN.js');
3
+ var _chunkWTUD4B6Ojs = require('./chunk-WTUD4B6O.js');
4
4
 
5
5
 
6
6
  var _chunkTHKJZT32js = require('./chunk-THKJZT32.js');
@@ -52,7 +52,7 @@ async function applicationGenerator(tree, schema) {
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 _chunkCCD6A6BNjs.generator_default.call(void 0, tree, {
55
+ tasks.push(await _chunkWTUD4B6Ojs.generator_default.call(void 0, tree, {
56
56
  ...options,
57
57
  skipFormat: true
58
58
  }));
@@ -8,7 +8,7 @@ var require_package = _chunkJ5SB6L2Ljs.__commonJS.call(void 0, {
8
8
  "package.json"(exports, module) {
9
9
  module.exports = {
10
10
  name: "@storm-software/cloudflare-tools",
11
- version: "0.53.1",
11
+ version: "0.54.0",
12
12
  description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
13
13
  repository: {
14
14
  type: "github",
package/dist/executors.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";require('./chunk-XO66D74Z.js');
2
2
  require('./chunk-R7AIVBS7.js');
3
- require('./chunk-GY2PQXHH.js');
3
+ require('./chunk-PCVUZFIE.js');
4
4
  require('./chunk-U6QKP7CG.js');
5
5
  require('./chunk-H63GI4CR.js');
6
6
  require('./chunk-VTHBMY4B.js');
@@ -1,6 +1,6 @@
1
1
  import "./chunk-YSCEY447.mjs";
2
2
  import "./chunk-QEWY5YJA.mjs";
3
- import "./chunk-RA7URPJI.mjs";
3
+ import "./chunk-EPJ3NXAN.mjs";
4
4
  import "./chunk-BGWUN6JU.mjs";
5
5
  import "./chunk-KVL4WOIH.mjs";
6
6
  import "./chunk-XU6MTFCV.mjs";
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkFBY3RXBPjs = require('./chunk-FBY3RXBP.js');
5
+ var _chunkVV4FAXNWjs = require('./chunk-VV4FAXNW.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkCCD6A6BNjs = require('./chunk-CCD6A6BN.js');
9
+ var _chunkWTUD4B6Ojs = require('./chunk-WTUD4B6O.js');
10
10
  require('./chunk-THKJZT32.js');
11
11
  require('./chunk-W6YNIJQD.js');
12
12
  require('./chunk-J5SB6L2L.js');
@@ -15,4 +15,4 @@ require('./chunk-J5SB6L2L.js');
15
15
 
16
16
 
17
17
 
18
- exports.applicationGenerator = _chunkFBY3RXBPjs.applicationGenerator; exports.applicationSchematic = _chunkFBY3RXBPjs.applicationSchematic; exports.initGenerator = _chunkCCD6A6BNjs.initGenerator; exports.initSchematic = _chunkCCD6A6BNjs.initSchematic;
18
+ exports.applicationGenerator = _chunkVV4FAXNWjs.applicationGenerator; exports.applicationSchematic = _chunkVV4FAXNWjs.applicationSchematic; exports.initGenerator = _chunkWTUD4B6Ojs.initGenerator; exports.initSchematic = _chunkWTUD4B6Ojs.initSchematic;
@@ -2,11 +2,11 @@ import "./chunk-3J7KBHMJ.mjs";
2
2
  import {
3
3
  applicationGenerator,
4
4
  applicationSchematic
5
- } from "./chunk-O4TNQIAD.mjs";
5
+ } from "./chunk-LYX4CNII.mjs";
6
6
  import {
7
7
  initGenerator,
8
8
  initSchematic
9
- } from "./chunk-L6Z7B2FZ.mjs";
9
+ } from "./chunk-HSYTAPR3.mjs";
10
10
  import "./chunk-6H63LE3D.mjs";
11
11
  import "./chunk-3D3WO4IH.mjs";
12
12
  import "./chunk-A7FFSBE6.mjs";
package/dist/index.js CHANGED
@@ -3,14 +3,14 @@ require('./chunk-DHBG5ASJ.js');
3
3
 
4
4
 
5
5
 
6
- var _chunkFBY3RXBPjs = require('./chunk-FBY3RXBP.js');
6
+ var _chunkVV4FAXNWjs = require('./chunk-VV4FAXNW.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkCCD6A6BNjs = require('./chunk-CCD6A6BN.js');
10
+ var _chunkWTUD4B6Ojs = require('./chunk-WTUD4B6O.js');
11
11
  require('./chunk-CVGPWUNP.js');
12
12
  require('./chunk-R7AIVBS7.js');
13
- require('./chunk-GY2PQXHH.js');
13
+ require('./chunk-PCVUZFIE.js');
14
14
  require('./chunk-U6QKP7CG.js');
15
15
 
16
16
 
@@ -148,4 +148,4 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, createPackageJson, "createPackageJson");
148
148
 
149
149
 
150
150
 
151
- exports.applicationGenerator = _chunkFBY3RXBPjs.applicationGenerator; exports.applicationSchematic = _chunkFBY3RXBPjs.applicationSchematic; exports.createNodes = createNodes; exports.getInternalDependencies = _chunkH63GI4CRjs.getInternalDependencies; exports.initGenerator = _chunkCCD6A6BNjs.initGenerator; exports.initSchematic = _chunkCCD6A6BNjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkH63GI4CRjs.r2UploadFile;
151
+ exports.applicationGenerator = _chunkVV4FAXNWjs.applicationGenerator; exports.applicationSchematic = _chunkVV4FAXNWjs.applicationSchematic; exports.createNodes = createNodes; exports.getInternalDependencies = _chunkH63GI4CRjs.getInternalDependencies; exports.initGenerator = _chunkWTUD4B6Ojs.initGenerator; exports.initSchematic = _chunkWTUD4B6Ojs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkH63GI4CRjs.r2UploadFile;
package/dist/index.mjs CHANGED
@@ -3,14 +3,14 @@ import "./chunk-3J7KBHMJ.mjs";
3
3
  import {
4
4
  applicationGenerator,
5
5
  applicationSchematic
6
- } from "./chunk-O4TNQIAD.mjs";
6
+ } from "./chunk-LYX4CNII.mjs";
7
7
  import {
8
8
  initGenerator,
9
9
  initSchematic
10
- } from "./chunk-L6Z7B2FZ.mjs";
10
+ } from "./chunk-HSYTAPR3.mjs";
11
11
  import "./chunk-7Z5PILRU.mjs";
12
12
  import "./chunk-QEWY5YJA.mjs";
13
- import "./chunk-RA7URPJI.mjs";
13
+ import "./chunk-EPJ3NXAN.mjs";
14
14
  import "./chunk-BGWUN6JU.mjs";
15
15
  import {
16
16
  getInternalDependencies,
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
  var _chunkR7AIVBS7js = require('../../../chunk-R7AIVBS7.js');
4
- require('../../../chunk-GY2PQXHH.js');
4
+ require('../../../chunk-PCVUZFIE.js');
5
5
  require('../../../chunk-VTHBMY4B.js');
6
6
  require('../../../chunk-THKJZT32.js');
7
7
  require('../../../chunk-W6YNIJQD.js');
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runExecutor
3
3
  } from "../../../chunk-QEWY5YJA.mjs";
4
- import "../../../chunk-RA7URPJI.mjs";
4
+ import "../../../chunk-EPJ3NXAN.mjs";
5
5
  import "../../../chunk-XU6MTFCV.mjs";
6
6
  import "../../../chunk-6H63LE3D.mjs";
7
7
  import "../../../chunk-3D3WO4IH.mjs";
@@ -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 _chunkGY2PQXHHjs = require('../../../chunk-GY2PQXHH.js');
3
+ var _chunkPCVUZFIEjs = require('../../../chunk-PCVUZFIE.js');
4
4
 
5
5
 
6
6
  var _chunkVTHBMY4Bjs = require('../../../chunk-VTHBMY4B.js');
@@ -60,7 +60,7 @@ async function* serveExecutor(options, context, config) {
60
60
  };
61
61
  }
62
62
  _chunkJ5SB6L2Ljs.__name.call(void 0, serveExecutor, "serveExecutor");
63
- var executor_default = _chunkGY2PQXHHjs.withRunExecutor.call(void 0, "Cloudflare Serve executor", serveExecutor, {
63
+ var executor_default = _chunkPCVUZFIEjs.withRunExecutor.call(void 0, "Cloudflare Serve executor", serveExecutor, {
64
64
  skipReadingConfig: false,
65
65
  hooks: {
66
66
  applyDefaultOptions: /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "../../../chunk-RA7URPJI.mjs";
3
+ } from "../../../chunk-EPJ3NXAN.mjs";
4
4
  import {
5
5
  createCliOptions
6
6
  } from "../../../chunk-XU6MTFCV.mjs";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkCCD6A6BNjs = require('../../../chunk-CCD6A6BN.js');
5
+ var _chunkWTUD4B6Ojs = require('../../../chunk-WTUD4B6O.js');
6
6
  require('../../../chunk-J5SB6L2L.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.default = _chunkCCD6A6BNjs.generator_default; exports.initGenerator = _chunkCCD6A6BNjs.initGenerator; exports.initSchematic = _chunkCCD6A6BNjs.initSchematic;
11
+ exports.default = _chunkWTUD4B6Ojs.generator_default; exports.initGenerator = _chunkWTUD4B6Ojs.initGenerator; exports.initSchematic = _chunkWTUD4B6Ojs.initSchematic;
@@ -2,7 +2,7 @@ import {
2
2
  generator_default,
3
3
  initGenerator,
4
4
  initSchematic
5
- } from "../../../chunk-L6Z7B2FZ.mjs";
5
+ } from "../../../chunk-HSYTAPR3.mjs";
6
6
  import "../../../chunk-A7FFSBE6.mjs";
7
7
  export {
8
8
  generator_default as default,
@@ -2,8 +2,8 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkFBY3RXBPjs = require('../../../chunk-FBY3RXBP.js');
6
- require('../../../chunk-CCD6A6BN.js');
5
+ var _chunkVV4FAXNWjs = require('../../../chunk-VV4FAXNW.js');
6
+ require('../../../chunk-WTUD4B6O.js');
7
7
  require('../../../chunk-THKJZT32.js');
8
8
  require('../../../chunk-W6YNIJQD.js');
9
9
  require('../../../chunk-J5SB6L2L.js');
@@ -11,4 +11,4 @@ require('../../../chunk-J5SB6L2L.js');
11
11
 
12
12
 
13
13
 
14
- exports.applicationGenerator = _chunkFBY3RXBPjs.applicationGenerator; exports.applicationSchematic = _chunkFBY3RXBPjs.applicationSchematic; exports.default = _chunkFBY3RXBPjs.generator_default;
14
+ exports.applicationGenerator = _chunkVV4FAXNWjs.applicationGenerator; exports.applicationSchematic = _chunkVV4FAXNWjs.applicationSchematic; exports.default = _chunkVV4FAXNWjs.generator_default;
@@ -2,8 +2,8 @@ import {
2
2
  applicationGenerator,
3
3
  applicationSchematic,
4
4
  generator_default
5
- } from "../../../chunk-O4TNQIAD.mjs";
6
- import "../../../chunk-L6Z7B2FZ.mjs";
5
+ } from "../../../chunk-LYX4CNII.mjs";
6
+ import "../../../chunk-HSYTAPR3.mjs";
7
7
  import "../../../chunk-6H63LE3D.mjs";
8
8
  import "../../../chunk-3D3WO4IH.mjs";
9
9
  import "../../../chunk-A7FFSBE6.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/cloudflare-tools",
3
- "version": "0.53.1",
3
+ "version": "0.54.0",
4
4
  "description": "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
5
5
  "repository": {
6
6
  "type": "github",