@storm-software/cloudflare-tools 0.20.0 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 0.20.1 (2024-07-31)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ - **build-tools:** Resolve issues with the output path provided to unbuild ([ee9c2353](https://github.com/storm-software/storm-ops/commit/ee9c2353))
7
+
1
8
  ## 0.20.0 (2024-07-31)
2
9
 
3
10
 
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.19.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)
24
+ [![Version](https://img.shields.io/badge/version-0.20.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)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/index.js CHANGED
@@ -606028,7 +606028,7 @@ var require_package8 = __commonJS({
606028
606028
  "packages/cloudflare-tools/package.json"(exports2, module2) {
606029
606029
  module2.exports = {
606030
606030
  name: "@storm-software/cloudflare-tools",
606031
- version: "0.20.0",
606031
+ version: "0.20.1",
606032
606032
  type: "commonjs",
606033
606033
  description: "\u26A1The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
606034
606034
  repository: {
@@ -764603,24 +764603,15 @@ var executor_default3 = withRunExecutor(
764603
764603
 
764604
764604
  // packages/workspace-tools/src/executors/tsup/executor.ts
764605
764605
  var import_build_tools = require("@storm-software/build-tools");
764606
- var import_build_tools2 = require("@storm-software/build-tools");
764607
764606
  async function tsupExecutorFn(options, context, config) {
764608
- const { writeDebug: writeDebug2, writeInfo: writeInfo2, writeSuccess: writeSuccess2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
764607
+ const { writeInfo: writeInfo2, writeSuccess: writeSuccess2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
764609
764608
  writeInfo2("\u{1F4E6} Running Storm build executor on the workspace", config);
764610
- writeDebug2(
764611
- `\u2699\uFE0F Executor options:
764612
- ${Object.keys(options).map(
764613
- (key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : _isFunction3(options[key]) ? "<function>" : JSON.stringify(options[key])}`
764614
- ).join("\n")}
764615
- `,
764616
- config
764617
- );
764618
764609
  if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
764619
764610
  throw new Error(
764620
764611
  "The Build process failed because the context is not valid. Please run this command from a workspace."
764621
764612
  );
764622
764613
  }
764623
- await (0, import_build_tools2.build)(config, {
764614
+ await (0, import_build_tools.build)(config, {
764624
764615
  ...options,
764625
764616
  projectRoot: context.projectsConfigurations.projects?.[context.projectName]?.root,
764626
764617
  projectName: context.projectName,
@@ -764641,29 +764632,15 @@ var executor_default4 = withRunExecutor(
764641
764632
  }
764642
764633
  }
764643
764634
  );
764644
- var _isPrimitive = (value2) => {
764645
- try {
764646
- return value2 === void 0 || value2 === null || typeof value2 !== "object" && typeof value2 !== "function";
764647
- } catch (e2) {
764648
- return false;
764649
- }
764650
- };
764651
- var _isFunction3 = (value2) => {
764652
- try {
764653
- return value2 instanceof Function || typeof value2 === "function" || !!(value2?.constructor && value2?.call && value2?.apply);
764654
- } catch (e2) {
764655
- return false;
764656
- }
764657
- };
764658
764635
 
764659
764636
  // packages/workspace-tools/src/executors/tsup-browser/executor.ts
764660
- var import_build_tools3 = require("@storm-software/build-tools");
764637
+ var import_build_tools2 = require("@storm-software/build-tools");
764661
764638
  var tsupBrowserBuildExecutorFn = (options, context, config) => {
764662
764639
  return tsupExecutorFn(
764663
764640
  {
764664
764641
  ...options,
764665
764642
  platform: "browser",
764666
- banner: (0, import_build_tools3.getFileBanner)(
764643
+ banner: (0, import_build_tools2.getFileBanner)(
764667
764644
  context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s2) => s2.trim()).filter((s2) => !!s2).map((s2) => s2 ? s2.toUpperCase()[0] + s2.toLowerCase().slice(1) : "").join(" ") : "TypeScript (Browser Platforms)"
764668
764645
  ),
764669
764646
  define: {
@@ -764672,7 +764649,7 @@ var tsupBrowserBuildExecutorFn = (options, context, config) => {
764672
764649
  env: {
764673
764650
  ...process.env
764674
764651
  },
764675
- getConfig: import_build_tools3.browserConfig
764652
+ getConfig: import_build_tools2.browserConfig
764676
764653
  },
764677
764654
  context,
764678
764655
  config
@@ -764686,12 +764663,12 @@ var executor_default5 = withRunExecutor(
764686
764663
  hooks: {
764687
764664
  applyDefaultOptions: (options) => {
764688
764665
  return {
764689
- ...(0, import_build_tools3.applyDefaultOptions)({
764666
+ ...(0, import_build_tools2.applyDefaultOptions)({
764690
764667
  plugins: [],
764691
764668
  ...options,
764692
764669
  platform: "browser"
764693
764670
  }),
764694
- getConfig: import_build_tools3.browserConfig
764671
+ getConfig: import_build_tools2.browserConfig
764695
764672
  };
764696
764673
  }
764697
764674
  }
@@ -764699,13 +764676,13 @@ var executor_default5 = withRunExecutor(
764699
764676
  );
764700
764677
 
764701
764678
  // packages/workspace-tools/src/executors/tsup-neutral/executor.ts
764702
- var import_build_tools4 = require("@storm-software/build-tools");
764679
+ var import_build_tools3 = require("@storm-software/build-tools");
764703
764680
  var tsupNeutralBuildExecutorFn = (options, context, config) => {
764704
764681
  return tsupExecutorFn(
764705
764682
  {
764706
764683
  ...options,
764707
764684
  platform: "neutral",
764708
- banner: (0, import_build_tools4.getFileBanner)(
764685
+ banner: (0, import_build_tools3.getFileBanner)(
764709
764686
  context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s2) => s2.trim()).filter((s2) => !!s2).map(
764710
764687
  (s2) => s2 ? s2.toUpperCase()[0] + s2.toLowerCase().slice(1) : ""
764711
764688
  ).join(" ") : "TypeScript (Neutral Platform)"
@@ -764717,7 +764694,7 @@ var tsupNeutralBuildExecutorFn = (options, context, config) => {
764717
764694
  env: {
764718
764695
  ...process.env
764719
764696
  },
764720
- getConfig: import_build_tools4.neutralConfig
764697
+ getConfig: import_build_tools3.neutralConfig
764721
764698
  },
764722
764699
  context,
764723
764700
  config
@@ -764731,12 +764708,12 @@ var executor_default6 = withRunExecutor(
764731
764708
  hooks: {
764732
764709
  applyDefaultOptions: (options) => {
764733
764710
  return {
764734
- ...(0, import_build_tools4.applyDefaultOptions)({
764711
+ ...(0, import_build_tools3.applyDefaultOptions)({
764735
764712
  plugins: [],
764736
764713
  ...options,
764737
764714
  platform: "neutral"
764738
764715
  }),
764739
- getConfig: import_build_tools4.neutralConfig
764716
+ getConfig: import_build_tools3.neutralConfig
764740
764717
  };
764741
764718
  }
764742
764719
  }
@@ -764744,13 +764721,13 @@ var executor_default6 = withRunExecutor(
764744
764721
  );
764745
764722
 
764746
764723
  // packages/workspace-tools/src/executors/tsup-node/executor.ts
764747
- var import_build_tools5 = require("@storm-software/build-tools");
764724
+ var import_build_tools4 = require("@storm-software/build-tools");
764748
764725
  var tsupNodeBuildExecutorFn = (options, context, config) => {
764749
764726
  return tsupExecutorFn(
764750
764727
  {
764751
764728
  ...options,
764752
764729
  platform: "node",
764753
- banner: (0, import_build_tools5.getFileBanner)(
764730
+ banner: (0, import_build_tools4.getFileBanner)(
764754
764731
  context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s2) => s2.trim()).filter((s2) => !!s2).map((s2) => s2 ? s2.toUpperCase()[0] + s2.toLowerCase().slice(1) : "").join(" ") : "TypeScript (NodeJs Platform)"
764755
764732
  ),
764756
764733
  define: {
@@ -764759,7 +764736,7 @@ var tsupNodeBuildExecutorFn = (options, context, config) => {
764759
764736
  env: {
764760
764737
  ...process.env
764761
764738
  },
764762
- getConfig: import_build_tools5.nodeConfig
764739
+ getConfig: import_build_tools4.nodeConfig
764763
764740
  },
764764
764741
  context,
764765
764742
  config
@@ -764773,12 +764750,12 @@ var executor_default7 = withRunExecutor(
764773
764750
  hooks: {
764774
764751
  applyDefaultOptions: (options) => {
764775
764752
  return {
764776
- ...(0, import_build_tools5.applyDefaultOptions)({
764753
+ ...(0, import_build_tools4.applyDefaultOptions)({
764777
764754
  plugins: [],
764778
764755
  ...options,
764779
764756
  platform: "node"
764780
764757
  }),
764781
- getConfig: import_build_tools5.nodeConfig,
764758
+ getConfig: import_build_tools4.nodeConfig,
764782
764759
  transports: ["pino-pretty", "pino-loki"]
764783
764760
  };
764784
764761
  }