@storm-software/tsdown 0.36.41 → 0.36.43

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/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.36.39-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.36.41-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/dist/build.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkAEASSATPcjs = require('./chunk-AEASSATP.cjs');
4
+ var _chunk2HLQSMSXcjs = require('./chunk-2HLQSMSX.cjs');
5
5
  require('./chunk-ST3M7K2Q.cjs');
6
6
  require('./chunk-65E5RX7I.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.build = _chunkAEASSATPcjs.build; exports.cleanOutputPath = _chunkAEASSATPcjs.cleanOutputPath;
10
+ exports.build = _chunk2HLQSMSXcjs.build; exports.cleanOutputPath = _chunk2HLQSMSXcjs.cleanOutputPath;
package/dist/build.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-VRKCY5OL.js";
4
+ } from "./chunk-7DNMJUIH.js";
5
5
  import "./chunk-RHOKIETM.js";
6
6
  import "./chunk-2YE3GBQH.js";
7
7
  export {
@@ -925,12 +925,28 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
925
925
  }
926
926
  }
927
927
  const defaultConfig = await _chunkST3M7K2Qcjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
928
- result = _chunkST3M7K2Qcjs.applyDefaultConfig.call(void 0,
929
- await _chunkST3M7K2Qcjs.stormWorkspaceConfigSchema.parseAsync(
930
- _defu2.default.call(void 0, configEnv, configFile, defaultConfig)
931
- )
928
+ const configInput = _defu2.default.call(void 0,
929
+ configEnv,
930
+ configFile,
931
+ defaultConfig
932
932
  );
933
- result.workspaceRoot ??= _workspaceRoot;
933
+ try {
934
+ result = _chunkST3M7K2Qcjs.applyDefaultConfig.call(void 0,
935
+ await _chunkST3M7K2Qcjs.stormWorkspaceConfigSchema.parseAsync(configInput)
936
+ );
937
+ result.workspaceRoot ??= _workspaceRoot;
938
+ } catch (error) {
939
+ throw new Error(
940
+ `Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _54 => _54.message]) ? `: ${error.message}` : ""}
941
+
942
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkST3M7K2Qcjs.formatLogMessage.call(void 0,
943
+ configInput
944
+ )}`,
945
+ {
946
+ cause: error
947
+ }
948
+ );
949
+ }
934
950
  } else {
935
951
  result = _static_cache.data;
936
952
  }
@@ -1102,7 +1118,7 @@ var resolveOptions = async (userOptions) => {
1102
1118
  const projectJson = JSON.parse(projectJsonFile);
1103
1119
  const projectName = projectJson.name;
1104
1120
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
1105
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _54 => _54.projects, 'optionalAccess', _55 => _55[projectName]])) {
1121
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _55 => _55.projects, 'optionalAccess', _56 => _56[projectName]])) {
1106
1122
  throw new Error(
1107
1123
  "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."
1108
1124
  );
@@ -925,12 +925,28 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
925
925
  }
926
926
  }
927
927
  const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
928
- result = applyDefaultConfig(
929
- await stormWorkspaceConfigSchema.parseAsync(
930
- defu2(configEnv, configFile, defaultConfig)
931
- )
928
+ const configInput = defu2(
929
+ configEnv,
930
+ configFile,
931
+ defaultConfig
932
932
  );
933
- result.workspaceRoot ??= _workspaceRoot;
933
+ try {
934
+ result = applyDefaultConfig(
935
+ await stormWorkspaceConfigSchema.parseAsync(configInput)
936
+ );
937
+ result.workspaceRoot ??= _workspaceRoot;
938
+ } catch (error) {
939
+ throw new Error(
940
+ `Failed to parse Storm Workspace configuration${error?.message ? `: ${error.message}` : ""}
941
+
942
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
943
+ configInput
944
+ )}`,
945
+ {
946
+ cause: error
947
+ }
948
+ );
949
+ }
934
950
  } else {
935
951
  result = _static_cache.data;
936
952
  }
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkAEASSATPcjs = require('./chunk-AEASSATP.cjs');
4
+ var _chunk2HLQSMSXcjs = require('./chunk-2HLQSMSX.cjs');
5
5
 
6
6
 
7
7
 
@@ -16,4 +16,4 @@ require('./chunk-ZBPRDZS4.cjs');
16
16
 
17
17
 
18
18
 
19
- exports.DEFAULT_BUILD_OPTIONS = _chunk65E5RX7Icjs.DEFAULT_BUILD_OPTIONS; exports.build = _chunkAEASSATPcjs.build; exports.clean = _chunkST3M7K2Qcjs.clean; exports.cleanDirectories = _chunkST3M7K2Qcjs.cleanDirectories; exports.cleanOutputPath = _chunkAEASSATPcjs.cleanOutputPath;
19
+ exports.DEFAULT_BUILD_OPTIONS = _chunk65E5RX7Icjs.DEFAULT_BUILD_OPTIONS; exports.build = _chunk2HLQSMSXcjs.build; exports.clean = _chunkST3M7K2Qcjs.clean; exports.cleanDirectories = _chunkST3M7K2Qcjs.cleanDirectories; exports.cleanOutputPath = _chunk2HLQSMSXcjs.cleanOutputPath;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-VRKCY5OL.js";
4
+ } from "./chunk-7DNMJUIH.js";
5
5
  import {
6
6
  clean,
7
7
  cleanDirectories
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/tsdown",
3
- "version": "0.36.41",
3
+ "version": "0.36.43",
4
4
  "type": "module",
5
5
  "description": "A package containing `tsdown` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -149,9 +149,9 @@
149
149
  "tsdown": { "optional": false }
150
150
  },
151
151
  "dependencies": {
152
- "@storm-software/build-tools": "^0.151.20",
153
- "@storm-software/config": "^1.125.5",
154
- "@storm-software/config-tools": "^1.176.6",
152
+ "@storm-software/build-tools": "^0.151.21",
153
+ "@storm-software/config": "^1.125.7",
154
+ "@storm-software/config-tools": "^1.176.8",
155
155
  "chokidar": "^4.0.3",
156
156
  "commander": "^12.1.0",
157
157
  "es-toolkit": "^1.39.7",
@@ -174,5 +174,5 @@
174
174
  },
175
175
  "publishConfig": { "access": "public" },
176
176
  "sideEffects": false,
177
- "gitHead": "0b18a51d7803eb961008b0a9e747edf296c82693"
177
+ "gitHead": "b0d8f489b75626777c4ba65ba127298f9cafa3f0"
178
178
  }