@storm-software/cloudflare-tools 0.55.43 → 0.55.45

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/README.md +1 -1
  3. package/dist/{chunk-MESLYSHV.mjs → chunk-2P5TGL2R.mjs} +18 -10
  4. package/dist/{chunk-MCQ4YOON.js → chunk-4P4IIN6G.js} +16 -16
  5. package/dist/{chunk-E22S7JBO.mjs → chunk-BDADKXEW.mjs} +17 -13
  6. package/dist/{chunk-6D3NUIUL.js → chunk-DZPVDJXE.js} +186 -182
  7. package/dist/{chunk-PW324BYD.js → chunk-P7YORNEH.js} +1 -1
  8. package/dist/{chunk-LEXIFHU6.mjs → chunk-PHH7TIFK.mjs} +1 -1
  9. package/dist/{chunk-S3S7EN37.mjs → chunk-QGY5FTZR.mjs} +3 -3
  10. package/dist/{chunk-FK6PN2T3.js → chunk-QQQD2SIN.js} +11 -3
  11. package/dist/{chunk-HF5FM2V2.js → chunk-S5NUDAJR.js} +3 -3
  12. package/dist/{chunk-Q67NQSCF.mjs → chunk-WGEGIRE6.mjs} +1 -1
  13. package/dist/{chunk-M4FHQYTZ.mjs → chunk-YBYGEO5L.mjs} +11 -3
  14. package/dist/{chunk-H2ML72QF.js → chunk-Z5XL2UL5.js} +56 -48
  15. package/dist/{chunk-247N3JYF.js → chunk-ZGZLK5XZ.js} +12 -12
  16. package/dist/{chunk-5QU7G4BP.mjs → chunk-ZTEXBI4T.mjs} +3 -3
  17. package/dist/executors.js +5 -5
  18. package/dist/executors.mjs +5 -5
  19. package/dist/generators.js +5 -5
  20. package/dist/generators.mjs +4 -4
  21. package/dist/index.js +8 -8
  22. package/dist/index.mjs +7 -7
  23. package/dist/src/executors/cloudflare-publish/executor.js +3 -3
  24. package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
  25. package/dist/src/executors/r2-upload-publish/executor.js +5 -5
  26. package/dist/src/executors/r2-upload-publish/executor.mjs +4 -4
  27. package/dist/src/executors/serve/executor.d.mts +41 -7
  28. package/dist/src/executors/serve/executor.d.ts +41 -7
  29. package/dist/src/executors/serve/executor.js +4 -4
  30. package/dist/src/executors/serve/executor.mjs +3 -3
  31. package/dist/src/generators/init/generator.js +2 -2
  32. package/dist/src/generators/init/generator.mjs +1 -1
  33. package/dist/src/generators/worker/generator.js +5 -5
  34. package/dist/src/generators/worker/generator.mjs +4 -4
  35. package/dist/src/utils/index.js +3 -3
  36. package/dist/src/utils/index.mjs +2 -2
  37. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  38. package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
  39. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  # Changelog for Storm Ops - Cloudflare Tools
4
4
 
5
+ ## [0.55.45](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.45) (2025-04-04)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Regenerate README markdown files
10
+ ([30c679ec1](https://github.com/storm-software/storm-ops/commit/30c679ec1))
11
+
12
+ ## [0.55.44](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.44) (2025-04-02)
13
+
14
+ ### Miscellaneous
15
+
16
+ - **cloudflare-tools:** Update all references to `StormConfig` to point to
17
+ `StormWorkspaceConfig`
18
+ ([cdd9495af](https://github.com/storm-software/storm-ops/commit/cdd9495af))
19
+
5
20
  ## [0.55.43](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.43) (2025-03-18)
6
21
 
7
22
  ### Miscellaneous
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-0.55.42-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.55.44-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 -->
@@ -4,7 +4,6 @@ import {
4
4
  STORM_DEFAULT_DOCS,
5
5
  STORM_DEFAULT_HOMEPAGE,
6
6
  STORM_DEFAULT_LICENSING,
7
- StormConfigSchema,
8
7
  correctPaths,
9
8
  findWorkspaceRoot,
10
9
  formatLogMessage,
@@ -12,9 +11,10 @@ import {
12
11
  getLogLevel,
13
12
  getLogLevelLabel,
14
13
  joinPaths,
14
+ stormWorkspaceConfigSchema,
15
15
  writeTrace,
16
16
  writeWarning
17
- } from "./chunk-M4FHQYTZ.mjs";
17
+ } from "./chunk-YBYGEO5L.mjs";
18
18
  import {
19
19
  __name
20
20
  } from "./chunk-3HMZSKJD.mjs";
@@ -111,6 +111,10 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
111
111
  header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
112
112
  footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
113
113
  },
114
+ error: {
115
+ codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
116
+ url: process.env[`${prefix}ERROR_URL`] || void 0
117
+ },
114
118
  account: {
115
119
  twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
116
120
  discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
@@ -284,6 +288,10 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
284
288
  process.env[`${prefix}BOT_NAME`] = config.bot.name;
285
289
  process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
286
290
  }
291
+ if (config.error) {
292
+ process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
293
+ process.env[`${prefix}ERROR_URL`] = config.error.url;
294
+ }
287
295
  if (config.release) {
288
296
  process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
289
297
  process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
@@ -414,7 +422,7 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
414
422
  process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
415
423
  }
416
424
  if (config.registry.container) {
417
- process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.cyclone);
425
+ process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
418
426
  }
419
427
  }
420
428
  if (config.logLevel) {
@@ -534,7 +542,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
534
542
  // ../config-tools/src/create-storm-config.ts
535
543
  var _extension_cache = /* @__PURE__ */ new WeakMap();
536
544
  var _static_cache = void 0;
537
- var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
545
+ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
538
546
  let result;
539
547
  if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
540
548
  let _workspaceRoot = workspaceRoot;
@@ -549,7 +557,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
549
557
  logLevel: "all"
550
558
  });
551
559
  }
552
- result = await StormConfigSchema.parseAsync(defu2(configEnv, configFile, defaultConfig));
560
+ result = await stormWorkspaceConfigSchema.parseAsync(defu2(configEnv, configFile, defaultConfig));
553
561
  result.workspaceRoot ??= _workspaceRoot;
554
562
  } else {
555
563
  result = _static_cache.data;
@@ -565,7 +573,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
565
573
  data: result
566
574
  };
567
575
  return result;
568
- }, "createStormConfig");
576
+ }, "createStormWorkspaceConfig");
569
577
  var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
570
578
  const extension_cache_key = {
571
579
  extensionName
@@ -580,19 +588,19 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
580
588
  _extension_cache.set(extension_cache_key, extension);
581
589
  return extension;
582
590
  }, "createConfigExtension");
583
- var loadStormConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
584
- const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
591
+ var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
592
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
585
593
  setConfigEnv(config);
586
594
  if (!skipLogs && !config.skipConfigLogging) {
587
595
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
588
596
  ${formatLogMessage(config)}`, config);
589
597
  }
590
598
  return config;
591
- }, "loadStormConfig");
599
+ }, "loadStormWorkspaceConfig");
592
600
 
593
601
  // ../config-tools/src/get-config.ts
594
602
  var getConfig = /* @__PURE__ */ __name((workspaceRoot, skipLogs = false) => {
595
- return loadStormConfig(workspaceRoot, skipLogs);
603
+ return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
596
604
  }, "getConfig");
597
605
 
598
606
  export {
@@ -1,21 +1,21 @@
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
3
 
4
- var _chunkHF5FM2V2js = require('./chunk-HF5FM2V2.js');
4
+ var _chunkS5NUDAJRjs = require('./chunk-S5NUDAJR.js');
5
5
 
6
6
 
7
7
 
8
8
  var _chunkVTHBMY4Bjs = require('./chunk-VTHBMY4B.js');
9
9
 
10
10
 
11
- var _chunkH2ML72QFjs = require('./chunk-H2ML72QF.js');
11
+ var _chunkZ5XL2UL5js = require('./chunk-Z5XL2UL5.js');
12
12
 
13
13
 
14
14
 
15
15
 
16
16
 
17
17
 
18
- var _chunkFK6PN2T3js = require('./chunk-FK6PN2T3.js');
18
+ var _chunkQQQD2SINjs = require('./chunk-QQQD2SIN.js');
19
19
 
20
20
 
21
21
  var _chunkJ5SB6L2Ljs = require('./chunk-J5SB6L2L.js');
@@ -36,8 +36,8 @@ async function runExecutor(options, context) {
36
36
  throw new Error("The executor requires projectsConfigurations.");
37
37
  }
38
38
  try {
39
- const workspaceRoot = _chunkFK6PN2T3js.findWorkspaceRoot.call(void 0, );
40
- const config = await _chunkH2ML72QFjs.getConfig.call(void 0, workspaceRoot);
39
+ const workspaceRoot = _chunkQQQD2SINjs.findWorkspaceRoot.call(void 0, );
40
+ const config = await _chunkZ5XL2UL5js.getConfig.call(void 0, workspaceRoot);
41
41
  const sourceRoot = _nullishCoalesce(_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.sourceRoot]), () => ( workspaceRoot));
42
42
  const projectName = _nullishCoalesce(_optionalChain([context, 'access', _11 => _11.projectsConfigurations, 'access', _12 => _12.projects, 'access', _13 => _13[context.projectName], 'optionalAccess', _14 => _14.name]), () => ( context.projectName));
43
43
  const projectDetails = _chunkVTHBMY4Bjs.getPackageInfo.call(void 0, context.projectsConfigurations.projects[context.projectName]);
@@ -62,7 +62,7 @@ async function runExecutor(options, context) {
62
62
  if (!projectGraph) {
63
63
  throw new Error("No project graph found in cache");
64
64
  }
65
- _chunkFK6PN2T3js.writeInfo.call(void 0, `Publishing ${context.projectName} to the Storm Registry at ${endpoint}`);
65
+ _chunkQQQD2SINjs.writeInfo.call(void 0, `Publishing ${context.projectName} to the Storm Registry at ${endpoint}`);
66
66
  const s3Client = new (0, _clients3.S3)({
67
67
  region: "auto",
68
68
  endpoint,
@@ -72,12 +72,12 @@ async function runExecutor(options, context) {
72
72
  }
73
73
  });
74
74
  const version = _optionalChain([projectDetails, 'access', _18 => _18.content, 'optionalAccess', _19 => _19.version]);
75
- _chunkFK6PN2T3js.writeInfo.call(void 0, `Generated component version: ${version}`);
75
+ _chunkQQQD2SINjs.writeInfo.call(void 0, `Generated component version: ${version}`);
76
76
  const files = await _glob.glob.call(void 0, _devkit.joinPathFragments.call(void 0, sourceRoot, "**/*"), {
77
77
  ignore: "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}"
78
78
  });
79
79
  const projectPath = `registry/${context.projectName}`;
80
- const internalDependencies = await _chunkHF5FM2V2js.getInternalDependencies.call(void 0, context.projectName, projectGraph);
80
+ const internalDependencies = await _chunkS5NUDAJRjs.getInternalDependencies.call(void 0, context.projectName, projectGraph);
81
81
  const dependencies = internalDependencies.filter((projectNode) => !projectNode.data.tags || projectNode.data.tags.every((tag) => tag.toLowerCase() !== "component")).reduce((ret, dep) => {
82
82
  if (!ret[dep.name]) {
83
83
  ret[dep.name] = "latest";
@@ -85,14 +85,14 @@ async function runExecutor(options, context) {
85
85
  return ret;
86
86
  }, _nullishCoalesce(projectDetails.content.dependencies, () => ( {})));
87
87
  const release = _nullishCoalesce(options.tag, () => ( _child_process.execSync.call(void 0, "npm config get tag").toString().trim()));
88
- _chunkFK6PN2T3js.writeInfo.call(void 0, `Clearing out existing items in ${projectPath}`);
88
+ _chunkQQQD2SINjs.writeInfo.call(void 0, `Clearing out existing items in ${projectPath}`);
89
89
  if (!isDryRun) {
90
90
  const response = await s3Client.listObjects({
91
91
  Bucket: options.bucketId,
92
92
  Prefix: projectPath
93
93
  });
94
94
  if (_optionalChain([response, 'optionalAccess', _20 => _20.Contents]) && response.Contents.length > 0) {
95
- _chunkFK6PN2T3js.writeDebug.call(void 0, `Deleting the following existing items from the component registry: ${response.Contents.map((item) => item.Key).join(", ")}`);
95
+ _chunkQQQD2SINjs.writeDebug.call(void 0, `Deleting the following existing items from the component registry: ${response.Contents.map((item) => item.Key).join(", ")}`);
96
96
  await Promise.all(response.Contents.map((item) => s3Client.deleteObjects({
97
97
  Bucket: options.bucketId,
98
98
  Delete: {
@@ -105,10 +105,10 @@ async function runExecutor(options, context) {
105
105
  }
106
106
  })));
107
107
  } else {
108
- _chunkFK6PN2T3js.writeDebug.call(void 0, `No existing items to delete in the component registry path ${projectPath}`);
108
+ _chunkQQQD2SINjs.writeDebug.call(void 0, `No existing items to delete in the component registry path ${projectPath}`);
109
109
  }
110
110
  } else {
111
- _chunkFK6PN2T3js.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
111
+ _chunkQQQD2SINjs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
112
112
  }
113
113
  const meta = {
114
114
  name: context.projectName,
@@ -124,16 +124,16 @@ async function runExecutor(options, context) {
124
124
  meta.devDependencies = projectDetails.content.devDependencies;
125
125
  }
126
126
  const metaJson = JSON.stringify(meta);
127
- _chunkFK6PN2T3js.writeInfo.call(void 0, `Generating meta.json file:
127
+ _chunkQQQD2SINjs.writeInfo.call(void 0, `Generating meta.json file:
128
128
  ${metaJson}`);
129
- await _chunkHF5FM2V2js.r2UploadFile.call(void 0, s3Client, options.bucketId, projectPath, "meta.json", version, metaJson, "application/json", isDryRun);
129
+ await _chunkS5NUDAJRjs.r2UploadFile.call(void 0, s3Client, options.bucketId, projectPath, "meta.json", version, metaJson, "application/json", isDryRun);
130
130
  await Promise.all(files.map((file) => {
131
131
  const fileName = file.replaceAll("\\", "/").replace(sourceRoot.replaceAll("\\", "/"), "");
132
132
  return _promises.readFile.call(void 0, file, {
133
133
  encoding: "utf8"
134
- }).then((fileContent) => _chunkHF5FM2V2js.r2UploadFile.call(void 0, s3Client, options.bucketId, projectPath, fileName, version, fileContent, "text/plain", isDryRun));
134
+ }).then((fileContent) => _chunkS5NUDAJRjs.r2UploadFile.call(void 0, s3Client, options.bucketId, projectPath, fileName, version, fileContent, "text/plain", isDryRun));
135
135
  }));
136
- _chunkFK6PN2T3js.writeSuccess.call(void 0, `Successfully uploaded the ${projectName} component to the Cyclone Registry`, config);
136
+ _chunkQQQD2SINjs.writeSuccess.call(void 0, `Successfully uploaded the ${projectName} component to the Cyclone Registry`, config);
137
137
  return {
138
138
  success: true
139
139
  };
@@ -4,15 +4,15 @@ import {
4
4
  } from "./chunk-YYEF6TFG.mjs";
5
5
  import {
6
6
  getConfig
7
- } from "./chunk-MESLYSHV.mjs";
7
+ } from "./chunk-2P5TGL2R.mjs";
8
8
  import {
9
- StormConfigSchema,
10
9
  correctPaths,
11
10
  findWorkspaceRoot,
12
11
  formatLogMessage,
13
12
  getStopwatch,
14
13
  isVerbose,
15
14
  joinPaths,
15
+ stormWorkspaceConfigSchema,
16
16
  writeDebug,
17
17
  writeError,
18
18
  writeFatal,
@@ -20,7 +20,7 @@ import {
20
20
  writeSuccess,
21
21
  writeTrace,
22
22
  writeWarning
23
- } from "./chunk-M4FHQYTZ.mjs";
23
+ } from "./chunk-YBYGEO5L.mjs";
24
24
  import {
25
25
  __dirname,
26
26
  __name,
@@ -548,13 +548,13 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot3, proje
548
548
  return ret;
549
549
  }, []);
550
550
  packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
551
- if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name)) {
552
- ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
551
+ if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name) && packageJson.devDependencies?.[localPackage.name] === void 0) {
552
+ ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
553
553
  }
554
554
  return ret;
555
555
  }, packageJson.dependencies ?? {});
556
556
  packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
557
- if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name)) {
557
+ if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name) && packageJson.dependencies?.[localPackage.name] === void 0) {
558
558
  ret[localPackage.name] = localPackage.version || "0.0.1";
559
559
  }
560
560
  return ret;
@@ -647,7 +647,10 @@ var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRo
647
647
  return ret;
648
648
  }, []));
649
649
  } else {
650
- paths.push(entryPoint);
650
+ writeDebug(`Trying to add entry point ${entryPoint}"`, config);
651
+ if (!paths.includes(entryPoint)) {
652
+ paths.push(entryPoint);
653
+ }
651
654
  }
652
655
  return paths;
653
656
  }));
@@ -1390,7 +1393,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1390
1393
  ...userOptions,
1391
1394
  tsconfig: joinPaths(projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1392
1395
  format: options.format || "cjs",
1393
- entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry ?? "./src/index.ts", userOptions.emitOnAll === true),
1396
+ entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry ?? "./src/index.ts", false),
1394
1397
  outdir: userOptions.outputPath || joinPaths("dist", projectRoot),
1395
1398
  distDir: userOptions.distDir || "dist",
1396
1399
  plugins: [],
@@ -1405,7 +1408,6 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1405
1408
  metafile: userOptions.metafile !== false,
1406
1409
  generatePackageJson: userOptions.generatePackageJson !== false,
1407
1410
  clean: userOptions.clean !== false,
1408
- emitOnAll: userOptions.emitOnAll === true,
1409
1411
  assets: userOptions.assets ?? [],
1410
1412
  injectShims: userOptions.injectShims !== true,
1411
1413
  bundle: userOptions.bundle !== false,
@@ -1482,7 +1484,7 @@ async function generatePackageJson(context2) {
1482
1484
  if (Array.isArray(context2.options.entryPoints)) {
1483
1485
  entryPoints = context2.options.entryPoints.map((entryPoint) => typeof entryPoint === "string" ? {
1484
1486
  in: entryPoint,
1485
- out: entryPoint
1487
+ out: correctPaths(entryPoint.replaceAll(correctPaths(context2.options.config.workspaceRoot), "").replaceAll(correctPaths(context2.options.projectRoot), ""))
1486
1488
  } : entryPoint);
1487
1489
  }
1488
1490
  for (const entryPoint of entryPoints) {
@@ -1553,7 +1555,6 @@ async function executeEsBuild(context2) {
1553
1555
  delete options.clean;
1554
1556
  delete options.debug;
1555
1557
  delete options.generatePackageJson;
1556
- delete options.emitOnAll;
1557
1558
  delete options.distDir;
1558
1559
  delete options.includeSrc;
1559
1560
  delete options.verbose;
@@ -1566,7 +1567,10 @@ async function executeEsBuild(context2) {
1566
1567
  delete options.injectShims;
1567
1568
  delete options.external;
1568
1569
  writeTrace(`Run esbuild (${context2.options.name}) with the following options:
1569
- ${formatLogMessage(options)}`, context2.options.config);
1570
+ ${formatLogMessage({
1571
+ ...options,
1572
+ define: "<Hidden>"
1573
+ })}`, context2.options.config);
1570
1574
  const result = await esbuild2.build(options);
1571
1575
  await esbuild2.stop();
1572
1576
  if (result.metafile) {
@@ -2313,7 +2317,7 @@ import { zodToJsonSchema } from "zod-to-json-schema";
2313
2317
  async function configSchemaGeneratorFn(tree, options, config) {
2314
2318
  writeInfo("\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
2315
2319
  writeTrace(`Determining the Storm Workspace Configuration JSON Schema...`, config);
2316
- const jsonSchema = zodToJsonSchema(StormConfigSchema, {
2320
+ const jsonSchema = zodToJsonSchema(stormWorkspaceConfigSchema, {
2317
2321
  name: "StormWorkspaceConfiguration"
2318
2322
  });
2319
2323
  writeTrace(jsonSchema, config);