@storm-software/unbuild 0.49.41 → 0.49.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.49.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.49.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/bin/unbuild.cjs CHANGED
@@ -1558,12 +1558,28 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1558
1558
  }
1559
1559
  }
1560
1560
  const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
1561
- result = applyDefaultConfig(
1562
- await stormWorkspaceConfigSchema.parseAsync(
1563
- (0, import_defu2.default)(configEnv, configFile, defaultConfig)
1564
- )
1561
+ const configInput = (0, import_defu2.default)(
1562
+ configEnv,
1563
+ configFile,
1564
+ defaultConfig
1565
1565
  );
1566
- result.workspaceRoot ??= _workspaceRoot;
1566
+ try {
1567
+ result = applyDefaultConfig(
1568
+ await stormWorkspaceConfigSchema.parseAsync(configInput)
1569
+ );
1570
+ result.workspaceRoot ??= _workspaceRoot;
1571
+ } catch (error) {
1572
+ throw new Error(
1573
+ `Failed to parse Storm Workspace configuration${error?.message ? `: ${error.message}` : ""}
1574
+
1575
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
1576
+ configInput
1577
+ )}`,
1578
+ {
1579
+ cause: error
1580
+ }
1581
+ );
1582
+ }
1567
1583
  } else {
1568
1584
  result = _static_cache.data;
1569
1585
  }
package/bin/unbuild.js CHANGED
@@ -1536,12 +1536,28 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1536
1536
  }
1537
1537
  }
1538
1538
  const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
1539
- result = applyDefaultConfig(
1540
- await stormWorkspaceConfigSchema.parseAsync(
1541
- defu2(configEnv, configFile, defaultConfig)
1542
- )
1539
+ const configInput = defu2(
1540
+ configEnv,
1541
+ configFile,
1542
+ defaultConfig
1543
1543
  );
1544
- result.workspaceRoot ??= _workspaceRoot;
1544
+ try {
1545
+ result = applyDefaultConfig(
1546
+ await stormWorkspaceConfigSchema.parseAsync(configInput)
1547
+ );
1548
+ result.workspaceRoot ??= _workspaceRoot;
1549
+ } catch (error) {
1550
+ throw new Error(
1551
+ `Failed to parse Storm Workspace configuration${error?.message ? `: ${error.message}` : ""}
1552
+
1553
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
1554
+ configInput
1555
+ )}`,
1556
+ {
1557
+ cause: error
1558
+ }
1559
+ );
1560
+ }
1545
1561
  } else {
1546
1562
  result = _static_cache.data;
1547
1563
  }
package/dist/build.cjs CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunk2BJCJ42Vcjs = require('./chunk-2BJCJ42V.cjs');
8
+ var _chunk7PQTY6BQcjs = require('./chunk-7PQTY6BQ.cjs');
9
9
  require('./chunk-BOURL2AF.cjs');
10
10
  require('./chunk-5KAGDMCA.cjs');
11
11
  require('./chunk-7CTYKC3M.cjs');
@@ -19,4 +19,4 @@ require('./chunk-OBGZSXTJ.cjs');
19
19
 
20
20
 
21
21
 
22
- exports.build = _chunk2BJCJ42Vcjs.build; exports.cleanOutputPath = _chunk2BJCJ42Vcjs.cleanOutputPath; exports.copyBuildAssets = _chunk2BJCJ42Vcjs.copyBuildAssets; exports.executeUnbuild = _chunk2BJCJ42Vcjs.executeUnbuild; exports.generatePackageJson = _chunk2BJCJ42Vcjs.generatePackageJson; exports.resolveOptions = _chunk2BJCJ42Vcjs.resolveOptions;
22
+ exports.build = _chunk7PQTY6BQcjs.build; exports.cleanOutputPath = _chunk7PQTY6BQcjs.cleanOutputPath; exports.copyBuildAssets = _chunk7PQTY6BQcjs.copyBuildAssets; exports.executeUnbuild = _chunk7PQTY6BQcjs.executeUnbuild; exports.generatePackageJson = _chunk7PQTY6BQcjs.generatePackageJson; exports.resolveOptions = _chunk7PQTY6BQcjs.resolveOptions;
package/dist/build.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  executeUnbuild,
6
6
  generatePackageJson,
7
7
  resolveOptions
8
- } from "./chunk-FBZ2CW2S.js";
8
+ } from "./chunk-IZRYGG3N.js";
9
9
  import "./chunk-NE22YS5A.js";
10
10
  import "./chunk-HPUTMCFR.js";
11
11
  import "./chunk-SFZ4V2LD.js";
@@ -912,12 +912,28 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
912
912
  }
913
913
  }
914
914
  const defaultConfig = await _chunkFMIGI6JGcjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
915
- result = _chunkFMIGI6JGcjs.applyDefaultConfig.call(void 0,
916
- await _chunkFMIGI6JGcjs.stormWorkspaceConfigSchema.parseAsync(
917
- _defu2.default.call(void 0, configEnv, configFile, defaultConfig)
918
- )
915
+ const configInput = _defu2.default.call(void 0,
916
+ configEnv,
917
+ configFile,
918
+ defaultConfig
919
919
  );
920
- result.workspaceRoot ??= _workspaceRoot;
920
+ try {
921
+ result = _chunkFMIGI6JGcjs.applyDefaultConfig.call(void 0,
922
+ await _chunkFMIGI6JGcjs.stormWorkspaceConfigSchema.parseAsync(configInput)
923
+ );
924
+ result.workspaceRoot ??= _workspaceRoot;
925
+ } catch (error) {
926
+ throw new Error(
927
+ `Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _54 => _54.message]) ? `: ${error.message}` : ""}
928
+
929
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkFMIGI6JGcjs.formatLogMessage.call(void 0,
930
+ configInput
931
+ )}`,
932
+ {
933
+ cause: error
934
+ }
935
+ );
936
+ }
921
937
  } else {
922
938
  result = _static_cache.data;
923
939
  }
@@ -912,12 +912,28 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
912
912
  }
913
913
  }
914
914
  const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
915
- result = applyDefaultConfig(
916
- await stormWorkspaceConfigSchema.parseAsync(
917
- defu2(configEnv, configFile, defaultConfig)
918
- )
915
+ const configInput = defu2(
916
+ configEnv,
917
+ configFile,
918
+ defaultConfig
919
919
  );
920
- result.workspaceRoot ??= _workspaceRoot;
920
+ try {
921
+ result = applyDefaultConfig(
922
+ await stormWorkspaceConfigSchema.parseAsync(configInput)
923
+ );
924
+ result.workspaceRoot ??= _workspaceRoot;
925
+ } catch (error) {
926
+ throw new Error(
927
+ `Failed to parse Storm Workspace configuration${error?.message ? `: ${error.message}` : ""}
928
+
929
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
930
+ configInput
931
+ )}`,
932
+ {
933
+ cause: error
934
+ }
935
+ );
936
+ }
921
937
  } else {
922
938
  result = _static_cache.data;
923
939
  }
package/dist/index.cjs CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunk2BJCJ42Vcjs = require('./chunk-2BJCJ42V.cjs');
8
+ var _chunk7PQTY6BQcjs = require('./chunk-7PQTY6BQ.cjs');
9
9
 
10
10
 
11
11
 
@@ -30,4 +30,4 @@ require('./chunk-OBGZSXTJ.cjs');
30
30
 
31
31
 
32
32
 
33
- exports.build = _chunk2BJCJ42Vcjs.build; exports.clean = _chunkBOURL2AFcjs.clean; exports.cleanDirectories = _chunkBOURL2AFcjs.cleanDirectories; exports.cleanOutputPath = _chunk2BJCJ42Vcjs.cleanOutputPath; exports.copyBuildAssets = _chunk2BJCJ42Vcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkDBA3KANTcjs.createTsCompilerOptions; exports.executeUnbuild = _chunk2BJCJ42Vcjs.executeUnbuild; exports.generatePackageJson = _chunk2BJCJ42Vcjs.generatePackageJson; exports.loadConfig = _chunkDBA3KANTcjs.loadConfig; exports.resolveOptions = _chunk2BJCJ42Vcjs.resolveOptions;
33
+ exports.build = _chunk7PQTY6BQcjs.build; exports.clean = _chunkBOURL2AFcjs.clean; exports.cleanDirectories = _chunkBOURL2AFcjs.cleanDirectories; exports.cleanOutputPath = _chunk7PQTY6BQcjs.cleanOutputPath; exports.copyBuildAssets = _chunk7PQTY6BQcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkDBA3KANTcjs.createTsCompilerOptions; exports.executeUnbuild = _chunk7PQTY6BQcjs.executeUnbuild; exports.generatePackageJson = _chunk7PQTY6BQcjs.generatePackageJson; exports.loadConfig = _chunkDBA3KANTcjs.loadConfig; exports.resolveOptions = _chunk7PQTY6BQcjs.resolveOptions;
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  executeUnbuild,
6
6
  generatePackageJson,
7
7
  resolveOptions
8
- } from "./chunk-FBZ2CW2S.js";
8
+ } from "./chunk-IZRYGG3N.js";
9
9
  import {
10
10
  clean,
11
11
  cleanDirectories
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/unbuild",
3
- "version": "0.49.41",
3
+ "version": "0.49.43",
4
4
  "type": "module",
5
5
  "description": "A package containing `unbuild` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -147,9 +147,9 @@
147
147
  "typescript": { "optional": false }
148
148
  },
149
149
  "dependencies": {
150
- "@storm-software/build-tools": "^0.151.20",
151
- "@storm-software/config": "^1.125.5",
152
- "@storm-software/config-tools": "^1.176.6",
150
+ "@storm-software/build-tools": "^0.151.21",
151
+ "@storm-software/config": "^1.125.7",
152
+ "@storm-software/config-tools": "^1.176.8",
153
153
  "commander": "^12.1.0",
154
154
  "defu": "6.1.4",
155
155
  "esbuild": "^0.25.0",
@@ -171,5 +171,5 @@
171
171
  },
172
172
  "publishConfig": { "access": "public" },
173
173
  "sideEffects": false,
174
- "gitHead": "0b18a51d7803eb961008b0a9e747edf296c82693"
174
+ "gitHead": "b0d8f489b75626777c4ba65ba127298f9cafa3f0"
175
175
  }