@storm-software/workspace-tools 1.290.11 → 1.291.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/{chunk-MR2J2XDA.js → chunk-3WCQK76E.js} +22 -292
  3. package/dist/{chunk-KKCNNJUO.mjs → chunk-DVZPBLGA.mjs} +20 -290
  4. package/dist/chunk-F3NQOV2M.mjs +314 -0
  5. package/dist/chunk-FSYURQ5X.js +314 -0
  6. package/dist/chunk-H5NKQQJU.mjs +363 -0
  7. package/dist/chunk-OTI7QVPG.js +363 -0
  8. package/dist/executor-4s6Siy2o.d.ts +144 -0
  9. package/dist/executor-BmxxnfjA.d.mts +144 -0
  10. package/dist/executors.d.mts +1 -0
  11. package/dist/executors.d.ts +1 -0
  12. package/dist/executors.js +11 -6
  13. package/dist/executors.mjs +13 -8
  14. package/dist/generators.js +3 -3
  15. package/dist/generators.mjs +3 -3
  16. package/dist/index.d.mts +1 -0
  17. package/dist/index.d.ts +1 -0
  18. package/dist/index.js +14 -9
  19. package/dist/index.mjs +16 -11
  20. package/dist/src/executors/esbuild/executor.js +3 -2
  21. package/dist/src/executors/esbuild/executor.mjs +2 -1
  22. package/dist/src/executors/tsdown/executor.d.mts +5 -0
  23. package/dist/src/executors/tsdown/executor.d.ts +5 -0
  24. package/dist/src/executors/tsdown/executor.js +15 -0
  25. package/dist/src/executors/tsdown/executor.mjs +16 -0
  26. package/dist/src/executors/tsdown/schema.d.ts +135 -0
  27. package/dist/src/executors/tsdown/schema.json +174 -0
  28. package/dist/src/executors/tsdown/untyped.d.mts +5 -0
  29. package/dist/src/executors/tsdown/untyped.d.ts +5 -0
  30. package/dist/src/executors/tsdown/untyped.js +18 -0
  31. package/dist/src/executors/tsdown/untyped.mjs +19 -0
  32. package/dist/src/plugins/typescript/tsdown.d.mts +9 -0
  33. package/dist/src/plugins/typescript/tsdown.d.ts +9 -0
  34. package/dist/src/plugins/typescript/tsdown.js +169 -0
  35. package/dist/src/plugins/typescript/tsdown.mjs +170 -0
  36. package/docs/api/executors/tsdown/schema.md +126 -0
  37. package/package.json +8 -6
  38. /package/dist/{chunk-7VDOGZYO.js → chunk-3J53KHVV.js} +0 -0
  39. /package/dist/{chunk-BLX5SLPC.mjs → chunk-V7YZ3666.mjs} +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  # Changelog for Storm Ops - Workspace Tools
4
4
 
5
+ ## [1.290.11](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.290.11) (2025-09-21)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Update workspace package links
10
+ ([91c9879c3](https://github.com/storm-software/storm-ops/commit/91c9879c3))
11
+
12
+ ### Updated Dependencies
13
+
14
+ - Updated pnpm-tools to 0.5.4
15
+ - Updated npm-tools to 0.4.11
16
+ - Updated prettier to 0.56.6
17
+ - Updated esbuild to 0.52.11
18
+ - Updated unbuild to 0.56.11
19
+
5
20
  ## [1.290.10](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.290.10) (2025-09-21)
6
21
 
7
22
  ### Miscellaneous
@@ -1,309 +1,39 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkLXGJXVCRjs = require('./chunk-LXGJXVCR.js');
4
-
5
-
6
- var _chunkCLVIC3ZCjs = require('./chunk-CLVIC3ZC.js');
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
3
 
15
4
 
16
5
 
17
- var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
18
-
19
-
20
- var _chunkIVAHNQZPjs = require('./chunk-IVAHNQZP.js');
21
-
22
-
23
- var _chunkG2L3EEEOjs = require('./chunk-G2L3EEEO.js');
24
-
25
- // ../build-tools/src/config.ts
26
- var DEFAULT_COMPILED_BANNER = `/*****************************************
27
- *
28
- * \u26A1 Built by Storm Software
29
- *
30
- *****************************************/
31
- `;
32
- var DEFAULT_ENVIRONMENT = "production";
33
- var DEFAULT_ORGANIZATION = "storm-software";
34
-
35
- // ../build-tools/src/plugins/swc.ts
36
- var _core = require('@swc/core');
37
-
38
- // ../build-tools/src/plugins/ts-resolve.ts
39
- var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
40
- var _module = require('module');
41
- var _path = require('path'); var _path2 = _interopRequireDefault(_path);
42
- var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
43
-
44
- // ../build-tools/src/plugins/type-definitions.ts
45
- var _devkit = require('@nx/devkit');
46
-
47
-
48
- // ../build-tools/src/utilities/copy-assets.ts
49
- var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
50
- var _glob = require('glob');
51
- var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
52
- var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson2 = true, includeSrc = false, banner, footer) => {
53
- const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
54
- pendingAssets.push({
55
- input: projectRoot,
56
- glob: "*.md",
57
- output: "."
58
- });
59
- pendingAssets.push({
60
- input: ".",
61
- glob: "LICENSE",
62
- output: "."
63
- });
64
- if (generatePackageJson2 === false) {
65
- pendingAssets.push({
66
- input: projectRoot,
67
- glob: "package.json",
68
- output: "."
69
- });
70
- }
71
- if (includeSrc === true) {
72
- pendingAssets.push({
73
- input: sourceRoot,
74
- glob: "**/{*.ts,*.tsx,*.js,*.jsx}",
75
- output: "src/"
76
- });
77
- }
78
- _chunk2CDSXWFAjs.writeTrace.call(void 0,
79
- `\u{1F4DD} Copying the following assets to the output directory:
80
- ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkG2L3EEEOjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
81
- config
82
- );
83
- const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
84
- projectDir: projectRoot,
85
- rootDir: config.workspaceRoot,
86
- outputDir: outputPath,
87
- assets: pendingAssets
88
- });
89
- await assetHandler.processAllAssetsOnce();
90
- _chunk2CDSXWFAjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
91
- if (includeSrc === true) {
92
- _chunk2CDSXWFAjs.writeDebug.call(void 0,
93
- `\u{1F4DD} Adding banner and writing source files: ${_chunkG2L3EEEOjs.joinPaths.call(void 0,
94
- outputPath,
95
- "src"
96
- )}`,
97
- config
98
- );
99
- const files = await _glob.glob.call(void 0, [
100
- _chunkG2L3EEEOjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
101
- _chunkG2L3EEEOjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
102
- _chunkG2L3EEEOjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
103
- _chunkG2L3EEEOjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
104
- ]);
105
- await Promise.allSettled(
106
- files.map(
107
- async (file) => _promises.writeFile.call(void 0,
108
- file,
109
- `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
110
-
111
- ${await _promises.readFile.call(void 0, file, "utf8")}
112
-
113
- ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `// ${footer}` : ""}`
114
- )
115
- )
116
- );
117
- }
118
- };
119
-
120
- // ../build-tools/src/utilities/generate-package-json.ts
121
- var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
122
-
123
6
 
7
+ var _chunkFSYURQ5Xjs = require('./chunk-FSYURQ5X.js');
124
8
 
125
9
 
10
+ var _chunkLXGJXVCRjs = require('./chunk-LXGJXVCR.js');
126
11
 
127
12
 
13
+ var _chunkCLVIC3ZCjs = require('./chunk-CLVIC3ZC.js');
128
14
 
129
- var _projectgraph = require('nx/src/project-graph/project-graph');
130
- var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, packageJson) => {
131
- let projectGraph;
132
- try {
133
- projectGraph = _projectgraph.readCachedProjectGraph.call(void 0, );
134
- } catch (e) {
135
- await _projectgraph.createProjectGraphAsync.call(void 0, );
136
- projectGraph = _projectgraph.readCachedProjectGraph.call(void 0, );
137
- }
138
- if (!projectGraph) {
139
- throw new Error(
140
- "The Build process failed because the project graph is not available. Please run the build command again."
141
- );
142
- }
143
- const projectDependencies = _buildablelibsutils.calculateProjectBuildableDependencies.call(void 0,
144
- void 0,
145
- projectGraph,
146
- workspaceRoot,
147
- projectName,
148
- process.env.NX_TASK_TARGET_TARGET || "build",
149
- process.env.NX_TASK_TARGET_CONFIGURATION || "production",
150
- true
151
- );
152
- const localPackages = [];
153
- for (const project of projectDependencies.dependencies.filter(
154
- (dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _ => _.node, 'access', _2 => _2.data, 'optionalAccess', _3 => _3.root]) !== projectRoot && _optionalChain([dep, 'access', _4 => _4.node, 'access', _5 => _5.data, 'optionalAccess', _6 => _6.root]) !== workspaceRoot
155
- )) {
156
- const projectNode = project.node;
157
- if (projectNode.data.root) {
158
- const projectPackageJsonPath = _chunkG2L3EEEOjs.joinPaths.call(void 0,
159
- workspaceRoot,
160
- projectNode.data.root,
161
- "package.json"
162
- );
163
- if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
164
- const projectPackageJsonContent = await _promises.readFile.call(void 0,
165
- projectPackageJsonPath,
166
- "utf8"
167
- );
168
- const projectPackageJson = JSON.parse(projectPackageJsonContent);
169
- if (projectPackageJson.private !== true) {
170
- localPackages.push(projectPackageJson);
171
- }
172
- }
173
- }
174
- }
175
- if (localPackages.length > 0) {
176
- _chunk2CDSXWFAjs.writeTrace.call(void 0,
177
- `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
178
- );
179
- const projectJsonFile = await _promises.readFile.call(void 0,
180
- _chunkG2L3EEEOjs.joinPaths.call(void 0, projectRoot, "project.json"),
181
- "utf8"
182
- );
183
- const projectJson = JSON.parse(projectJsonFile);
184
- const projectName2 = projectJson.name;
185
- const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
186
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _7 => _7.projects, 'optionalAccess', _8 => _8[projectName2]])) {
187
- throw new Error(
188
- "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."
189
- );
190
- }
191
- const implicitDependencies = _optionalChain([projectConfigurations, 'access', _9 => _9.projects, 'optionalAccess', _10 => _10[projectName2], 'access', _11 => _11.implicitDependencies, 'optionalAccess', _12 => _12.reduce, 'call', _13 => _13((ret, dep) => {
192
- if (_optionalChain([projectConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[dep]])) {
193
- const depPackageJsonPath = _chunkG2L3EEEOjs.joinPaths.call(void 0,
194
- workspaceRoot,
195
- projectConfigurations.projects[dep].root,
196
- "package.json"
197
- );
198
- if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
199
- const depPackageJsonContent = _fs.readFileSync.call(void 0,
200
- depPackageJsonPath,
201
- "utf8"
202
- );
203
- const depPackageJson = JSON.parse(depPackageJsonContent);
204
- if (depPackageJson.private !== true && !ret.includes(depPackageJson.name)) {
205
- ret.push(depPackageJson.name);
206
- }
207
- }
208
- }
209
- return ret;
210
- }, [])]);
211
- packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
212
- if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _16 => _16.includes, 'call', _17 => _17(localPackage.name)]) && _optionalChain([packageJson, 'access', _18 => _18.devDependencies, 'optionalAccess', _19 => _19[localPackage.name]]) === void 0) {
213
- ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
214
- }
215
- return ret;
216
- }, _nullishCoalesce(packageJson.dependencies, () => ( {})));
217
- packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
218
- if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _20 => _20.includes, 'call', _21 => _21(localPackage.name)]) && _optionalChain([packageJson, 'access', _22 => _22.dependencies, 'optionalAccess', _23 => _23[localPackage.name]]) === void 0) {
219
- ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
220
- }
221
- return ret;
222
- }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
223
- } else {
224
- _chunk2CDSXWFAjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
225
- }
226
- return packageJson;
227
- };
228
- var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
229
- const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkIVAHNQZPjs.findWorkspaceRoot.call(void 0, );
230
- const workspacePackageJsonContent = await _promises.readFile.call(void 0,
231
- _chunkG2L3EEEOjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
232
- "utf8"
233
- );
234
- const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
235
- packageJson.type ??= "module";
236
- packageJson.sideEffects ??= false;
237
- if (includeSrc === true) {
238
- let distSrc = sourceRoot.replace(projectRoot, "");
239
- if (distSrc.startsWith("/")) {
240
- distSrc = distSrc.substring(1);
241
- }
242
- packageJson.source ??= `${_chunkG2L3EEEOjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
243
- }
244
- packageJson.files ??= ["dist/**/*"];
245
- if (includeSrc === true && !packageJson.files.includes("src")) {
246
- packageJson.files.push("src/**/*");
247
- }
248
- packageJson.publishConfig ??= {
249
- access: "public"
250
- };
251
- packageJson.description ??= workspacePackageJson.description;
252
- packageJson.homepage ??= workspacePackageJson.homepage;
253
- packageJson.bugs ??= workspacePackageJson.bugs;
254
- packageJson.license ??= workspacePackageJson.license;
255
- packageJson.keywords ??= workspacePackageJson.keywords;
256
- packageJson.funding ??= workspacePackageJson.funding;
257
- packageJson.author ??= workspacePackageJson.author;
258
- packageJson.maintainers ??= workspacePackageJson.maintainers;
259
- if (!packageJson.maintainers && packageJson.author) {
260
- packageJson.maintainers = [packageJson.author];
261
- }
262
- packageJson.contributors ??= workspacePackageJson.contributors;
263
- if (!packageJson.contributors && packageJson.author) {
264
- packageJson.contributors = [packageJson.author];
265
- }
266
- packageJson.repository ??= workspacePackageJson.repository;
267
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkG2L3EEEOjs.joinPaths.call(void 0, "packages", projectName);
268
- return packageJson;
269
- };
270
15
 
271
- // ../build-tools/src/utilities/get-entry-points.ts
272
16
 
273
17
 
274
- // ../build-tools/src/utilities/get-env.ts
275
- var getEnv = (builder, options) => {
276
- return {
277
- STORM_BUILD: builder,
278
- STORM_ORG: options.orgName || DEFAULT_ORGANIZATION,
279
- STORM_NAME: options.name,
280
- STORM_MODE: options.mode || DEFAULT_ENVIRONMENT,
281
- STORM_PLATFORM: options.platform,
282
- STORM_FORMAT: JSON.stringify(options.format),
283
- STORM_TARGET: JSON.stringify(options.target),
284
- ...options.env
285
- };
286
- };
287
18
 
288
- // ../build-tools/src/utilities/read-nx-config.ts
289
19
 
290
20
 
291
21
 
292
- // ../build-tools/src/utilities/task-graph.ts
293
22
 
23
+ var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
294
24
 
295
25
 
296
- var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
26
+ var _chunkG2L3EEEOjs = require('./chunk-G2L3EEEO.js');
297
27
 
298
28
  // ../esbuild/src/assets.ts
299
29
  async function copyBuildAssets(context) {
300
- if (!_optionalChain([context, 'access', _24 => _24.result, 'optionalAccess', _25 => _25.errors, 'access', _26 => _26.length]) && _optionalChain([context, 'access', _27 => _27.options, 'access', _28 => _28.assets, 'optionalAccess', _29 => _29.length])) {
30
+ if (!_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) && _optionalChain([context, 'access', _4 => _4.options, 'access', _5 => _5.assets, 'optionalAccess', _6 => _6.length])) {
301
31
  _chunk2CDSXWFAjs.writeDebug.call(void 0,
302
32
  ` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
303
33
  context.workspaceConfig
304
34
  );
305
35
  const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
306
- await copyAssets(
36
+ await _chunkFSYURQ5Xjs.copyAssets.call(void 0,
307
37
  context.workspaceConfig,
308
38
  _nullishCoalesce(context.options.assets, () => ( [])),
309
39
  context.outputPath,
@@ -318,7 +48,7 @@ async function copyBuildAssets(context) {
318
48
  }
319
49
 
320
50
  // ../esbuild/src/clean.ts
321
-
51
+ var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
322
52
  async function cleanDirectories(directory) {
323
53
  await _promises.rm.call(void 0, directory, { recursive: true, force: true });
324
54
  }
@@ -327,9 +57,9 @@ async function cleanDirectories(directory) {
327
57
 
328
58
 
329
59
 
330
-
60
+ var _devkit = require('@nx/devkit');
331
61
  var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
332
-
62
+ var _fs = require('fs');
333
63
 
334
64
  var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
335
65
 
@@ -371,8 +101,8 @@ var DEFAULT_BUILD_OPTIONS = {
371
101
  ".woff2": "file"
372
102
  },
373
103
  banner: {
374
- js: DEFAULT_COMPILED_BANNER,
375
- css: DEFAULT_COMPILED_BANNER
104
+ js: _chunkFSYURQ5Xjs.DEFAULT_COMPILED_BANNER,
105
+ css: _chunkFSYURQ5Xjs.DEFAULT_COMPILED_BANNER
376
106
  }
377
107
  };
378
108
 
@@ -403,7 +133,7 @@ async function resolveContext(userOptions) {
403
133
  const projectJson = JSON.parse(projectJsonFile);
404
134
  const projectName = projectJson.name || userOptions.name;
405
135
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
406
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _30 => _30.projects, 'optionalAccess', _31 => _31[projectName]])) {
136
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _7 => _7.projects, 'optionalAccess', _8 => _8[projectName]])) {
407
137
  throw new Error(
408
138
  "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."
409
139
  );
@@ -418,7 +148,7 @@ async function resolveContext(userOptions) {
418
148
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
419
149
  throw new Error("Cannot find package.json configuration");
420
150
  }
421
- const env = getEnv("esbuild", options);
151
+ const env = _chunkFSYURQ5Xjs.getEnv.call(void 0, "esbuild", options);
422
152
  const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
423
153
  const resolvedOptions = {
424
154
  ...options,
@@ -494,13 +224,13 @@ async function generatePackageJson(context) {
494
224
  if (!packageJson) {
495
225
  throw new Error("Cannot find package.json configuration file");
496
226
  }
497
- packageJson = await addPackageDependencies(
227
+ packageJson = await _chunkFSYURQ5Xjs.addPackageDependencies.call(void 0,
498
228
  context.workspaceConfig.workspaceRoot,
499
229
  context.options.projectRoot,
500
230
  context.projectName,
501
231
  packageJson
502
232
  );
503
- packageJson = await addWorkspacePackageJsonFields(
233
+ packageJson = await _chunkFSYURQ5Xjs.addWorkspacePackageJsonFields.call(void 0,
504
234
  context.workspaceConfig,
505
235
  context.options.projectRoot,
506
236
  context.sourceRoot,
@@ -616,7 +346,7 @@ async function executeTsup(context) {
616
346
 
617
347
  // ../esbuild/src/build.ts
618
348
  async function reportResults(context) {
619
- if (_optionalChain([context, 'access', _32 => _32.result, 'optionalAccess', _33 => _33.errors, 'access', _34 => _34.length]) === 0) {
349
+ if (_optionalChain([context, 'access', _9 => _9.result, 'optionalAccess', _10 => _10.errors, 'access', _11 => _11.length]) === 0) {
620
350
  if (context.result.warnings.length > 0) {
621
351
  _chunk2CDSXWFAjs.writeWarning.call(void 0,
622
352
  ` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
@@ -627,7 +357,7 @@ async function reportResults(context) {
627
357
  ` \u{1F4E6} The ${context.options.name} build completed successfully`,
628
358
  context.workspaceConfig
629
359
  );
630
- } else if (_optionalChain([context, 'access', _35 => _35.result, 'optionalAccess', _36 => _36.errors]) && _optionalChain([context, 'access', _37 => _37.result, 'optionalAccess', _38 => _38.errors, 'access', _39 => _39.length]) > 0) {
360
+ } else if (_optionalChain([context, 'access', _12 => _12.result, 'optionalAccess', _13 => _13.errors]) && _optionalChain([context, 'access', _14 => _14.result, 'optionalAccess', _15 => _15.errors, 'access', _16 => _16.length]) > 0) {
631
361
  _chunk2CDSXWFAjs.writeError.call(void 0,
632
362
  ` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
633
363
  context.workspaceConfig
@@ -680,7 +410,7 @@ async function build(options) {
680
410
  // src/executors/esbuild/executor.ts
681
411
  async function esbuildExecutorFn(options, context, config) {
682
412
  _chunk2CDSXWFAjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
683
- if (!_optionalChain([context, 'access', _40 => _40.projectsConfigurations, 'optionalAccess', _41 => _41.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _42 => _42.projectsConfigurations, 'access', _43 => _43.projects, 'access', _44 => _44[context.projectName], 'optionalAccess', _45 => _45.root])) {
413
+ if (!_optionalChain([context, 'access', _17 => _17.projectsConfigurations, 'optionalAccess', _18 => _18.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _19 => _19.projectsConfigurations, 'access', _20 => _20.projects, 'access', _21 => _21[context.projectName], 'optionalAccess', _22 => _22.root])) {
684
414
  throw new Error(
685
415
  "The Build process failed because the context is not valid. Please run this command from a workspace."
686
416
  );
@@ -689,12 +419,12 @@ async function esbuildExecutorFn(options, context, config) {
689
419
  ...options,
690
420
  projectRoot: (
691
421
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
692
- _optionalChain([context, 'access', _46 => _46.projectsConfigurations, 'access', _47 => _47.projects, 'optionalAccess', _48 => _48[context.projectName], 'access', _49 => _49.root])
422
+ _optionalChain([context, 'access', _23 => _23.projectsConfigurations, 'access', _24 => _24.projects, 'optionalAccess', _25 => _25[context.projectName], 'access', _26 => _26.root])
693
423
  ),
694
424
  name: context.projectName,
695
- sourceRoot: _optionalChain([context, 'access', _50 => _50.projectsConfigurations, 'access', _51 => _51.projects, 'optionalAccess', _52 => _52[context.projectName], 'optionalAccess', _53 => _53.sourceRoot]),
425
+ sourceRoot: _optionalChain([context, 'access', _27 => _27.projectsConfigurations, 'access', _28 => _28.projects, 'optionalAccess', _29 => _29[context.projectName], 'optionalAccess', _30 => _30.sourceRoot]),
696
426
  format: options.format,
697
- platform: options.format
427
+ platform: options.platform
698
428
  });
699
429
  return {
700
430
  success: true