@storm-software/build-tools 0.151.19 → 0.151.21

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.151.17-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.151.20-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 -->
@@ -648,12 +648,24 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
648
648
  }
649
649
  }
650
650
  const defaultConfig = await _chunkGEGGAV75js.getPackageJsonConfig.call(void 0, _workspaceRoot);
651
- result = _chunkGEGGAV75js.applyDefaultConfig.call(void 0,
652
- await _chunkGEGGAV75js.stormWorkspaceConfigSchema.parseAsync(
653
- _defu2.default.call(void 0, configEnv, configFile, defaultConfig)
654
- )
655
- );
656
- result.workspaceRoot ??= _workspaceRoot;
651
+ const configInput = _defu2.default.call(void 0, configEnv, configFile, defaultConfig);
652
+ try {
653
+ result = _chunkGEGGAV75js.applyDefaultConfig.call(void 0,
654
+ await _chunkGEGGAV75js.stormWorkspaceConfigSchema.parseAsync(configInput)
655
+ );
656
+ result.workspaceRoot ??= _workspaceRoot;
657
+ } catch (error) {
658
+ throw new Error(
659
+ `Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _31 => _31.message]) ? `: ${error.message}` : ""}
660
+
661
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkGEGGAV75js.formatLogMessage.call(void 0,
662
+ configInput
663
+ )}`,
664
+ {
665
+ cause: error
666
+ }
667
+ );
668
+ }
657
669
  } else {
658
670
  result = _static_cache.data;
659
671
  }
@@ -648,12 +648,24 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
648
648
  }
649
649
  }
650
650
  const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
651
- result = applyDefaultConfig(
652
- await stormWorkspaceConfigSchema.parseAsync(
653
- defu2(configEnv, configFile, defaultConfig)
654
- )
655
- );
656
- result.workspaceRoot ??= _workspaceRoot;
651
+ const configInput = defu2(configEnv, configFile, defaultConfig);
652
+ try {
653
+ result = applyDefaultConfig(
654
+ await stormWorkspaceConfigSchema.parseAsync(configInput)
655
+ );
656
+ result.workspaceRoot ??= _workspaceRoot;
657
+ } catch (error) {
658
+ throw new Error(
659
+ `Failed to parse Storm Workspace configuration${error?.message ? `: ${error.message}` : ""}
660
+
661
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
662
+ configInput
663
+ )}`,
664
+ {
665
+ cause: error
666
+ }
667
+ );
668
+ }
657
669
  } else {
658
670
  result = _static_cache.data;
659
671
  }
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-65HIHTHN.js');
2
2
 
3
3
 
4
- var _chunkMLYARNMMjs = require('./chunk-MLYARNMM.js');
4
+ var _chunkCNDWLTG3js = require('./chunk-CNDWLTG3.js');
5
5
 
6
6
 
7
7
 
@@ -79,4 +79,4 @@ var _chunkN7HP2YYEjs = require('./chunk-N7HP2YYE.js');
79
79
 
80
80
 
81
81
 
82
- exports.DEFAULT_COMPILED_BANNER = _chunkMYIXHZMSjs.DEFAULT_COMPILED_BANNER; exports.DEFAULT_ENVIRONMENT = _chunkMYIXHZMSjs.DEFAULT_ENVIRONMENT; exports.DEFAULT_ORGANIZATION = _chunkMYIXHZMSjs.DEFAULT_ORGANIZATION; exports.DEFAULT_PLATFORM = _chunkMYIXHZMSjs.DEFAULT_PLATFORM; exports.DEFAULT_TARGET = _chunkMYIXHZMSjs.DEFAULT_TARGET; exports.addPackageDependencies = _chunkUTXEO62Gjs.addPackageDependencies; exports.addPackageJsonExport = _chunkUTXEO62Gjs.addPackageJsonExport; exports.addPackageJsonExports = _chunkUTXEO62Gjs.addPackageJsonExports; exports.addWorkspacePackageJsonFields = _chunkUTXEO62Gjs.addWorkspacePackageJsonFields; exports.analyze = _chunkOTX5ITS4js.analyze; exports.copyAssets = _chunkRZ3QK5QMjs.copyAssets; exports.createTaskId = _chunkP3MQZA3Djs.createTaskId; exports.getAllWorkspaceTaskGraphs = _chunkP3MQZA3Djs.getAllWorkspaceTaskGraphs; exports.getEntryPoints = _chunkOQ7L2KD3js.getEntryPoints; exports.getEnv = _chunkWLW3DA6Xjs.getEnv; exports.getExternalDependencies = _chunkWNMPQTPHjs.getExternalDependencies; exports.getExtraDependencies = _chunkWNMPQTPHjs.getExtraDependencies; exports.getFileBanner = _chunkUHJ5ACWHjs.getFileBanner; exports.getInternalDependencies = _chunkWNMPQTPHjs.getInternalDependencies; exports.getOutExtension = _chunkA75DEKU5js.getOutExtension; exports.readNxConfig = _chunkMLYARNMMjs.readNxConfig; exports.swc = _chunkHQD5ZBIUjs.swc; exports.tsResolvePlugin = _chunkGJBPVWQVjs.tsResolvePlugin; exports.typeDefinitions = _chunkN7HP2YYEjs.typeDefinitions;
82
+ exports.DEFAULT_COMPILED_BANNER = _chunkMYIXHZMSjs.DEFAULT_COMPILED_BANNER; exports.DEFAULT_ENVIRONMENT = _chunkMYIXHZMSjs.DEFAULT_ENVIRONMENT; exports.DEFAULT_ORGANIZATION = _chunkMYIXHZMSjs.DEFAULT_ORGANIZATION; exports.DEFAULT_PLATFORM = _chunkMYIXHZMSjs.DEFAULT_PLATFORM; exports.DEFAULT_TARGET = _chunkMYIXHZMSjs.DEFAULT_TARGET; exports.addPackageDependencies = _chunkUTXEO62Gjs.addPackageDependencies; exports.addPackageJsonExport = _chunkUTXEO62Gjs.addPackageJsonExport; exports.addPackageJsonExports = _chunkUTXEO62Gjs.addPackageJsonExports; exports.addWorkspacePackageJsonFields = _chunkUTXEO62Gjs.addWorkspacePackageJsonFields; exports.analyze = _chunkOTX5ITS4js.analyze; exports.copyAssets = _chunkRZ3QK5QMjs.copyAssets; exports.createTaskId = _chunkP3MQZA3Djs.createTaskId; exports.getAllWorkspaceTaskGraphs = _chunkP3MQZA3Djs.getAllWorkspaceTaskGraphs; exports.getEntryPoints = _chunkOQ7L2KD3js.getEntryPoints; exports.getEnv = _chunkWLW3DA6Xjs.getEnv; exports.getExternalDependencies = _chunkWNMPQTPHjs.getExternalDependencies; exports.getExtraDependencies = _chunkWNMPQTPHjs.getExtraDependencies; exports.getFileBanner = _chunkUHJ5ACWHjs.getFileBanner; exports.getInternalDependencies = _chunkWNMPQTPHjs.getInternalDependencies; exports.getOutExtension = _chunkA75DEKU5js.getOutExtension; exports.readNxConfig = _chunkCNDWLTG3js.readNxConfig; exports.swc = _chunkHQD5ZBIUjs.swc; exports.tsResolvePlugin = _chunkGJBPVWQVjs.tsResolvePlugin; exports.typeDefinitions = _chunkN7HP2YYEjs.typeDefinitions;
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./chunk-KVP3YMX6.mjs";
2
2
  import {
3
3
  readNxConfig
4
- } from "./chunk-3Y2UCCVY.mjs";
4
+ } from "./chunk-RDJXQ27R.mjs";
5
5
  import {
6
6
  createTaskId,
7
7
  getAllWorkspaceTaskGraphs
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-65HIHTHN.js');
2
2
 
3
3
 
4
- var _chunkMLYARNMMjs = require('../chunk-MLYARNMM.js');
4
+ var _chunkCNDWLTG3js = require('../chunk-CNDWLTG3.js');
5
5
 
6
6
 
7
7
 
@@ -50,4 +50,4 @@ require('../chunk-GEGGAV75.js');
50
50
 
51
51
 
52
52
 
53
- exports.addPackageDependencies = _chunkUTXEO62Gjs.addPackageDependencies; exports.addPackageJsonExport = _chunkUTXEO62Gjs.addPackageJsonExport; exports.addPackageJsonExports = _chunkUTXEO62Gjs.addPackageJsonExports; exports.addWorkspacePackageJsonFields = _chunkUTXEO62Gjs.addWorkspacePackageJsonFields; exports.copyAssets = _chunkRZ3QK5QMjs.copyAssets; exports.createTaskId = _chunkP3MQZA3Djs.createTaskId; exports.getAllWorkspaceTaskGraphs = _chunkP3MQZA3Djs.getAllWorkspaceTaskGraphs; exports.getEntryPoints = _chunkOQ7L2KD3js.getEntryPoints; exports.getEnv = _chunkWLW3DA6Xjs.getEnv; exports.getExternalDependencies = _chunkWNMPQTPHjs.getExternalDependencies; exports.getExtraDependencies = _chunkWNMPQTPHjs.getExtraDependencies; exports.getFileBanner = _chunkUHJ5ACWHjs.getFileBanner; exports.getInternalDependencies = _chunkWNMPQTPHjs.getInternalDependencies; exports.getOutExtension = _chunkA75DEKU5js.getOutExtension; exports.readNxConfig = _chunkMLYARNMMjs.readNxConfig;
53
+ exports.addPackageDependencies = _chunkUTXEO62Gjs.addPackageDependencies; exports.addPackageJsonExport = _chunkUTXEO62Gjs.addPackageJsonExport; exports.addPackageJsonExports = _chunkUTXEO62Gjs.addPackageJsonExports; exports.addWorkspacePackageJsonFields = _chunkUTXEO62Gjs.addWorkspacePackageJsonFields; exports.copyAssets = _chunkRZ3QK5QMjs.copyAssets; exports.createTaskId = _chunkP3MQZA3Djs.createTaskId; exports.getAllWorkspaceTaskGraphs = _chunkP3MQZA3Djs.getAllWorkspaceTaskGraphs; exports.getEntryPoints = _chunkOQ7L2KD3js.getEntryPoints; exports.getEnv = _chunkWLW3DA6Xjs.getEnv; exports.getExternalDependencies = _chunkWNMPQTPHjs.getExternalDependencies; exports.getExtraDependencies = _chunkWNMPQTPHjs.getExtraDependencies; exports.getFileBanner = _chunkUHJ5ACWHjs.getFileBanner; exports.getInternalDependencies = _chunkWNMPQTPHjs.getInternalDependencies; exports.getOutExtension = _chunkA75DEKU5js.getOutExtension; exports.readNxConfig = _chunkCNDWLTG3js.readNxConfig;
@@ -1,7 +1,7 @@
1
1
  import "../chunk-KVP3YMX6.mjs";
2
2
  import {
3
3
  readNxConfig
4
- } from "../chunk-3Y2UCCVY.mjs";
4
+ } from "../chunk-RDJXQ27R.mjs";
5
5
  import {
6
6
  createTaskId,
7
7
  getAllWorkspaceTaskGraphs
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkMLYARNMMjs = require('../chunk-MLYARNMM.js');
3
+ var _chunkCNDWLTG3js = require('../chunk-CNDWLTG3.js');
4
4
  require('../chunk-GEGGAV75.js');
5
5
 
6
6
 
7
- exports.readNxConfig = _chunkMLYARNMMjs.readNxConfig;
7
+ exports.readNxConfig = _chunkCNDWLTG3js.readNxConfig;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readNxConfig
3
- } from "../chunk-3Y2UCCVY.mjs";
3
+ } from "../chunk-RDJXQ27R.mjs";
4
4
  import "../chunk-MGV4IMYX.mjs";
5
5
  export {
6
6
  readNxConfig
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/build-tools",
3
- "version": "0.151.19",
3
+ "version": "0.151.21",
4
4
  "description": "A comprehensive set of tools for building and managing projects within a Storm workspace. Includes builders such as rollup, rolldown, tsup, and unbuild, along with various utilities.",
5
5
  "repository": {
6
6
  "type": "github",
@@ -168,5 +168,5 @@
168
168
  "typescript": "^5.8.3"
169
169
  },
170
170
  "publishConfig": { "access": "public" },
171
- "gitHead": "5446303631cb4942a41e44d7484444069b8513a9"
171
+ "gitHead": "edec74f2b1c6174fae001ac240bb291296c84fab"
172
172
  }