@storm-software/unbuild 0.49.40 → 0.49.42

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.38-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.40-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,24 @@ 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
- )
1565
- );
1566
- result.workspaceRoot ??= _workspaceRoot;
1561
+ const configInput = (0, import_defu2.default)(configEnv, configFile, defaultConfig);
1562
+ try {
1563
+ result = applyDefaultConfig(
1564
+ await stormWorkspaceConfigSchema.parseAsync(configInput)
1565
+ );
1566
+ result.workspaceRoot ??= _workspaceRoot;
1567
+ } catch (error) {
1568
+ throw new Error(
1569
+ `Failed to parse Storm Workspace configuration${error?.message ? `: ${error.message}` : ""}
1570
+
1571
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
1572
+ configInput
1573
+ )}`,
1574
+ {
1575
+ cause: error
1576
+ }
1577
+ );
1578
+ }
1567
1579
  } else {
1568
1580
  result = _static_cache.data;
1569
1581
  }
package/bin/unbuild.js CHANGED
@@ -1536,12 +1536,24 @@ 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
- )
1543
- );
1544
- result.workspaceRoot ??= _workspaceRoot;
1539
+ const configInput = defu2(configEnv, configFile, defaultConfig);
1540
+ try {
1541
+ result = applyDefaultConfig(
1542
+ await stormWorkspaceConfigSchema.parseAsync(configInput)
1543
+ );
1544
+ result.workspaceRoot ??= _workspaceRoot;
1545
+ } catch (error) {
1546
+ throw new Error(
1547
+ `Failed to parse Storm Workspace configuration${error?.message ? `: ${error.message}` : ""}
1548
+
1549
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
1550
+ configInput
1551
+ )}`,
1552
+ {
1553
+ cause: error
1554
+ }
1555
+ );
1556
+ }
1545
1557
  } else {
1546
1558
  result = _static_cache.data;
1547
1559
  }
package/dist/build.cjs CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunk2BJCJ42Vcjs = require('./chunk-2BJCJ42V.cjs');
8
+ var _chunkARRVD3WKcjs = require('./chunk-ARRVD3WK.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 = _chunkARRVD3WKcjs.build; exports.cleanOutputPath = _chunkARRVD3WKcjs.cleanOutputPath; exports.copyBuildAssets = _chunkARRVD3WKcjs.copyBuildAssets; exports.executeUnbuild = _chunkARRVD3WKcjs.executeUnbuild; exports.generatePackageJson = _chunkARRVD3WKcjs.generatePackageJson; exports.resolveOptions = _chunkARRVD3WKcjs.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-DI35QQIR.js";
9
9
  import "./chunk-NE22YS5A.js";
10
10
  import "./chunk-HPUTMCFR.js";
11
11
  import "./chunk-SFZ4V2LD.js";
@@ -912,12 +912,24 @@ 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
- )
919
- );
920
- result.workspaceRoot ??= _workspaceRoot;
915
+ const configInput = _defu2.default.call(void 0, configEnv, configFile, defaultConfig);
916
+ try {
917
+ result = _chunkFMIGI6JGcjs.applyDefaultConfig.call(void 0,
918
+ await _chunkFMIGI6JGcjs.stormWorkspaceConfigSchema.parseAsync(configInput)
919
+ );
920
+ result.workspaceRoot ??= _workspaceRoot;
921
+ } catch (error) {
922
+ throw new Error(
923
+ `Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _54 => _54.message]) ? `: ${error.message}` : ""}
924
+
925
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkFMIGI6JGcjs.formatLogMessage.call(void 0,
926
+ configInput
927
+ )}`,
928
+ {
929
+ cause: error
930
+ }
931
+ );
932
+ }
921
933
  } else {
922
934
  result = _static_cache.data;
923
935
  }
@@ -912,12 +912,24 @@ 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
- )
919
- );
920
- result.workspaceRoot ??= _workspaceRoot;
915
+ const configInput = defu2(configEnv, configFile, defaultConfig);
916
+ try {
917
+ result = applyDefaultConfig(
918
+ await stormWorkspaceConfigSchema.parseAsync(configInput)
919
+ );
920
+ result.workspaceRoot ??= _workspaceRoot;
921
+ } catch (error) {
922
+ throw new Error(
923
+ `Failed to parse Storm Workspace configuration${error?.message ? `: ${error.message}` : ""}
924
+
925
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
926
+ configInput
927
+ )}`,
928
+ {
929
+ cause: error
930
+ }
931
+ );
932
+ }
921
933
  } else {
922
934
  result = _static_cache.data;
923
935
  }
package/dist/index.cjs CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunk2BJCJ42Vcjs = require('./chunk-2BJCJ42V.cjs');
8
+ var _chunkARRVD3WKcjs = require('./chunk-ARRVD3WK.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 = _chunkARRVD3WKcjs.build; exports.clean = _chunkBOURL2AFcjs.clean; exports.cleanDirectories = _chunkBOURL2AFcjs.cleanDirectories; exports.cleanOutputPath = _chunkARRVD3WKcjs.cleanOutputPath; exports.copyBuildAssets = _chunkARRVD3WKcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkDBA3KANTcjs.createTsCompilerOptions; exports.executeUnbuild = _chunkARRVD3WKcjs.executeUnbuild; exports.generatePackageJson = _chunkARRVD3WKcjs.generatePackageJson; exports.loadConfig = _chunkDBA3KANTcjs.loadConfig; exports.resolveOptions = _chunkARRVD3WKcjs.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-DI35QQIR.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.40",
3
+ "version": "0.49.42",
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.4",
152
- "@storm-software/config-tools": "^1.176.5",
150
+ "@storm-software/build-tools": "^0.151.21",
151
+ "@storm-software/config": "^1.125.6",
152
+ "@storm-software/config-tools": "^1.176.7",
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": "dbe7708d23dd5fd8289baed4045d6580b4067496"
174
+ "gitHead": "edec74f2b1c6174fae001ac240bb291296c84fab"
175
175
  }