@storm-software/unbuild 0.37.3 → 0.37.5

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.37.2-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.37.4-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
@@ -143,11 +143,11 @@ var StormConfigSchema = import_zod.default.object({
143
143
  preid: import_zod.default.string().optional().describe("A tag specifying the version pre-release identifier"),
144
144
  owner: import_zod.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
145
145
  bot: WorkspaceBotConfigSchema,
146
- env: import_zod.default.enum([
146
+ mode: import_zod.default.enum([
147
147
  "development",
148
148
  "staging",
149
149
  "production"
150
- ]).default("production").describe("The current runtime environment name for the package"),
150
+ ]).default("production").describe("The current runtime environment mode for the package"),
151
151
  workspaceRoot: import_zod.default.string().trim().default("").describe("The root directory of the workspace"),
152
152
  externalPackagePatterns: import_zod.default.array(import_zod.default.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
153
153
  skipCache: import_zod.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
@@ -868,7 +868,7 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
868
868
  build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
869
869
  },
870
870
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
871
- env: (process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
871
+ mode: (process.env[`${prefix}MODE`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
872
872
  // ci:
873
873
  // process.env[`${prefix}CI`] !== undefined
874
874
  // ? Boolean(
@@ -1077,10 +1077,10 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
1077
1077
  process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
1078
1078
  }
1079
1079
  }
1080
- if (config.env) {
1081
- process.env[`${prefix}ENV`] = config.env;
1082
- process.env.NODE_ENV = config.env;
1083
- process.env.ENVIRONMENT = config.env;
1080
+ if (config.mode) {
1081
+ process.env[`${prefix}MODE`] = config.mode;
1082
+ process.env.NODE_ENV = config.mode;
1083
+ process.env.ENVIRONMENT = config.mode;
1084
1084
  }
1085
1085
  if (config.colors?.base?.light || config.colors?.base?.dark) {
1086
1086
  for (const key of Object.keys(config.colors)) {
package/bin/unbuild.js CHANGED
@@ -122,11 +122,11 @@ var StormConfigSchema = z.object({
122
122
  preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
123
123
  owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
124
124
  bot: WorkspaceBotConfigSchema,
125
- env: z.enum([
125
+ mode: z.enum([
126
126
  "development",
127
127
  "staging",
128
128
  "production"
129
- ]).default("production").describe("The current runtime environment name for the package"),
129
+ ]).default("production").describe("The current runtime environment mode for the package"),
130
130
  workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
131
131
  externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
132
132
  skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
@@ -847,7 +847,7 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
847
847
  build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
848
848
  },
849
849
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
850
- env: (process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
850
+ mode: (process.env[`${prefix}MODE`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
851
851
  // ci:
852
852
  // process.env[`${prefix}CI`] !== undefined
853
853
  // ? Boolean(
@@ -1056,10 +1056,10 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
1056
1056
  process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
1057
1057
  }
1058
1058
  }
1059
- if (config.env) {
1060
- process.env[`${prefix}ENV`] = config.env;
1061
- process.env.NODE_ENV = config.env;
1062
- process.env.ENVIRONMENT = config.env;
1059
+ if (config.mode) {
1060
+ process.env[`${prefix}MODE`] = config.mode;
1061
+ process.env.NODE_ENV = config.mode;
1062
+ process.env.ENVIRONMENT = config.mode;
1063
1063
  }
1064
1064
  if (config.colors?.base?.light || config.colors?.base?.dark) {
1065
1065
  for (const key of Object.keys(config.colors)) {
package/dist/build.cjs CHANGED
@@ -5,13 +5,13 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkZJC75DIRcjs = require('./chunk-ZJC75DIR.cjs');
8
+ var _chunkRE2E37VBcjs = require('./chunk-RE2E37VB.cjs');
9
9
  require('./chunk-OD3ULBE3.cjs');
10
- require('./chunk-HBY6UKYT.cjs');
11
- require('./chunk-D23IAMZQ.cjs');
12
- require('./chunk-EO7QVJ75.cjs');
13
- require('./chunk-LLLSWUM2.cjs');
14
- require('./chunk-NJPYGNED.cjs');
10
+ require('./chunk-5SJH5QVD.cjs');
11
+ require('./chunk-4W6R6RL6.cjs');
12
+ require('./chunk-UPGEZBOM.cjs');
13
+ require('./chunk-NSE3JRLE.cjs');
14
+ require('./chunk-SAUSZNX5.cjs');
15
15
  require('./chunk-BGYQAVKQ.cjs');
16
16
 
17
17
 
@@ -20,4 +20,4 @@ require('./chunk-BGYQAVKQ.cjs');
20
20
 
21
21
 
22
22
 
23
- exports.build = _chunkZJC75DIRcjs.build; exports.cleanOutputPath = _chunkZJC75DIRcjs.cleanOutputPath; exports.copyBuildAssets = _chunkZJC75DIRcjs.copyBuildAssets; exports.executeUnbuild = _chunkZJC75DIRcjs.executeUnbuild; exports.generatePackageJson = _chunkZJC75DIRcjs.generatePackageJson; exports.resolveOptions = _chunkZJC75DIRcjs.resolveOptions;
23
+ exports.build = _chunkRE2E37VBcjs.build; exports.cleanOutputPath = _chunkRE2E37VBcjs.cleanOutputPath; exports.copyBuildAssets = _chunkRE2E37VBcjs.copyBuildAssets; exports.executeUnbuild = _chunkRE2E37VBcjs.executeUnbuild; exports.generatePackageJson = _chunkRE2E37VBcjs.generatePackageJson; exports.resolveOptions = _chunkRE2E37VBcjs.resolveOptions;
package/dist/build.js CHANGED
@@ -5,13 +5,13 @@ import {
5
5
  executeUnbuild,
6
6
  generatePackageJson,
7
7
  resolveOptions
8
- } from "./chunk-4XGKUSRC.js";
8
+ } from "./chunk-TLAKGUAR.js";
9
9
  import "./chunk-RBYYB7X2.js";
10
- import "./chunk-IWTMOHE3.js";
11
- import "./chunk-PFVZ2J4O.js";
12
- import "./chunk-HGAVAOA2.js";
13
- import "./chunk-DBTZKY5A.js";
14
- import "./chunk-7VJEC546.js";
10
+ import "./chunk-46QE7TKB.js";
11
+ import "./chunk-L2E6Z4J5.js";
12
+ import "./chunk-T43ZHS2E.js";
13
+ import "./chunk-TNU6RLO7.js";
14
+ import "./chunk-K6HLG2MF.js";
15
15
  import "./chunk-3GQAWCBQ.js";
16
16
  export {
17
17
  build,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getStopwatch,
3
3
  writeDebug
4
- } from "./chunk-7VJEC546.js";
4
+ } from "./chunk-K6HLG2MF.js";
5
5
  import {
6
6
  __name
7
7
  } from "./chunk-3GQAWCBQ.js";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkNJPYGNEDcjs = require('./chunk-NJPYGNED.cjs');
3
+ var _chunkSAUSZNX5cjs = require('./chunk-SAUSZNX5.cjs');
4
4
 
5
5
 
6
6
  var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
@@ -25,7 +25,7 @@ var analyzePlugin = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (optio
25
25
  renderChunk(source, chunk) {
26
26
  const sourceBytes = formatBytes(source.length);
27
27
  const fileName = chunk.fileName;
28
- _chunkNJPYGNEDcjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, options.config);
28
+ _chunkSAUSZNX5cjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, options.config);
29
29
  }
30
30
  };
31
31
  }, "analyzePlugin");
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkNJPYGNEDcjs = require('./chunk-NJPYGNED.cjs');
4
+ var _chunkSAUSZNX5cjs = require('./chunk-SAUSZNX5.cjs');
5
5
 
6
6
 
7
7
  var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
@@ -9,8 +9,8 @@ var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
9
9
  // src/clean.ts
10
10
  var _promises = require('fs/promises');
11
11
  async function clean(name = "Unbuild", directory, config) {
12
- _chunkNJPYGNEDcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
13
- const stopwatch = _chunkNJPYGNEDcjs.getStopwatch.call(void 0, `${name} output clean`);
12
+ _chunkSAUSZNX5cjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
13
+ const stopwatch = _chunkSAUSZNX5cjs.getStopwatch.call(void 0, `${name} output clean`);
14
14
  await cleanDirectories(name, directory, config);
15
15
  stopwatch();
16
16
  }
@@ -326,11 +326,11 @@ var StormConfigSchema = z.object({
326
326
  preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
327
327
  owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
328
328
  bot: WorkspaceBotConfigSchema,
329
- env: z.enum([
329
+ mode: z.enum([
330
330
  "development",
331
331
  "staging",
332
332
  "production"
333
- ]).default("production").describe("The current runtime environment name for the package"),
333
+ ]).default("production").describe("The current runtime environment mode for the package"),
334
334
  workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
335
335
  externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
336
336
  skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeInfo
3
- } from "./chunk-7VJEC546.js";
3
+ } from "./chunk-K6HLG2MF.js";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-3GQAWCBQ.js";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkNJPYGNEDcjs = require('./chunk-NJPYGNED.cjs');
3
+ var _chunkSAUSZNX5cjs = require('./chunk-SAUSZNX5.cjs');
4
4
 
5
5
 
6
6
  var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
@@ -32,7 +32,7 @@ async function createTsCompilerOptions(config, tsConfigPath, projectRoot, depend
32
32
  declaration: true,
33
33
  paths: _buildablelibsutils.computeCompilerOptionsPaths.call(void 0, tsConfig, _nullishCoalesce(dependencies, () => ( [])))
34
34
  };
35
- _chunkNJPYGNEDcjs.writeTrace.call(void 0, compilerOptions, config);
35
+ _chunkSAUSZNX5cjs.writeTrace.call(void 0, compilerOptions, config);
36
36
  return compilerOptions;
37
37
  }
38
38
  _chunkBGYQAVKQcjs.__name.call(void 0, createTsCompilerOptions, "createTsCompilerOptions");
@@ -3,17 +3,17 @@
3
3
  var _chunkOD3ULBE3cjs = require('./chunk-OD3ULBE3.cjs');
4
4
 
5
5
 
6
- var _chunkHBY6UKYTcjs = require('./chunk-HBY6UKYT.cjs');
6
+ var _chunk5SJH5QVDcjs = require('./chunk-5SJH5QVD.cjs');
7
7
 
8
8
 
9
- var _chunkD23IAMZQcjs = require('./chunk-D23IAMZQ.cjs');
9
+ var _chunk4W6R6RL6cjs = require('./chunk-4W6R6RL6.cjs');
10
10
 
11
11
 
12
- var _chunkEO7QVJ75cjs = require('./chunk-EO7QVJ75.cjs');
12
+ var _chunkUPGEZBOMcjs = require('./chunk-UPGEZBOM.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkLLLSWUM2cjs = require('./chunk-LLLSWUM2.cjs');
16
+ var _chunkNSE3JRLEcjs = require('./chunk-NSE3JRLE.cjs');
17
17
 
18
18
 
19
19
 
@@ -36,7 +36,7 @@ var _chunkLLLSWUM2cjs = require('./chunk-LLLSWUM2.cjs');
36
36
 
37
37
 
38
38
 
39
- var _chunkNJPYGNEDcjs = require('./chunk-NJPYGNED.cjs');
39
+ var _chunkSAUSZNX5cjs = require('./chunk-SAUSZNX5.cjs');
40
40
 
41
41
 
42
42
  var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
@@ -89,8 +89,8 @@ var copyAssets = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (co
89
89
  output: "src/"
90
90
  });
91
91
  }
92
- _chunkNJPYGNEDcjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
93
- ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkNJPYGNEDcjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
92
+ _chunkSAUSZNX5cjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
93
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkSAUSZNX5cjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
94
94
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
95
95
  projectDir: projectRoot,
96
96
  rootDir: config.workspaceRoot,
@@ -99,12 +99,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
99
99
  });
100
100
  await assetHandler.processAllAssetsOnce();
101
101
  if (includeSrc === true) {
102
- _chunkNJPYGNEDcjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkNJPYGNEDcjs.joinPaths.call(void 0, outputPath, "src")}`, config);
102
+ _chunkSAUSZNX5cjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkSAUSZNX5cjs.joinPaths.call(void 0, outputPath, "src")}`, config);
103
103
  const files = await _glob.glob.call(void 0, [
104
- _chunkNJPYGNEDcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
105
- _chunkNJPYGNEDcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
106
- _chunkNJPYGNEDcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
107
- _chunkNJPYGNEDcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
104
+ _chunkSAUSZNX5cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
105
+ _chunkSAUSZNX5cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
106
+ _chunkSAUSZNX5cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
107
+ _chunkSAUSZNX5cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
108
108
  ]);
109
109
  await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
110
110
 
@@ -127,7 +127,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
127
127
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot)) {
128
128
  const projectNode = project.node;
129
129
  if (projectNode.data.root) {
130
- const projectPackageJsonPath = _chunkNJPYGNEDcjs.joinPaths.call(void 0, workspaceRoot, projectNode.data.root, "package.json");
130
+ const projectPackageJsonPath = _chunkSAUSZNX5cjs.joinPaths.call(void 0, workspaceRoot, projectNode.data.root, "package.json");
131
131
  if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
132
132
  const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
133
133
  const projectPackageJson = JSON.parse(projectPackageJsonContent);
@@ -138,8 +138,8 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
138
138
  }
139
139
  }
140
140
  if (localPackages.length > 0) {
141
- _chunkNJPYGNEDcjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
142
- const projectJsonFile = await _promises.readFile.call(void 0, _chunkNJPYGNEDcjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
141
+ _chunkSAUSZNX5cjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
142
+ const projectJsonFile = await _promises.readFile.call(void 0, _chunkSAUSZNX5cjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
143
143
  const projectJson = JSON.parse(projectJsonFile);
144
144
  const projectName2 = projectJson.name;
145
145
  const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
@@ -148,7 +148,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
148
148
  }
149
149
  const implicitDependencies = _optionalChain([projectConfigurations, 'access', _3 => _3.projects, 'optionalAccess', _4 => _4[projectName2], 'access', _5 => _5.implicitDependencies, 'optionalAccess', _6 => _6.reduce, 'call', _7 => _7((ret, dep) => {
150
150
  if (_optionalChain([projectConfigurations, 'access', _8 => _8.projects, 'optionalAccess', _9 => _9[dep]])) {
151
- const depPackageJsonPath = _chunkNJPYGNEDcjs.joinPaths.call(void 0, workspaceRoot, projectConfigurations.projects[dep].root, "package.json");
151
+ const depPackageJsonPath = _chunkSAUSZNX5cjs.joinPaths.call(void 0, workspaceRoot, projectConfigurations.projects[dep].root, "package.json");
152
152
  if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
153
153
  const depPackageJsonContent = _fs.readFileSync.call(void 0, depPackageJsonPath, "utf8");
154
154
  const depPackageJson = JSON.parse(depPackageJsonContent);
@@ -172,13 +172,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
172
172
  return ret;
173
173
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
174
174
  } else {
175
- _chunkNJPYGNEDcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
175
+ _chunkSAUSZNX5cjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
176
176
  }
177
177
  return packageJson;
178
178
  }, "addPackageDependencies");
179
179
  var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
180
- const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkNJPYGNEDcjs.findWorkspaceRoot.call(void 0, );
181
- const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkNJPYGNEDcjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
180
+ const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkSAUSZNX5cjs.findWorkspaceRoot.call(void 0, );
181
+ const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkSAUSZNX5cjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
182
182
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
183
183
  packageJson.type ??= "module";
184
184
  packageJson.sideEffects ??= false;
@@ -187,7 +187,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.cal
187
187
  if (distSrc.startsWith("/")) {
188
188
  distSrc = distSrc.substring(1);
189
189
  }
190
- packageJson.source ??= `${_chunkNJPYGNEDcjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
190
+ packageJson.source ??= `${_chunkSAUSZNX5cjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
191
191
  }
192
192
  packageJson.files ??= [
193
193
  "dist/**/*"
@@ -218,7 +218,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.cal
218
218
  ];
219
219
  }
220
220
  packageJson.repository ??= workspacePackageJson.repository;
221
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkNJPYGNEDcjs.joinPaths.call(void 0, "packages", projectName);
221
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkSAUSZNX5cjs.joinPaths.call(void 0, "packages", projectName);
222
222
  return packageJson;
223
223
  }, "addWorkspacePackageJsonFields");
224
224
 
@@ -226,7 +226,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.cal
226
226
  var _c12 = require('c12');
227
227
  var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
228
228
  var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
229
- const workspacePath = filePath || _chunkNJPYGNEDcjs.findWorkspaceRoot.call(void 0, filePath);
229
+ const workspacePath = filePath || _chunkSAUSZNX5cjs.findWorkspaceRoot.call(void 0, filePath);
230
230
  const configs = await Promise.all([
231
231
  _c12.loadConfig.call(void 0, {
232
232
  cwd: workspacePath,
@@ -235,7 +235,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
235
235
  envName: _optionalChain([fileName, 'optionalAccess', _14 => _14.toUpperCase, 'call', _15 => _15()]),
236
236
  jitiOptions: {
237
237
  debug: false,
238
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkNJPYGNEDcjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
238
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkSAUSZNX5cjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
239
239
  },
240
240
  ...options
241
241
  }),
@@ -246,7 +246,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
246
246
  envName: _optionalChain([fileName, 'optionalAccess', _16 => _16.toUpperCase, 'call', _17 => _17()]),
247
247
  jitiOptions: {
248
248
  debug: false,
249
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkNJPYGNEDcjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
249
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkSAUSZNX5cjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
250
250
  },
251
251
  configFile: fileName,
252
252
  ...options
@@ -255,12 +255,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
255
255
  return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
256
256
  }, "getConfigFileByName");
257
257
  var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
258
- const workspacePath = filePath ? filePath : _chunkNJPYGNEDcjs.findWorkspaceRoot.call(void 0, filePath);
258
+ const workspacePath = filePath ? filePath : _chunkSAUSZNX5cjs.findWorkspaceRoot.call(void 0, filePath);
259
259
  const result = await getConfigFileByName("storm-workspace", workspacePath);
260
260
  let config = result.config;
261
261
  const configFile = result.configFile;
262
262
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
263
- _chunkNJPYGNEDcjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
263
+ _chunkSAUSZNX5cjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
264
264
  logLevel: "all"
265
265
  });
266
266
  }
@@ -269,7 +269,7 @@ var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
269
269
  for (const result2 of results) {
270
270
  if (_optionalChain([result2, 'optionalAccess', _18 => _18.config]) && _optionalChain([result2, 'optionalAccess', _19 => _19.configFile]) && Object.keys(result2.config).length > 0) {
271
271
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
272
- _chunkNJPYGNEDcjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
272
+ _chunkSAUSZNX5cjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
273
273
  logLevel: "all"
274
274
  });
275
275
  }
@@ -317,18 +317,18 @@ var getConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, () => {
317
317
  licensing: process.env[`${prefix}LICENSING`] || void 0,
318
318
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
319
319
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
320
- configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkNJPYGNEDcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
321
- workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkNJPYGNEDcjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
320
+ configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkSAUSZNX5cjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
321
+ workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkSAUSZNX5cjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
322
322
  directories: {
323
- cache: process.env[`${prefix}CACHE_DIR`] ? _chunkNJPYGNEDcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
324
- data: process.env[`${prefix}DATA_DIR`] ? _chunkNJPYGNEDcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
325
- config: process.env[`${prefix}CONFIG_DIR`] ? _chunkNJPYGNEDcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
326
- temp: process.env[`${prefix}TEMP_DIR`] ? _chunkNJPYGNEDcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
327
- log: process.env[`${prefix}LOG_DIR`] ? _chunkNJPYGNEDcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
328
- build: process.env[`${prefix}BUILD_DIR`] ? _chunkNJPYGNEDcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
323
+ cache: process.env[`${prefix}CACHE_DIR`] ? _chunkSAUSZNX5cjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
324
+ data: process.env[`${prefix}DATA_DIR`] ? _chunkSAUSZNX5cjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
325
+ config: process.env[`${prefix}CONFIG_DIR`] ? _chunkSAUSZNX5cjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
326
+ temp: process.env[`${prefix}TEMP_DIR`] ? _chunkSAUSZNX5cjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
327
+ log: process.env[`${prefix}LOG_DIR`] ? _chunkSAUSZNX5cjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
328
+ build: process.env[`${prefix}BUILD_DIR`] ? _chunkSAUSZNX5cjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
329
329
  },
330
330
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
331
- env: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}ENV`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
331
+ mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
332
332
  // ci:
333
333
  // process.env[`${prefix}CI`] !== undefined
334
334
  // ? Boolean(
@@ -348,24 +348,24 @@ var getConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, () => {
348
348
  cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
349
349
  container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
350
350
  },
351
- logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? _chunkNJPYGNEDcjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
351
+ logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? _chunkSAUSZNX5cjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
352
352
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
353
353
  };
354
- const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkNJPYGNEDcjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
354
+ const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkSAUSZNX5cjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
355
355
  config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
356
356
  ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
357
357
  return ret;
358
358
  }, {}) : getThemeColorConfigEnv(prefix);
359
- if (config.docs === _chunkNJPYGNEDcjs.STORM_DEFAULT_DOCS) {
360
- if (config.homepage === _chunkNJPYGNEDcjs.STORM_DEFAULT_HOMEPAGE) {
361
- config.docs = `${_chunkNJPYGNEDcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
359
+ if (config.docs === _chunkSAUSZNX5cjs.STORM_DEFAULT_DOCS) {
360
+ if (config.homepage === _chunkSAUSZNX5cjs.STORM_DEFAULT_HOMEPAGE) {
361
+ config.docs = `${_chunkSAUSZNX5cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
362
362
  } else {
363
363
  config.docs = `${config.homepage}/docs`;
364
364
  }
365
365
  }
366
- if (config.licensing === _chunkNJPYGNEDcjs.STORM_DEFAULT_LICENSING) {
367
- if (config.homepage === _chunkNJPYGNEDcjs.STORM_DEFAULT_HOMEPAGE) {
368
- config.licensing = `${_chunkNJPYGNEDcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
366
+ if (config.licensing === _chunkSAUSZNX5cjs.STORM_DEFAULT_LICENSING) {
367
+ if (config.homepage === _chunkSAUSZNX5cjs.STORM_DEFAULT_HOMEPAGE) {
368
+ config.licensing = `${_chunkSAUSZNX5cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
369
369
  } else {
370
370
  config.licensing = `${config.homepage}/docs`;
371
371
  }
@@ -503,31 +503,31 @@ var setConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (config
503
503
  process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
504
504
  }
505
505
  if (config.configFile) {
506
- process.env[`${prefix}CONFIG_FILE`] = _chunkNJPYGNEDcjs.correctPaths.call(void 0, config.configFile);
506
+ process.env[`${prefix}CONFIG_FILE`] = _chunkSAUSZNX5cjs.correctPaths.call(void 0, config.configFile);
507
507
  }
508
508
  if (config.workspaceRoot) {
509
- process.env[`${prefix}WORKSPACE_ROOT`] = _chunkNJPYGNEDcjs.correctPaths.call(void 0, config.workspaceRoot);
510
- process.env.NX_WORKSPACE_ROOT = _chunkNJPYGNEDcjs.correctPaths.call(void 0, config.workspaceRoot);
511
- process.env.NX_WORKSPACE_ROOT_PATH = _chunkNJPYGNEDcjs.correctPaths.call(void 0, config.workspaceRoot);
509
+ process.env[`${prefix}WORKSPACE_ROOT`] = _chunkSAUSZNX5cjs.correctPaths.call(void 0, config.workspaceRoot);
510
+ process.env.NX_WORKSPACE_ROOT = _chunkSAUSZNX5cjs.correctPaths.call(void 0, config.workspaceRoot);
511
+ process.env.NX_WORKSPACE_ROOT_PATH = _chunkSAUSZNX5cjs.correctPaths.call(void 0, config.workspaceRoot);
512
512
  }
513
513
  if (config.directories) {
514
514
  if (!config.skipCache && config.directories.cache) {
515
- process.env[`${prefix}CACHE_DIR`] = _chunkNJPYGNEDcjs.correctPaths.call(void 0, config.directories.cache);
515
+ process.env[`${prefix}CACHE_DIR`] = _chunkSAUSZNX5cjs.correctPaths.call(void 0, config.directories.cache);
516
516
  }
517
517
  if (config.directories.data) {
518
- process.env[`${prefix}DATA_DIR`] = _chunkNJPYGNEDcjs.correctPaths.call(void 0, config.directories.data);
518
+ process.env[`${prefix}DATA_DIR`] = _chunkSAUSZNX5cjs.correctPaths.call(void 0, config.directories.data);
519
519
  }
520
520
  if (config.directories.config) {
521
- process.env[`${prefix}CONFIG_DIR`] = _chunkNJPYGNEDcjs.correctPaths.call(void 0, config.directories.config);
521
+ process.env[`${prefix}CONFIG_DIR`] = _chunkSAUSZNX5cjs.correctPaths.call(void 0, config.directories.config);
522
522
  }
523
523
  if (config.directories.temp) {
524
- process.env[`${prefix}TEMP_DIR`] = _chunkNJPYGNEDcjs.correctPaths.call(void 0, config.directories.temp);
524
+ process.env[`${prefix}TEMP_DIR`] = _chunkSAUSZNX5cjs.correctPaths.call(void 0, config.directories.temp);
525
525
  }
526
526
  if (config.directories.log) {
527
- process.env[`${prefix}LOG_DIR`] = _chunkNJPYGNEDcjs.correctPaths.call(void 0, config.directories.log);
527
+ process.env[`${prefix}LOG_DIR`] = _chunkSAUSZNX5cjs.correctPaths.call(void 0, config.directories.log);
528
528
  }
529
529
  if (config.directories.build) {
530
- process.env[`${prefix}BUILD_DIR`] = _chunkNJPYGNEDcjs.correctPaths.call(void 0, config.directories.build);
530
+ process.env[`${prefix}BUILD_DIR`] = _chunkSAUSZNX5cjs.correctPaths.call(void 0, config.directories.build);
531
531
  }
532
532
  }
533
533
  if (config.skipCache !== void 0) {
@@ -537,10 +537,10 @@ var setConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (config
537
537
  process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
538
538
  }
539
539
  }
540
- if (config.env) {
541
- process.env[`${prefix}ENV`] = config.env;
542
- process.env.NODE_ENV = config.env;
543
- process.env.ENVIRONMENT = config.env;
540
+ if (config.mode) {
541
+ process.env[`${prefix}MODE`] = config.mode;
542
+ process.env.NODE_ENV = config.mode;
543
+ process.env.ENVIRONMENT = config.mode;
544
544
  }
545
545
  if (_optionalChain([config, 'access', _32 => _32.colors, 'optionalAccess', _33 => _33.base, 'optionalAccess', _34 => _34.light]) || _optionalChain([config, 'access', _35 => _35.colors, 'optionalAccess', _36 => _36.base, 'optionalAccess', _37 => _37.dark])) {
546
546
  for (const key of Object.keys(config.colors)) {
@@ -581,8 +581,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (config
581
581
  if (config.logLevel) {
582
582
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
583
583
  process.env.LOG_LEVEL = String(config.logLevel);
584
- process.env.NX_VERBOSE_LOGGING = String(_chunkNJPYGNEDcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkNJPYGNEDcjs.LogLevel.DEBUG ? true : false);
585
- process.env.RUST_BACKTRACE = _chunkNJPYGNEDcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkNJPYGNEDcjs.LogLevel.DEBUG ? "full" : "none";
584
+ process.env.NX_VERBOSE_LOGGING = String(_chunkSAUSZNX5cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkSAUSZNX5cjs.LogLevel.DEBUG ? true : false);
585
+ process.env.RUST_BACKTRACE = _chunkSAUSZNX5cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkSAUSZNX5cjs.LogLevel.DEBUG ? "full" : "none";
586
586
  }
587
587
  if (config.skipConfigLogging !== void 0) {
588
588
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
@@ -698,17 +698,17 @@ var createStormConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, as
698
698
  if (!_optionalChain([_static_cache, 'optionalAccess', _42 => _42.data]) || !_optionalChain([_static_cache, 'optionalAccess', _43 => _43.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
699
699
  let _workspaceRoot = workspaceRoot;
700
700
  if (!_workspaceRoot) {
701
- _workspaceRoot = _chunkNJPYGNEDcjs.findWorkspaceRoot.call(void 0, );
701
+ _workspaceRoot = _chunkSAUSZNX5cjs.findWorkspaceRoot.call(void 0, );
702
702
  }
703
703
  const configEnv = getConfigEnv();
704
- const defaultConfig = await _chunkNJPYGNEDcjs.getDefaultConfig.call(void 0, _workspaceRoot);
704
+ const defaultConfig = await _chunkSAUSZNX5cjs.getDefaultConfig.call(void 0, _workspaceRoot);
705
705
  const configFile = await getConfigFile(_workspaceRoot);
706
706
  if (!configFile && !skipLogs) {
707
- _chunkNJPYGNEDcjs.writeWarning.call(void 0, "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
707
+ _chunkSAUSZNX5cjs.writeWarning.call(void 0, "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
708
708
  logLevel: "all"
709
709
  });
710
710
  }
711
- result = await _chunkNJPYGNEDcjs.StormConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
711
+ result = await _chunkSAUSZNX5cjs.StormConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
712
712
  result.workspaceRoot ??= _workspaceRoot;
713
713
  } else {
714
714
  result = _static_cache.data;
@@ -743,8 +743,8 @@ var loadStormConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, asyn
743
743
  const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
744
744
  setConfigEnv(config);
745
745
  if (!skipLogs && !config.skipConfigLogging) {
746
- _chunkNJPYGNEDcjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
747
- ${_chunkNJPYGNEDcjs.formatLogMessage.call(void 0, config)}`, config);
746
+ _chunkSAUSZNX5cjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
747
+ ${_chunkSAUSZNX5cjs.formatLogMessage.call(void 0, config)}`, config);
748
748
  }
749
749
  return config;
750
750
  }, "loadStormConfig");
@@ -773,24 +773,24 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
773
773
  var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
774
774
  var _unbuild = require('unbuild');
775
775
  async function resolveOptions(options, config) {
776
- _chunkNJPYGNEDcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
777
- const stopwatch = _chunkNJPYGNEDcjs.getStopwatch.call(void 0, "Build options resolution");
776
+ _chunkSAUSZNX5cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
777
+ const stopwatch = _chunkSAUSZNX5cjs.getStopwatch.call(void 0, "Build options resolution");
778
778
  if (options.configPath) {
779
- const configFile = await _chunkLLLSWUM2cjs.loadConfig.call(void 0, options.configPath);
779
+ const configFile = await _chunkNSE3JRLEcjs.loadConfig.call(void 0, options.configPath);
780
780
  if (configFile) {
781
781
  options = _defu2.default.call(void 0, options, configFile);
782
782
  }
783
783
  }
784
- const outputPath = options.outputPath || _chunkNJPYGNEDcjs.joinPaths.call(void 0, "dist", options.projectRoot);
784
+ const outputPath = options.outputPath || _chunkSAUSZNX5cjs.joinPaths.call(void 0, "dist", options.projectRoot);
785
785
  const projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
786
- const projectJsonPath = _chunkNJPYGNEDcjs.joinPaths.call(void 0, config.workspaceRoot, options.projectRoot, "project.json");
786
+ const projectJsonPath = _chunkSAUSZNX5cjs.joinPaths.call(void 0, config.workspaceRoot, options.projectRoot, "project.json");
787
787
  if (!_fs.existsSync.call(void 0, projectJsonPath)) {
788
788
  throw new Error("Cannot find project.json configuration");
789
789
  }
790
790
  const projectJsonContent = await _promises.readFile.call(void 0, projectJsonPath, "utf8");
791
791
  const projectJson = JSON.parse(projectJsonContent);
792
792
  const projectName = projectJson.name;
793
- const packageJsonPath = _chunkNJPYGNEDcjs.joinPaths.call(void 0, config.workspaceRoot, options.projectRoot, "package.json");
793
+ const packageJsonPath = _chunkSAUSZNX5cjs.joinPaths.call(void 0, config.workspaceRoot, options.projectRoot, "package.json");
794
794
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
795
795
  throw new Error("Cannot find package.json configuration");
796
796
  }
@@ -798,14 +798,14 @@ async function resolveOptions(options, config) {
798
798
  const packageJson = JSON.parse(packageJsonContent);
799
799
  let tsconfig = options.tsconfig;
800
800
  if (!tsconfig) {
801
- tsconfig = _chunkNJPYGNEDcjs.joinPaths.call(void 0, config.workspaceRoot, options.projectRoot, "tsconfig.json");
801
+ tsconfig = _chunkSAUSZNX5cjs.joinPaths.call(void 0, config.workspaceRoot, options.projectRoot, "tsconfig.json");
802
802
  }
803
803
  if (!_fs.existsSync.call(void 0, tsconfig)) {
804
804
  throw new Error("Cannot find tsconfig.json configuration");
805
805
  }
806
806
  let sourceRoot = projectJson.sourceRoot;
807
807
  if (!sourceRoot) {
808
- sourceRoot = _chunkNJPYGNEDcjs.joinPaths.call(void 0, options.projectRoot, "src");
808
+ sourceRoot = _chunkSAUSZNX5cjs.joinPaths.call(void 0, options.projectRoot, "src");
809
809
  }
810
810
  if (!_fs.existsSync.call(void 0, sourceRoot)) {
811
811
  throw new Error("Cannot find sourceRoot directory");
@@ -841,7 +841,7 @@ async function resolveOptions(options, config) {
841
841
  while (entryPath.startsWith("/")) {
842
842
  entryPath = entryPath.substring(1);
843
843
  }
844
- const outDir = _chunkNJPYGNEDcjs.joinPaths.call(void 0, _path.relative.call(void 0, _chunkNJPYGNEDcjs.joinPaths.call(void 0, config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist");
844
+ const outDir = _chunkSAUSZNX5cjs.joinPaths.call(void 0, _path.relative.call(void 0, _chunkSAUSZNX5cjs.joinPaths.call(void 0, config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist");
845
845
  ret.push({
846
846
  name: `${name}-esm`,
847
847
  builder: "mkdist",
@@ -915,7 +915,7 @@ async function resolveOptions(options, config) {
915
915
  treeShaking: options.treeShaking !== false,
916
916
  platform: _nullishCoalesce(options.platform, () => ( "neutral")),
917
917
  color: true,
918
- logLevel: config.logLevel === _chunkNJPYGNEDcjs.LogLevelLabel.FATAL ? _chunkNJPYGNEDcjs.LogLevelLabel.ERROR : _chunkNJPYGNEDcjs.isVerbose.call(void 0, ) ? "verbose" : config.logLevel
918
+ logLevel: config.logLevel === _chunkSAUSZNX5cjs.LogLevelLabel.FATAL ? _chunkSAUSZNX5cjs.LogLevelLabel.ERROR : _chunkSAUSZNX5cjs.isVerbose.call(void 0, ) ? "verbose" : config.logLevel
919
919
  }
920
920
  }
921
921
  };
@@ -932,7 +932,7 @@ async function resolveOptions(options, config) {
932
932
  if (options.rollup) {
933
933
  let rollup = {};
934
934
  if (typeof options.rollup === "string") {
935
- const rollupFile = await _chunkLLLSWUM2cjs.loadConfig.call(void 0, options.rollup);
935
+ const rollupFile = await _chunkNSE3JRLEcjs.loadConfig.call(void 0, options.rollup);
936
936
  if (rollupFile) {
937
937
  rollup = rollupFile;
938
938
  }
@@ -944,15 +944,15 @@ async function resolveOptions(options, config) {
944
944
  resolvedOptions.hooks = {
945
945
  "rollup:options": /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (ctx, opts) => {
946
946
  if (options.plugins && options.plugins.length > 0) {
947
- _chunkNJPYGNEDcjs.writeDebug.call(void 0, ` \u{1F9E9} Found ${options.plugins.length} plugins in provided build options`, config);
947
+ _chunkSAUSZNX5cjs.writeDebug.call(void 0, ` \u{1F9E9} Found ${options.plugins.length} plugins in provided build options`, config);
948
948
  opts.plugins = options.plugins;
949
949
  } else {
950
- _chunkNJPYGNEDcjs.writeDebug.call(void 0, ` \u{1F9E9} No plugins found in provided build options, using default plugins`, config);
950
+ _chunkSAUSZNX5cjs.writeDebug.call(void 0, ` \u{1F9E9} No plugins found in provided build options, using default plugins`, config);
951
951
  opts.plugins = await Promise.all([
952
- _chunkD23IAMZQcjs.analyzePlugin.call(void 0, resolvedOptions),
952
+ _chunk4W6R6RL6cjs.analyzePlugin.call(void 0, resolvedOptions),
953
953
  _chunkOD3ULBE3cjs.typeDefinitionsPlugin.call(void 0, resolvedOptions),
954
- _chunkLLLSWUM2cjs.tscPlugin.call(void 0, resolvedOptions),
955
- _chunkEO7QVJ75cjs.onErrorPlugin.call(void 0, resolvedOptions)
954
+ _chunkNSE3JRLEcjs.tscPlugin.call(void 0, resolvedOptions),
955
+ _chunkUPGEZBOMcjs.onErrorPlugin.call(void 0, resolvedOptions)
956
956
  ]);
957
957
  }
958
958
  }, "rollup:options"),
@@ -1005,14 +1005,14 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
1005
1005
  };
1006
1006
  }, "addPackageJsonExport");
1007
1007
  async function generatePackageJson(options) {
1008
- if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkNJPYGNEDcjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1009
- _chunkNJPYGNEDcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
1010
- const stopwatch = _chunkNJPYGNEDcjs.getStopwatch.call(void 0, "Write package.json file");
1011
- const packageJsonPath = _chunkNJPYGNEDcjs.joinPaths.call(void 0, options.projectRoot, "project.json");
1008
+ if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkSAUSZNX5cjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1009
+ _chunkSAUSZNX5cjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
1010
+ const stopwatch = _chunkSAUSZNX5cjs.getStopwatch.call(void 0, "Write package.json file");
1011
+ const packageJsonPath = _chunkSAUSZNX5cjs.joinPaths.call(void 0, options.projectRoot, "project.json");
1012
1012
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1013
1013
  throw new Error("Cannot find package.json configuration");
1014
1014
  }
1015
- let packageJsonContent = await _promises.readFile.call(void 0, _chunkNJPYGNEDcjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
1015
+ let packageJsonContent = await _promises.readFile.call(void 0, _chunkSAUSZNX5cjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
1016
1016
  if (!packageJsonContent) {
1017
1017
  throw new Error("Cannot find package.json configuration file");
1018
1018
  }
@@ -1029,7 +1029,7 @@ async function generatePackageJson(options) {
1029
1029
  while (entryPath.startsWith("/")) {
1030
1030
  entryPath = entryPath.substring(1);
1031
1031
  }
1032
- entryPath = `./${_chunkNJPYGNEDcjs.joinPaths.call(void 0, options.projectRoot, entryPath)}`;
1032
+ entryPath = `./${_chunkSAUSZNX5cjs.joinPaths.call(void 0, options.projectRoot, entryPath)}`;
1033
1033
  if (!ret.includes(entryPath)) {
1034
1034
  ret.push(entryPath);
1035
1035
  }
@@ -1060,23 +1060,23 @@ async function generatePackageJson(options) {
1060
1060
  }, packageJson.exports);
1061
1061
  packageJson.exports["./package.json"] ??= "./package.json";
1062
1062
  packageJson.exports["."] ??= addPackageJsonExport("index", packageJson.type, options.sourceRoot, options.projectRoot);
1063
- await _devkit.writeJsonFile.call(void 0, _chunkNJPYGNEDcjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
1063
+ await _devkit.writeJsonFile.call(void 0, _chunkSAUSZNX5cjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
1064
1064
  stopwatch();
1065
1065
  }
1066
1066
  return options;
1067
1067
  }
1068
1068
  _chunkBGYQAVKQcjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
1069
1069
  async function executeUnbuild(options) {
1070
- _chunkNJPYGNEDcjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} (${options.projectRoot}) build`, options.config);
1071
- const stopwatch = _chunkNJPYGNEDcjs.getStopwatch.call(void 0, `${options.name} (${options.projectRoot}) build`);
1070
+ _chunkSAUSZNX5cjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} (${options.projectRoot}) build`, options.config);
1071
+ const stopwatch = _chunkSAUSZNX5cjs.getStopwatch.call(void 0, `${options.name} (${options.projectRoot}) build`);
1072
1072
  try {
1073
1073
  const config = {
1074
1074
  ...options,
1075
1075
  config: null,
1076
- rootDir: _chunkNJPYGNEDcjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot)
1076
+ rootDir: _chunkSAUSZNX5cjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot)
1077
1077
  };
1078
- _chunkNJPYGNEDcjs.writeTrace.call(void 0, `Running with unbuild configuration:
1079
- ${_chunkNJPYGNEDcjs.formatLogMessage.call(void 0, config)}
1078
+ _chunkSAUSZNX5cjs.writeTrace.call(void 0, `Running with unbuild configuration:
1079
+ ${_chunkSAUSZNX5cjs.formatLogMessage.call(void 0, config)}
1080
1080
  `, options.config);
1081
1081
  await _unbuild.build.call(void 0, options.projectRoot, false, config);
1082
1082
  } finally {
@@ -1086,8 +1086,8 @@ ${_chunkNJPYGNEDcjs.formatLogMessage.call(void 0, config)}
1086
1086
  }
1087
1087
  _chunkBGYQAVKQcjs.__name.call(void 0, executeUnbuild, "executeUnbuild");
1088
1088
  async function copyBuildAssets(options) {
1089
- _chunkNJPYGNEDcjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`, options.config);
1090
- const stopwatch = _chunkNJPYGNEDcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1089
+ _chunkSAUSZNX5cjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`, options.config);
1090
+ const stopwatch = _chunkSAUSZNX5cjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1091
1091
  await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outDir, options.projectRoot, options.sourceRoot, options.generatePackageJson, options.includeSrc);
1092
1092
  stopwatch();
1093
1093
  return options;
@@ -1095,9 +1095,9 @@ async function copyBuildAssets(options) {
1095
1095
  _chunkBGYQAVKQcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
1096
1096
  async function cleanOutputPath(options) {
1097
1097
  if (options.clean !== false && options.outDir) {
1098
- _chunkNJPYGNEDcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outDir}`, options.config);
1099
- const stopwatch = _chunkNJPYGNEDcjs.getStopwatch.call(void 0, `${options.name} output clean`);
1100
- await _chunkHBY6UKYTcjs.cleanDirectories.call(void 0, options.name, options.outDir, options.config);
1098
+ _chunkSAUSZNX5cjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outDir}`, options.config);
1099
+ const stopwatch = _chunkSAUSZNX5cjs.getStopwatch.call(void 0, `${options.name} output clean`);
1100
+ await _chunk5SJH5QVDcjs.cleanDirectories.call(void 0, options.name, options.outDir, options.config);
1101
1101
  stopwatch();
1102
1102
  }
1103
1103
  return options;
@@ -1113,18 +1113,18 @@ async function build(options) {
1113
1113
  throw new Error("Cannot find workspace root");
1114
1114
  }
1115
1115
  const config = await getConfig(workspaceRoot.dir);
1116
- _chunkNJPYGNEDcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm Unbuild pipeline`, config);
1117
- const stopwatch = _chunkNJPYGNEDcjs.getStopwatch.call(void 0, "Unbuild pipeline");
1116
+ _chunkSAUSZNX5cjs.writeDebug.call(void 0, ` \u26A1 Executing Storm Unbuild pipeline`, config);
1117
+ const stopwatch = _chunkSAUSZNX5cjs.getStopwatch.call(void 0, "Unbuild pipeline");
1118
1118
  try {
1119
- options.projectRoot = _chunkNJPYGNEDcjs.correctPaths.call(void 0, projectRoot);
1119
+ options.projectRoot = _chunkSAUSZNX5cjs.correctPaths.call(void 0, projectRoot);
1120
1120
  const resolvedOptions = await resolveOptions(options, config);
1121
1121
  await cleanOutputPath(resolvedOptions);
1122
1122
  await generatePackageJson(resolvedOptions);
1123
1123
  await executeUnbuild(resolvedOptions);
1124
1124
  await copyBuildAssets(resolvedOptions);
1125
- _chunkNJPYGNEDcjs.writeSuccess.call(void 0, ` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`, config);
1125
+ _chunkSAUSZNX5cjs.writeSuccess.call(void 0, ` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`, config);
1126
1126
  } catch (error) {
1127
- _chunkNJPYGNEDcjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.", config);
1127
+ _chunkSAUSZNX5cjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.", config);
1128
1128
  throw error;
1129
1129
  } finally {
1130
1130
  stopwatch();
@@ -326,11 +326,11 @@ var StormConfigSchema = _zod2.default.object({
326
326
  preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
327
327
  owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
328
328
  bot: WorkspaceBotConfigSchema,
329
- env: _zod2.default.enum([
329
+ mode: _zod2.default.enum([
330
330
  "development",
331
331
  "staging",
332
332
  "production"
333
- ]).default("production").describe("The current runtime environment name for the package"),
333
+ ]).default("production").describe("The current runtime environment mode for the package"),
334
334
  workspaceRoot: _zod2.default.string().trim().default("").describe("The root directory of the workspace"),
335
335
  externalPackagePatterns: _zod2.default.array(_zod2.default.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
336
336
  skipCache: _zod2.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeError
3
- } from "./chunk-7VJEC546.js";
3
+ } from "./chunk-K6HLG2MF.js";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-3GQAWCBQ.js";
@@ -3,17 +3,17 @@ import {
3
3
  } from "./chunk-RBYYB7X2.js";
4
4
  import {
5
5
  cleanDirectories
6
- } from "./chunk-IWTMOHE3.js";
6
+ } from "./chunk-46QE7TKB.js";
7
7
  import {
8
8
  analyzePlugin
9
- } from "./chunk-PFVZ2J4O.js";
9
+ } from "./chunk-L2E6Z4J5.js";
10
10
  import {
11
11
  onErrorPlugin
12
- } from "./chunk-HGAVAOA2.js";
12
+ } from "./chunk-T43ZHS2E.js";
13
13
  import {
14
14
  loadConfig,
15
15
  tscPlugin
16
- } from "./chunk-DBTZKY5A.js";
16
+ } from "./chunk-TNU6RLO7.js";
17
17
  import {
18
18
  COLOR_KEYS,
19
19
  LogLevel,
@@ -36,7 +36,7 @@ import {
36
36
  writeSuccess,
37
37
  writeTrace,
38
38
  writeWarning
39
- } from "./chunk-7VJEC546.js";
39
+ } from "./chunk-K6HLG2MF.js";
40
40
  import {
41
41
  __name
42
42
  } from "./chunk-3GQAWCBQ.js";
@@ -328,7 +328,7 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
328
328
  build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
329
329
  },
330
330
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
331
- env: (process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
331
+ mode: (process.env[`${prefix}MODE`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
332
332
  // ci:
333
333
  // process.env[`${prefix}CI`] !== undefined
334
334
  // ? Boolean(
@@ -537,10 +537,10 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
537
537
  process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
538
538
  }
539
539
  }
540
- if (config.env) {
541
- process.env[`${prefix}ENV`] = config.env;
542
- process.env.NODE_ENV = config.env;
543
- process.env.ENVIRONMENT = config.env;
540
+ if (config.mode) {
541
+ process.env[`${prefix}MODE`] = config.mode;
542
+ process.env.NODE_ENV = config.mode;
543
+ process.env.ENVIRONMENT = config.mode;
544
544
  }
545
545
  if (config.colors?.base?.light || config.colors?.base?.dark) {
546
546
  for (const key of Object.keys(config.colors)) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeTrace
3
- } from "./chunk-7VJEC546.js";
3
+ } from "./chunk-K6HLG2MF.js";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-3GQAWCBQ.js";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkNJPYGNEDcjs = require('./chunk-NJPYGNED.cjs');
3
+ var _chunkSAUSZNX5cjs = require('./chunk-SAUSZNX5.cjs');
4
4
 
5
5
 
6
6
  var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
@@ -10,7 +10,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (optio
10
10
  name: "storm:on-error",
11
11
  buildEnd(error) {
12
12
  if (error) {
13
- _chunkNJPYGNEDcjs.writeError.call(void 0, `The following errors occurred during the build:
13
+ _chunkSAUSZNX5cjs.writeError.call(void 0, `The following errors occurred during the build:
14
14
  ${error ? error.message : "Unknown build error"}
15
15
 
16
16
  `, options.config);
@@ -18,7 +18,7 @@ ${error ? error.message : "Unknown build error"}
18
18
  }
19
19
  },
20
20
  renderError(error) {
21
- _chunkNJPYGNEDcjs.writeError.call(void 0, `The following errors occurred during the build:
21
+ _chunkSAUSZNX5cjs.writeError.call(void 0, `The following errors occurred during the build:
22
22
  ${error ? error.message : "Unknown build error"}
23
23
 
24
24
  `, options.config);
package/dist/clean.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkHBY6UKYTcjs = require('./chunk-HBY6UKYT.cjs');
5
- require('./chunk-NJPYGNED.cjs');
4
+ var _chunk5SJH5QVDcjs = require('./chunk-5SJH5QVD.cjs');
5
+ require('./chunk-SAUSZNX5.cjs');
6
6
  require('./chunk-BGYQAVKQ.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.clean = _chunkHBY6UKYTcjs.clean; exports.cleanDirectories = _chunkHBY6UKYTcjs.cleanDirectories;
10
+ exports.clean = _chunk5SJH5QVDcjs.clean; exports.cleanDirectories = _chunk5SJH5QVDcjs.cleanDirectories;
package/dist/clean.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clean,
3
3
  cleanDirectories
4
- } from "./chunk-IWTMOHE3.js";
5
- import "./chunk-7VJEC546.js";
4
+ } from "./chunk-46QE7TKB.js";
5
+ import "./chunk-K6HLG2MF.js";
6
6
  import "./chunk-3GQAWCBQ.js";
7
7
  export {
8
8
  clean,
package/dist/index.cjs CHANGED
@@ -5,20 +5,20 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkZJC75DIRcjs = require('./chunk-ZJC75DIR.cjs');
8
+ var _chunkRE2E37VBcjs = require('./chunk-RE2E37VB.cjs');
9
9
  require('./chunk-OD3ULBE3.cjs');
10
10
 
11
11
 
12
12
 
13
- var _chunkHBY6UKYTcjs = require('./chunk-HBY6UKYT.cjs');
13
+ var _chunk5SJH5QVDcjs = require('./chunk-5SJH5QVD.cjs');
14
14
  require('./chunk-ORA4UQMU.cjs');
15
- require('./chunk-D23IAMZQ.cjs');
16
- require('./chunk-EO7QVJ75.cjs');
15
+ require('./chunk-4W6R6RL6.cjs');
16
+ require('./chunk-UPGEZBOM.cjs');
17
17
 
18
18
 
19
19
 
20
- var _chunkLLLSWUM2cjs = require('./chunk-LLLSWUM2.cjs');
21
- require('./chunk-NJPYGNED.cjs');
20
+ var _chunkNSE3JRLEcjs = require('./chunk-NSE3JRLE.cjs');
21
+ require('./chunk-SAUSZNX5.cjs');
22
22
  require('./chunk-BGYQAVKQ.cjs');
23
23
 
24
24
 
@@ -31,4 +31,4 @@ require('./chunk-BGYQAVKQ.cjs');
31
31
 
32
32
 
33
33
 
34
- exports.build = _chunkZJC75DIRcjs.build; exports.clean = _chunkHBY6UKYTcjs.clean; exports.cleanDirectories = _chunkHBY6UKYTcjs.cleanDirectories; exports.cleanOutputPath = _chunkZJC75DIRcjs.cleanOutputPath; exports.copyBuildAssets = _chunkZJC75DIRcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkLLLSWUM2cjs.createTsCompilerOptions; exports.executeUnbuild = _chunkZJC75DIRcjs.executeUnbuild; exports.generatePackageJson = _chunkZJC75DIRcjs.generatePackageJson; exports.loadConfig = _chunkLLLSWUM2cjs.loadConfig; exports.resolveOptions = _chunkZJC75DIRcjs.resolveOptions;
34
+ exports.build = _chunkRE2E37VBcjs.build; exports.clean = _chunk5SJH5QVDcjs.clean; exports.cleanDirectories = _chunk5SJH5QVDcjs.cleanDirectories; exports.cleanOutputPath = _chunkRE2E37VBcjs.cleanOutputPath; exports.copyBuildAssets = _chunkRE2E37VBcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkNSE3JRLEcjs.createTsCompilerOptions; exports.executeUnbuild = _chunkRE2E37VBcjs.executeUnbuild; exports.generatePackageJson = _chunkRE2E37VBcjs.generatePackageJson; exports.loadConfig = _chunkNSE3JRLEcjs.loadConfig; exports.resolveOptions = _chunkRE2E37VBcjs.resolveOptions;
package/dist/index.js CHANGED
@@ -5,20 +5,20 @@ import {
5
5
  executeUnbuild,
6
6
  generatePackageJson,
7
7
  resolveOptions
8
- } from "./chunk-4XGKUSRC.js";
8
+ } from "./chunk-TLAKGUAR.js";
9
9
  import "./chunk-RBYYB7X2.js";
10
10
  import {
11
11
  clean,
12
12
  cleanDirectories
13
- } from "./chunk-IWTMOHE3.js";
13
+ } from "./chunk-46QE7TKB.js";
14
14
  import "./chunk-OULCUN6I.js";
15
- import "./chunk-PFVZ2J4O.js";
16
- import "./chunk-HGAVAOA2.js";
15
+ import "./chunk-L2E6Z4J5.js";
16
+ import "./chunk-T43ZHS2E.js";
17
17
  import {
18
18
  createTsCompilerOptions,
19
19
  loadConfig
20
- } from "./chunk-DBTZKY5A.js";
21
- import "./chunk-7VJEC546.js";
20
+ } from "./chunk-TNU6RLO7.js";
21
+ import "./chunk-K6HLG2MF.js";
22
22
  import "./chunk-3GQAWCBQ.js";
23
23
  export {
24
24
  build,
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkD23IAMZQcjs = require('../chunk-D23IAMZQ.cjs');
4
- require('../chunk-NJPYGNED.cjs');
3
+ var _chunk4W6R6RL6cjs = require('../chunk-4W6R6RL6.cjs');
4
+ require('../chunk-SAUSZNX5.cjs');
5
5
  require('../chunk-BGYQAVKQ.cjs');
6
6
 
7
7
 
8
- exports.analyzePlugin = _chunkD23IAMZQcjs.analyzePlugin;
8
+ exports.analyzePlugin = _chunk4W6R6RL6cjs.analyzePlugin;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  analyzePlugin
3
- } from "../chunk-PFVZ2J4O.js";
4
- import "../chunk-7VJEC546.js";
3
+ } from "../chunk-L2E6Z4J5.js";
4
+ import "../chunk-K6HLG2MF.js";
5
5
  import "../chunk-3GQAWCBQ.js";
6
6
  export {
7
7
  analyzePlugin
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkEO7QVJ75cjs = require('../chunk-EO7QVJ75.cjs');
4
- require('../chunk-NJPYGNED.cjs');
3
+ var _chunkUPGEZBOMcjs = require('../chunk-UPGEZBOM.cjs');
4
+ require('../chunk-SAUSZNX5.cjs');
5
5
  require('../chunk-BGYQAVKQ.cjs');
6
6
 
7
7
 
8
- exports.onErrorPlugin = _chunkEO7QVJ75cjs.onErrorPlugin;
8
+ exports.onErrorPlugin = _chunkUPGEZBOMcjs.onErrorPlugin;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  onErrorPlugin
3
- } from "../chunk-HGAVAOA2.js";
4
- import "../chunk-7VJEC546.js";
3
+ } from "../chunk-T43ZHS2E.js";
4
+ import "../chunk-K6HLG2MF.js";
5
5
  import "../chunk-3GQAWCBQ.js";
6
6
  export {
7
7
  onErrorPlugin
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkLLLSWUM2cjs = require('../chunk-LLLSWUM2.cjs');
4
- require('../chunk-NJPYGNED.cjs');
3
+ var _chunkNSE3JRLEcjs = require('../chunk-NSE3JRLE.cjs');
4
+ require('../chunk-SAUSZNX5.cjs');
5
5
  require('../chunk-BGYQAVKQ.cjs');
6
6
 
7
7
 
8
- exports.tscPlugin = _chunkLLLSWUM2cjs.tscPlugin;
8
+ exports.tscPlugin = _chunkNSE3JRLEcjs.tscPlugin;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  tscPlugin
3
- } from "../chunk-DBTZKY5A.js";
4
- import "../chunk-7VJEC546.js";
3
+ } from "../chunk-TNU6RLO7.js";
4
+ import "../chunk-K6HLG2MF.js";
5
5
  import "../chunk-3GQAWCBQ.js";
6
6
  export {
7
7
  tscPlugin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/unbuild",
3
- "version": "0.37.3",
3
+ "version": "0.37.5",
4
4
  "type": "module",
5
5
  "description": "A package containing `unbuild` utilities for building Storm Software libraries and applications",
6
6
  "repository": {