@storm-software/tsdown 0.27.34 → 0.28.2

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.27.34-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.28.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/dist/build.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk654FE4TEcjs = require('./chunk-654FE4TE.cjs');
5
- require('./chunk-AJHJILKV.cjs');
4
+ var _chunkR34YFAQ2cjs = require('./chunk-R34YFAQ2.cjs');
5
+ require('./chunk-2G7S4JNP.cjs');
6
6
  require('./chunk-DEWYQH4B.cjs');
7
7
  require('./chunk-USNT2KNT.cjs');
8
8
 
9
9
 
10
10
 
11
- exports.build = _chunk654FE4TEcjs.build; exports.cleanOutputPath = _chunk654FE4TEcjs.cleanOutputPath;
11
+ exports.build = _chunkR34YFAQ2cjs.build; exports.cleanOutputPath = _chunkR34YFAQ2cjs.cleanOutputPath;
package/dist/build.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-OEMY5TOL.js";
5
- import "./chunk-GWJBIASO.js";
4
+ } from "./chunk-S64HKBEP.js";
5
+ import "./chunk-2WT22RMQ.js";
6
6
  import "./chunk-PR5HLZXS.js";
7
7
  import "./chunk-SHUYVCID.js";
8
8
  export {
@@ -186,7 +186,7 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
186
186
  "staging",
187
187
  "production"
188
188
  ]).default("production").describe("The current runtime environment mode for the package"),
189
- workspaceRoot: _zod2.default.string().trim().default("").describe("The root directory of the workspace"),
189
+ workspaceRoot: _zod2.default.string().trim().describe("The root directory of the workspace"),
190
190
  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"),
191
191
  skipCache: _zod2.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
192
192
  directories: WorkspaceDirectoryConfigSchema,
@@ -186,7 +186,7 @@ var stormWorkspaceConfigSchema = z.object({
186
186
  "staging",
187
187
  "production"
188
188
  ]).default("production").describe("The current runtime environment mode for the package"),
189
- workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
189
+ workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
190
190
  externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
191
191
  skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
192
192
  directories: WorkspaceDirectoryConfigSchema,
@@ -20,7 +20,7 @@
20
20
 
21
21
 
22
22
 
23
- var _chunkAJHJILKVcjs = require('./chunk-AJHJILKV.cjs');
23
+ var _chunk2G7S4JNPcjs = require('./chunk-2G7S4JNP.cjs');
24
24
 
25
25
 
26
26
  var _chunkDEWYQH4Bcjs = require('./chunk-DEWYQH4B.cjs');
@@ -79,8 +79,8 @@ var copyAssets = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (co
79
79
  output: "src/"
80
80
  });
81
81
  }
82
- _chunkAJHJILKVcjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
83
- ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkAJHJILKVcjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
82
+ _chunk2G7S4JNPcjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
83
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunk2G7S4JNPcjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
84
84
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
85
85
  projectDir: projectRoot,
86
86
  rootDir: config.workspaceRoot,
@@ -89,12 +89,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
89
89
  });
90
90
  await assetHandler.processAllAssetsOnce();
91
91
  if (includeSrc === true) {
92
- _chunkAJHJILKVcjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkAJHJILKVcjs.joinPaths.call(void 0, outputPath, "src")}`, config);
92
+ _chunk2G7S4JNPcjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunk2G7S4JNPcjs.joinPaths.call(void 0, outputPath, "src")}`, config);
93
93
  const files = await _glob.glob.call(void 0, [
94
- _chunkAJHJILKVcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
95
- _chunkAJHJILKVcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
96
- _chunkAJHJILKVcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
97
- _chunkAJHJILKVcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
94
+ _chunk2G7S4JNPcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
95
+ _chunk2G7S4JNPcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
96
+ _chunk2G7S4JNPcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
97
+ _chunk2G7S4JNPcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
98
98
  ]);
99
99
  await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
100
100
 
@@ -117,7 +117,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
117
117
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _ => _.node, 'access', _2 => _2.data, 'optionalAccess', _3 => _3.root]) !== projectRoot && _optionalChain([dep, 'access', _4 => _4.node, 'access', _5 => _5.data, 'optionalAccess', _6 => _6.root]) !== workspaceRoot)) {
118
118
  const projectNode = project.node;
119
119
  if (projectNode.data.root) {
120
- const projectPackageJsonPath = _chunkAJHJILKVcjs.joinPaths.call(void 0, workspaceRoot, projectNode.data.root, "package.json");
120
+ const projectPackageJsonPath = _chunk2G7S4JNPcjs.joinPaths.call(void 0, workspaceRoot, projectNode.data.root, "package.json");
121
121
  if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
122
122
  const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
123
123
  const projectPackageJson = JSON.parse(projectPackageJsonContent);
@@ -128,8 +128,8 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
128
128
  }
129
129
  }
130
130
  if (localPackages.length > 0) {
131
- _chunkAJHJILKVcjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
132
- const projectJsonFile = await _promises.readFile.call(void 0, _chunkAJHJILKVcjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
131
+ _chunk2G7S4JNPcjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
132
+ const projectJsonFile = await _promises.readFile.call(void 0, _chunk2G7S4JNPcjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
133
133
  const projectJson = JSON.parse(projectJsonFile);
134
134
  const projectName2 = projectJson.name;
135
135
  const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
@@ -138,7 +138,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
138
138
  }
139
139
  const implicitDependencies = _optionalChain([projectConfigurations, 'access', _9 => _9.projects, 'optionalAccess', _10 => _10[projectName2], 'access', _11 => _11.implicitDependencies, 'optionalAccess', _12 => _12.reduce, 'call', _13 => _13((ret, dep) => {
140
140
  if (_optionalChain([projectConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[dep]])) {
141
- const depPackageJsonPath = _chunkAJHJILKVcjs.joinPaths.call(void 0, workspaceRoot, projectConfigurations.projects[dep].root, "package.json");
141
+ const depPackageJsonPath = _chunk2G7S4JNPcjs.joinPaths.call(void 0, workspaceRoot, projectConfigurations.projects[dep].root, "package.json");
142
142
  if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
143
143
  const depPackageJsonContent = _fs.readFileSync.call(void 0, depPackageJsonPath, "utf8");
144
144
  const depPackageJson = JSON.parse(depPackageJsonContent);
@@ -157,18 +157,18 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
157
157
  }, _nullishCoalesce(packageJson.dependencies, () => ( {})));
158
158
  packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
159
159
  if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _20 => _20.includes, 'call', _21 => _21(localPackage.name)]) && _optionalChain([packageJson, 'access', _22 => _22.dependencies, 'optionalAccess', _23 => _23[localPackage.name]]) === void 0) {
160
- ret[localPackage.name] = localPackage.version || "0.0.1";
160
+ ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
161
161
  }
162
162
  return ret;
163
163
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
164
164
  } else {
165
- _chunkAJHJILKVcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
165
+ _chunk2G7S4JNPcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
166
166
  }
167
167
  return packageJson;
168
168
  }, "addPackageDependencies");
169
169
  var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
170
- const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkAJHJILKVcjs.findWorkspaceRoot.call(void 0, );
171
- const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkAJHJILKVcjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
170
+ const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunk2G7S4JNPcjs.findWorkspaceRoot.call(void 0, );
171
+ const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunk2G7S4JNPcjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
172
172
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
173
173
  packageJson.type ??= "module";
174
174
  packageJson.sideEffects ??= false;
@@ -177,7 +177,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.cal
177
177
  if (distSrc.startsWith("/")) {
178
178
  distSrc = distSrc.substring(1);
179
179
  }
180
- packageJson.source ??= `${_chunkAJHJILKVcjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
180
+ packageJson.source ??= `${_chunk2G7S4JNPcjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
181
181
  }
182
182
  packageJson.files ??= [
183
183
  "dist/**/*"
@@ -208,7 +208,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.cal
208
208
  ];
209
209
  }
210
210
  packageJson.repository ??= workspacePackageJson.repository;
211
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkAJHJILKVcjs.joinPaths.call(void 0, "packages", projectName);
211
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunk2G7S4JNPcjs.joinPaths.call(void 0, "packages", projectName);
212
212
  return packageJson;
213
213
  }, "addWorkspacePackageJsonFields");
214
214
  var addPackageJsonExport = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (file, type = "module", sourceRoot) => {
@@ -236,7 +236,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
236
236
  var _c12 = require('c12');
237
237
  var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
238
238
  var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
239
- const workspacePath = filePath || _chunkAJHJILKVcjs.findWorkspaceRoot.call(void 0, filePath);
239
+ const workspacePath = filePath || _chunk2G7S4JNPcjs.findWorkspaceRoot.call(void 0, filePath);
240
240
  const configs = await Promise.all([
241
241
  _c12.loadConfig.call(void 0, {
242
242
  cwd: workspacePath,
@@ -245,7 +245,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
245
245
  envName: _optionalChain([fileName, 'optionalAccess', _24 => _24.toUpperCase, 'call', _25 => _25()]),
246
246
  jitiOptions: {
247
247
  debug: false,
248
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkAJHJILKVcjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
248
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunk2G7S4JNPcjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
249
249
  },
250
250
  ...options
251
251
  }),
@@ -256,7 +256,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
256
256
  envName: _optionalChain([fileName, 'optionalAccess', _26 => _26.toUpperCase, 'call', _27 => _27()]),
257
257
  jitiOptions: {
258
258
  debug: false,
259
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkAJHJILKVcjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
259
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunk2G7S4JNPcjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
260
260
  },
261
261
  configFile: fileName,
262
262
  ...options
@@ -265,12 +265,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
265
265
  return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
266
266
  }, "getConfigFileByName");
267
267
  var getConfigFile = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
268
- const workspacePath = filePath ? filePath : _chunkAJHJILKVcjs.findWorkspaceRoot.call(void 0, filePath);
268
+ const workspacePath = filePath ? filePath : _chunk2G7S4JNPcjs.findWorkspaceRoot.call(void 0, filePath);
269
269
  const result = await getConfigFileByName("storm-workspace", workspacePath);
270
270
  let config = result.config;
271
271
  const configFile = result.configFile;
272
272
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
273
- _chunkAJHJILKVcjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
273
+ _chunk2G7S4JNPcjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
274
274
  logLevel: "all"
275
275
  });
276
276
  }
@@ -279,7 +279,7 @@ var getConfigFile = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
279
279
  for (const result2 of results) {
280
280
  if (_optionalChain([result2, 'optionalAccess', _28 => _28.config]) && _optionalChain([result2, 'optionalAccess', _29 => _29.configFile]) && Object.keys(result2.config).length > 0) {
281
281
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
282
- _chunkAJHJILKVcjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
282
+ _chunk2G7S4JNPcjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
283
283
  logLevel: "all"
284
284
  });
285
285
  }
@@ -287,7 +287,7 @@ var getConfigFile = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
287
287
  }
288
288
  }
289
289
  }
290
- if (!config) {
290
+ if (!config || Object.keys(config).length === 0) {
291
291
  return void 0;
292
292
  }
293
293
  config.configFile = configFile;
@@ -345,15 +345,15 @@ var getConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
345
345
  contact: process.env[`${prefix}CONTACT`] || void 0,
346
346
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
347
347
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
348
- configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
349
- workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
348
+ configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunk2G7S4JNPcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
349
+ workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunk2G7S4JNPcjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
350
350
  directories: {
351
- cache: process.env[`${prefix}CACHE_DIR`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
352
- data: process.env[`${prefix}DATA_DIR`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
353
- config: process.env[`${prefix}CONFIG_DIR`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
354
- temp: process.env[`${prefix}TEMP_DIR`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
355
- log: process.env[`${prefix}LOG_DIR`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
356
- build: process.env[`${prefix}BUILD_DIR`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
351
+ cache: process.env[`${prefix}CACHE_DIR`] ? _chunk2G7S4JNPcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunk2G7S4JNPcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
352
+ data: process.env[`${prefix}DATA_DIR`] ? _chunk2G7S4JNPcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunk2G7S4JNPcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
353
+ config: process.env[`${prefix}CONFIG_DIR`] ? _chunk2G7S4JNPcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunk2G7S4JNPcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
354
+ temp: process.env[`${prefix}TEMP_DIR`] ? _chunk2G7S4JNPcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunk2G7S4JNPcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
355
+ log: process.env[`${prefix}LOG_DIR`] ? _chunk2G7S4JNPcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunk2G7S4JNPcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
356
+ build: process.env[`${prefix}BUILD_DIR`] ? _chunk2G7S4JNPcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunk2G7S4JNPcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
357
357
  },
358
358
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
359
359
  mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
@@ -376,24 +376,24 @@ var getConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
376
376
  cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
377
377
  container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
378
378
  },
379
- 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`])) ? _chunkAJHJILKVcjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
379
+ 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`])) ? _chunk2G7S4JNPcjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
380
380
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
381
381
  };
382
- const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkAJHJILKVcjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
382
+ const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunk2G7S4JNPcjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
383
383
  config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
384
384
  ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
385
385
  return ret;
386
386
  }, {}) : getThemeColorConfigEnv(prefix);
387
- if (config.docs === _chunkAJHJILKVcjs.STORM_DEFAULT_DOCS) {
388
- if (config.homepage === _chunkAJHJILKVcjs.STORM_DEFAULT_HOMEPAGE) {
389
- config.docs = `${_chunkAJHJILKVcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
387
+ if (config.docs === _chunk2G7S4JNPcjs.STORM_DEFAULT_DOCS) {
388
+ if (config.homepage === _chunk2G7S4JNPcjs.STORM_DEFAULT_HOMEPAGE) {
389
+ config.docs = `${_chunk2G7S4JNPcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
390
390
  } else {
391
391
  config.docs = `${config.homepage}/docs`;
392
392
  }
393
393
  }
394
- if (config.licensing === _chunkAJHJILKVcjs.STORM_DEFAULT_LICENSING) {
395
- if (config.homepage === _chunkAJHJILKVcjs.STORM_DEFAULT_HOMEPAGE) {
396
- config.licensing = `${_chunkAJHJILKVcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
394
+ if (config.licensing === _chunk2G7S4JNPcjs.STORM_DEFAULT_LICENSING) {
395
+ if (config.homepage === _chunk2G7S4JNPcjs.STORM_DEFAULT_HOMEPAGE) {
396
+ config.licensing = `${_chunk2G7S4JNPcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
397
397
  } else {
398
398
  config.licensing = `${config.homepage}/docs`;
399
399
  }
@@ -563,36 +563,36 @@ var setConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config
563
563
  process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
564
564
  }
565
565
  if (config.configFile) {
566
- process.env[`${prefix}CONFIG_FILE`] = _chunkAJHJILKVcjs.correctPaths.call(void 0, config.configFile);
566
+ process.env[`${prefix}CONFIG_FILE`] = _chunk2G7S4JNPcjs.correctPaths.call(void 0, config.configFile);
567
567
  }
568
568
  if (config.workspaceRoot) {
569
- process.env[`${prefix}WORKSPACE_ROOT`] = _chunkAJHJILKVcjs.correctPaths.call(void 0, config.workspaceRoot);
570
- process.env.NX_WORKSPACE_ROOT = _chunkAJHJILKVcjs.correctPaths.call(void 0, config.workspaceRoot);
571
- process.env.NX_WORKSPACE_ROOT_PATH = _chunkAJHJILKVcjs.correctPaths.call(void 0, config.workspaceRoot);
569
+ process.env[`${prefix}WORKSPACE_ROOT`] = _chunk2G7S4JNPcjs.correctPaths.call(void 0, config.workspaceRoot);
570
+ process.env.NX_WORKSPACE_ROOT = _chunk2G7S4JNPcjs.correctPaths.call(void 0, config.workspaceRoot);
571
+ process.env.NX_WORKSPACE_ROOT_PATH = _chunk2G7S4JNPcjs.correctPaths.call(void 0, config.workspaceRoot);
572
572
  }
573
573
  if (config.directories) {
574
574
  if (!config.skipCache && config.directories.cache) {
575
- process.env[`${prefix}CACHE_DIR`] = _chunkAJHJILKVcjs.correctPaths.call(void 0, config.directories.cache);
575
+ process.env[`${prefix}CACHE_DIR`] = _chunk2G7S4JNPcjs.correctPaths.call(void 0, config.directories.cache);
576
576
  process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
577
577
  }
578
578
  if (config.directories.data) {
579
- process.env[`${prefix}DATA_DIR`] = _chunkAJHJILKVcjs.correctPaths.call(void 0, config.directories.data);
579
+ process.env[`${prefix}DATA_DIR`] = _chunk2G7S4JNPcjs.correctPaths.call(void 0, config.directories.data);
580
580
  process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
581
581
  }
582
582
  if (config.directories.config) {
583
- process.env[`${prefix}CONFIG_DIR`] = _chunkAJHJILKVcjs.correctPaths.call(void 0, config.directories.config);
583
+ process.env[`${prefix}CONFIG_DIR`] = _chunk2G7S4JNPcjs.correctPaths.call(void 0, config.directories.config);
584
584
  process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
585
585
  }
586
586
  if (config.directories.temp) {
587
- process.env[`${prefix}TEMP_DIR`] = _chunkAJHJILKVcjs.correctPaths.call(void 0, config.directories.temp);
587
+ process.env[`${prefix}TEMP_DIR`] = _chunk2G7S4JNPcjs.correctPaths.call(void 0, config.directories.temp);
588
588
  process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
589
589
  }
590
590
  if (config.directories.log) {
591
- process.env[`${prefix}LOG_DIR`] = _chunkAJHJILKVcjs.correctPaths.call(void 0, config.directories.log);
591
+ process.env[`${prefix}LOG_DIR`] = _chunk2G7S4JNPcjs.correctPaths.call(void 0, config.directories.log);
592
592
  process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
593
593
  }
594
594
  if (config.directories.build) {
595
- process.env[`${prefix}BUILD_DIR`] = _chunkAJHJILKVcjs.correctPaths.call(void 0, config.directories.build);
595
+ process.env[`${prefix}BUILD_DIR`] = _chunk2G7S4JNPcjs.correctPaths.call(void 0, config.directories.build);
596
596
  process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
597
597
  }
598
598
  }
@@ -647,8 +647,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config
647
647
  if (config.logLevel) {
648
648
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
649
649
  process.env.LOG_LEVEL = String(config.logLevel);
650
- process.env.NX_VERBOSE_LOGGING = String(_chunkAJHJILKVcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkAJHJILKVcjs.LogLevel.DEBUG ? true : false);
651
- process.env.RUST_BACKTRACE = _chunkAJHJILKVcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkAJHJILKVcjs.LogLevel.DEBUG ? "full" : "none";
650
+ process.env.NX_VERBOSE_LOGGING = String(_chunk2G7S4JNPcjs.getLogLevel.call(void 0, config.logLevel) >= _chunk2G7S4JNPcjs.LogLevel.DEBUG ? true : false);
651
+ process.env.RUST_BACKTRACE = _chunk2G7S4JNPcjs.getLogLevel.call(void 0, config.logLevel) >= _chunk2G7S4JNPcjs.LogLevel.DEBUG ? "full" : "none";
652
652
  }
653
653
  if (config.skipConfigLogging !== void 0) {
654
654
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
@@ -761,22 +761,27 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(v
761
761
  // ../config-tools/src/create-storm-config.ts
762
762
  var _extension_cache = /* @__PURE__ */ new WeakMap();
763
763
  var _static_cache = void 0;
764
- var createStormWorkspaceConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false) => {
764
+ var createStormWorkspaceConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
765
765
  let result;
766
766
  if (!_optionalChain([_static_cache, 'optionalAccess', _52 => _52.data]) || !_optionalChain([_static_cache, 'optionalAccess', _53 => _53.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
767
767
  let _workspaceRoot = workspaceRoot;
768
768
  if (!_workspaceRoot) {
769
- _workspaceRoot = _chunkAJHJILKVcjs.findWorkspaceRoot.call(void 0, );
769
+ _workspaceRoot = _chunk2G7S4JNPcjs.findWorkspaceRoot.call(void 0, );
770
770
  }
771
771
  const configEnv = getConfigEnv();
772
- const defaultConfig = await _chunkAJHJILKVcjs.getDefaultConfig.call(void 0, _workspaceRoot);
773
772
  const configFile = await getConfigFile(_workspaceRoot);
774
- if (!configFile && !skipLogs) {
775
- _chunkAJHJILKVcjs.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", {
776
- logLevel: "all"
777
- });
773
+ if (!configFile) {
774
+ if (!skipLogs) {
775
+ _chunk2G7S4JNPcjs.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", {
776
+ logLevel: "all"
777
+ });
778
+ }
779
+ if (useDefault === false) {
780
+ return void 0;
781
+ }
778
782
  }
779
- result = await _chunkAJHJILKVcjs.stormWorkspaceConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
783
+ const defaultConfig = await _chunk2G7S4JNPcjs.getDefaultConfig.call(void 0, _workspaceRoot);
784
+ result = await _chunk2G7S4JNPcjs.stormWorkspaceConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
780
785
  result.workspaceRoot ??= _workspaceRoot;
781
786
  } else {
782
787
  result = _static_cache.data;
@@ -808,11 +813,11 @@ var createConfigExtension = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0
808
813
  return extension;
809
814
  }, "createConfigExtension");
810
815
  var loadStormWorkspaceConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
811
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
816
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
812
817
  setConfigEnv(config);
813
818
  if (!skipLogs && !config.skipConfigLogging) {
814
- _chunkAJHJILKVcjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
815
- ${_chunkAJHJILKVcjs.formatLogMessage.call(void 0, config)}`, config);
819
+ _chunk2G7S4JNPcjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
820
+ ${_chunk2G7S4JNPcjs.formatLogMessage.call(void 0, config)}`, config);
816
821
  }
817
822
  return config;
818
823
  }, "loadStormWorkspaceConfig");
@@ -825,7 +830,7 @@ var getConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (workspace
825
830
  // ../build-tools/src/utilities/get-entry-points.ts
826
831
 
827
832
  var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
828
- const workspaceRoot = config.workspaceRoot || _chunkAJHJILKVcjs.findWorkspaceRoot.call(void 0, );
833
+ const workspaceRoot = config.workspaceRoot || _chunk2G7S4JNPcjs.findWorkspaceRoot.call(void 0, );
829
834
  const entryPoints = [];
830
835
  if (entry) {
831
836
  if (typeof entry === "string") {
@@ -837,7 +842,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
837
842
  }
838
843
  }
839
844
  if (emitOnAll) {
840
- entryPoints.push(_chunkAJHJILKVcjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
845
+ entryPoints.push(_chunk2G7S4JNPcjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
841
846
  }
842
847
  const results = await Promise.all(entryPoints.map(async (entryPoint) => {
843
848
  const paths = [];
@@ -849,9 +854,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
849
854
  ]
850
855
  });
851
856
  paths.push(...files.reduce((ret, filePath) => {
852
- const result = _chunkAJHJILKVcjs.correctPaths.call(void 0, _chunkAJHJILKVcjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkAJHJILKVcjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkAJHJILKVcjs.correctPaths.call(void 0, projectRoot), ""));
857
+ const result = _chunk2G7S4JNPcjs.correctPaths.call(void 0, _chunk2G7S4JNPcjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunk2G7S4JNPcjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunk2G7S4JNPcjs.correctPaths.call(void 0, projectRoot), ""));
853
858
  if (result) {
854
- _chunkAJHJILKVcjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkAJHJILKVcjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
859
+ _chunk2G7S4JNPcjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunk2G7S4JNPcjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
855
860
  if (!paths.includes(result)) {
856
861
  paths.push(result);
857
862
  }
@@ -859,7 +864,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
859
864
  return ret;
860
865
  }, []));
861
866
  } else {
862
- _chunkAJHJILKVcjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
867
+ _chunk2G7S4JNPcjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
863
868
  if (!paths.includes(entryPoint)) {
864
869
  paths.push(entryPoint);
865
870
  }
@@ -910,12 +915,12 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
910
915
  throw new Error("Cannot find Nx workspace root");
911
916
  }
912
917
  const config = await getConfig(workspaceRoot.dir);
913
- _chunkAJHJILKVcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
914
- const stopwatch = _chunkAJHJILKVcjs.getStopwatch.call(void 0, "Build options resolution");
918
+ _chunk2G7S4JNPcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
919
+ const stopwatch = _chunk2G7S4JNPcjs.getStopwatch.call(void 0, "Build options resolution");
915
920
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
916
921
  exitOnError: true
917
922
  });
918
- const projectJsonPath = _chunkAJHJILKVcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
923
+ const projectJsonPath = _chunk2G7S4JNPcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
919
924
  if (!_fs.existsSync.call(void 0, projectJsonPath)) {
920
925
  throw new Error("Cannot find project.json configuration");
921
926
  }
@@ -929,7 +934,7 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
929
934
  const options = _defu2.default.call(void 0, userOptions, _chunkDEWYQH4Bcjs.DEFAULT_BUILD_OPTIONS);
930
935
  options.name ??= `${projectName}-${options.format}`;
931
936
  options.target ??= DEFAULT_TARGET;
932
- const packageJsonPath = _chunkAJHJILKVcjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
937
+ const packageJsonPath = _chunk2G7S4JNPcjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
933
938
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
934
939
  throw new Error("Cannot find package.json configuration");
935
940
  }
@@ -938,20 +943,20 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
938
943
  ...options,
939
944
  config,
940
945
  ...userOptions,
941
- tsconfig: _chunkAJHJILKVcjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
946
+ tsconfig: _chunk2G7S4JNPcjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
942
947
  format: options.format || "cjs",
943
948
  entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
944
949
  "./src/index.ts"
945
950
  ], userOptions.emitOnAll),
946
- outdir: userOptions.outputPath || _chunkAJHJILKVcjs.joinPaths.call(void 0, "dist", projectRoot),
951
+ outdir: userOptions.outputPath || _chunk2G7S4JNPcjs.joinPaths.call(void 0, "dist", projectRoot),
947
952
  plugins: [],
948
953
  name: userOptions.name || projectName,
949
954
  projectConfigurations,
950
955
  projectName,
951
956
  projectGraph,
952
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkAJHJILKVcjs.joinPaths.call(void 0, projectRoot, "src"),
957
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunk2G7S4JNPcjs.joinPaths.call(void 0, projectRoot, "src"),
953
958
  minify: userOptions.minify || !userOptions.debug,
954
- verbose: userOptions.verbose || _chunkAJHJILKVcjs.isVerbose.call(void 0, ) || userOptions.debug === true,
959
+ verbose: userOptions.verbose || _chunk2G7S4JNPcjs.isVerbose.call(void 0, ) || userOptions.debug === true,
955
960
  includeSrc: userOptions.includeSrc === true,
956
961
  metafile: userOptions.metafile !== false,
957
962
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -985,14 +990,14 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
985
990
  return result;
986
991
  }, "resolveOptions");
987
992
  async function generatePackageJson(options) {
988
- if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkAJHJILKVcjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
989
- _chunkAJHJILKVcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
990
- const stopwatch = _chunkAJHJILKVcjs.getStopwatch.call(void 0, "Write package.json file");
991
- const packageJsonPath = _chunkAJHJILKVcjs.joinPaths.call(void 0, options.projectRoot, "project.json");
993
+ if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunk2G7S4JNPcjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
994
+ _chunk2G7S4JNPcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
995
+ const stopwatch = _chunk2G7S4JNPcjs.getStopwatch.call(void 0, "Write package.json file");
996
+ const packageJsonPath = _chunk2G7S4JNPcjs.joinPaths.call(void 0, options.projectRoot, "project.json");
992
997
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
993
998
  throw new Error("Cannot find package.json configuration");
994
999
  }
995
- const packageJsonFile = await _promises2.default.readFile(_chunkAJHJILKVcjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
1000
+ const packageJsonFile = await _promises2.default.readFile(_chunk2G7S4JNPcjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
996
1001
  if (!packageJsonFile) {
997
1002
  throw new Error("Cannot find package.json configuration file");
998
1003
  }
@@ -1031,15 +1036,15 @@ async function generatePackageJson(options) {
1031
1036
  }
1032
1037
  return ret;
1033
1038
  }, packageJson.exports);
1034
- await _devkit.writeJsonFile.call(void 0, _chunkAJHJILKVcjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
1039
+ await _devkit.writeJsonFile.call(void 0, _chunk2G7S4JNPcjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
1035
1040
  stopwatch();
1036
1041
  }
1037
1042
  return options;
1038
1043
  }
1039
1044
  _chunkUSNT2KNTcjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
1040
1045
  async function executeTSDown(options) {
1041
- _chunkAJHJILKVcjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
1042
- const stopwatch = _chunkAJHJILKVcjs.getStopwatch.call(void 0, `${options.name} build`);
1046
+ _chunk2G7S4JNPcjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
1047
+ const stopwatch = _chunk2G7S4JNPcjs.getStopwatch.call(void 0, `${options.name} build`);
1043
1048
  await _tsdown.build.call(void 0, {
1044
1049
  ...options,
1045
1050
  entry: options.entryPoints,
@@ -1051,30 +1056,30 @@ async function executeTSDown(options) {
1051
1056
  }
1052
1057
  _chunkUSNT2KNTcjs.__name.call(void 0, executeTSDown, "executeTSDown");
1053
1058
  async function copyBuildAssets(options) {
1054
- _chunkAJHJILKVcjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
1055
- const stopwatch = _chunkAJHJILKVcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1059
+ _chunk2G7S4JNPcjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
1060
+ const stopwatch = _chunk2G7S4JNPcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1056
1061
  await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.sourceRoot, true, false);
1057
1062
  stopwatch();
1058
1063
  return options;
1059
1064
  }
1060
1065
  _chunkUSNT2KNTcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
1061
1066
  async function reportResults(options) {
1062
- _chunkAJHJILKVcjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
1067
+ _chunk2G7S4JNPcjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
1063
1068
  }
1064
1069
  _chunkUSNT2KNTcjs.__name.call(void 0, reportResults, "reportResults");
1065
1070
  async function cleanOutputPath(options) {
1066
1071
  if (options.clean !== false && options.outdir) {
1067
- _chunkAJHJILKVcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
1068
- const stopwatch = _chunkAJHJILKVcjs.getStopwatch.call(void 0, `${options.name} output clean`);
1069
- await _chunkAJHJILKVcjs.cleanDirectories.call(void 0, options.name, options.outdir, options.config);
1072
+ _chunk2G7S4JNPcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
1073
+ const stopwatch = _chunk2G7S4JNPcjs.getStopwatch.call(void 0, `${options.name} output clean`);
1074
+ await _chunk2G7S4JNPcjs.cleanDirectories.call(void 0, options.name, options.outdir, options.config);
1070
1075
  stopwatch();
1071
1076
  }
1072
1077
  return options;
1073
1078
  }
1074
1079
  _chunkUSNT2KNTcjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
1075
1080
  async function build(options) {
1076
- _chunkAJHJILKVcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
1077
- const stopwatch = _chunkAJHJILKVcjs.getStopwatch.call(void 0, "TSDown pipeline");
1081
+ _chunk2G7S4JNPcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
1082
+ const stopwatch = _chunk2G7S4JNPcjs.getStopwatch.call(void 0, "TSDown pipeline");
1078
1083
  try {
1079
1084
  const opts = Array.isArray(options) ? options : [
1080
1085
  options
@@ -1092,11 +1097,11 @@ async function build(options) {
1092
1097
  await reportResults(opt);
1093
1098
  }));
1094
1099
  } else {
1095
- _chunkAJHJILKVcjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
1100
+ _chunk2G7S4JNPcjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
1096
1101
  }
1097
- _chunkAJHJILKVcjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
1102
+ _chunk2G7S4JNPcjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
1098
1103
  } catch (error) {
1099
- _chunkAJHJILKVcjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
1104
+ _chunk2G7S4JNPcjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
1100
1105
  throw error;
1101
1106
  } finally {
1102
1107
  stopwatch();
@@ -20,7 +20,7 @@ import {
20
20
  writeSuccess,
21
21
  writeTrace,
22
22
  writeWarning
23
- } from "./chunk-GWJBIASO.js";
23
+ } from "./chunk-2WT22RMQ.js";
24
24
  import {
25
25
  DEFAULT_BUILD_OPTIONS
26
26
  } from "./chunk-PR5HLZXS.js";
@@ -157,7 +157,7 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot, projec
157
157
  }, packageJson.dependencies ?? {});
158
158
  packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
159
159
  if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name) && packageJson.dependencies?.[localPackage.name] === void 0) {
160
- ret[localPackage.name] = localPackage.version || "0.0.1";
160
+ ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
161
161
  }
162
162
  return ret;
163
163
  }, packageJson.devDependencies ?? {});
@@ -287,7 +287,7 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
287
287
  }
288
288
  }
289
289
  }
290
- if (!config) {
290
+ if (!config || Object.keys(config).length === 0) {
291
291
  return void 0;
292
292
  }
293
293
  config.configFile = configFile;
@@ -761,7 +761,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
761
761
  // ../config-tools/src/create-storm-config.ts
762
762
  var _extension_cache = /* @__PURE__ */ new WeakMap();
763
763
  var _static_cache = void 0;
764
- var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
764
+ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
765
765
  let result;
766
766
  if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
767
767
  let _workspaceRoot = workspaceRoot;
@@ -769,13 +769,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, sc
769
769
  _workspaceRoot = findWorkspaceRoot();
770
770
  }
771
771
  const configEnv = getConfigEnv();
772
- const defaultConfig = await getDefaultConfig(_workspaceRoot);
773
772
  const configFile = await getConfigFile(_workspaceRoot);
774
- if (!configFile && !skipLogs) {
775
- writeWarning("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", {
776
- logLevel: "all"
777
- });
773
+ if (!configFile) {
774
+ if (!skipLogs) {
775
+ writeWarning("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", {
776
+ logLevel: "all"
777
+ });
778
+ }
779
+ if (useDefault === false) {
780
+ return void 0;
781
+ }
778
782
  }
783
+ const defaultConfig = await getDefaultConfig(_workspaceRoot);
779
784
  result = await stormWorkspaceConfigSchema.parseAsync(defu2(configEnv, configFile, defaultConfig));
780
785
  result.workspaceRoot ??= _workspaceRoot;
781
786
  } else {
@@ -808,7 +813,7 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
808
813
  return extension;
809
814
  }, "createConfigExtension");
810
815
  var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
811
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
816
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
812
817
  setConfigEnv(config);
813
818
  if (!skipLogs && !config.skipConfigLogging) {
814
819
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
package/dist/clean.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkAJHJILKVcjs = require('./chunk-AJHJILKV.cjs');
4
+ var _chunk2G7S4JNPcjs = require('./chunk-2G7S4JNP.cjs');
5
5
  require('./chunk-USNT2KNT.cjs');
6
6
 
7
7
 
8
8
 
9
- exports.clean = _chunkAJHJILKVcjs.clean; exports.cleanDirectories = _chunkAJHJILKVcjs.cleanDirectories;
9
+ exports.clean = _chunk2G7S4JNPcjs.clean; exports.cleanDirectories = _chunk2G7S4JNPcjs.cleanDirectories;
package/dist/clean.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  clean,
3
3
  cleanDirectories
4
- } from "./chunk-GWJBIASO.js";
4
+ } from "./chunk-2WT22RMQ.js";
5
5
  import "./chunk-SHUYVCID.js";
6
6
  export {
7
7
  clean,
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk654FE4TEcjs = require('./chunk-654FE4TE.cjs');
4
+ var _chunkR34YFAQ2cjs = require('./chunk-R34YFAQ2.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkAJHJILKVcjs = require('./chunk-AJHJILKV.cjs');
8
+ var _chunk2G7S4JNPcjs = require('./chunk-2G7S4JNP.cjs');
9
9
 
10
10
 
11
11
  var _chunkDEWYQH4Bcjs = require('./chunk-DEWYQH4B.cjs');
@@ -17,4 +17,4 @@ require('./chunk-SFZRYJZ2.cjs');
17
17
 
18
18
 
19
19
 
20
- exports.DEFAULT_BUILD_OPTIONS = _chunkDEWYQH4Bcjs.DEFAULT_BUILD_OPTIONS; exports.build = _chunk654FE4TEcjs.build; exports.clean = _chunkAJHJILKVcjs.clean; exports.cleanDirectories = _chunkAJHJILKVcjs.cleanDirectories; exports.cleanOutputPath = _chunk654FE4TEcjs.cleanOutputPath;
20
+ exports.DEFAULT_BUILD_OPTIONS = _chunkDEWYQH4Bcjs.DEFAULT_BUILD_OPTIONS; exports.build = _chunkR34YFAQ2cjs.build; exports.clean = _chunk2G7S4JNPcjs.clean; exports.cleanDirectories = _chunk2G7S4JNPcjs.cleanDirectories; exports.cleanOutputPath = _chunkR34YFAQ2cjs.cleanOutputPath;
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-OEMY5TOL.js";
4
+ } from "./chunk-S64HKBEP.js";
5
5
  import {
6
6
  clean,
7
7
  cleanDirectories
8
- } from "./chunk-GWJBIASO.js";
8
+ } from "./chunk-2WT22RMQ.js";
9
9
  import {
10
10
  DEFAULT_BUILD_OPTIONS
11
11
  } from "./chunk-PR5HLZXS.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/tsdown",
3
- "version": "0.27.34",
3
+ "version": "0.28.2",
4
4
  "type": "module",
5
5
  "description": "A package containing `tsdown` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -164,7 +164,7 @@
164
164
  "nx": "20.8.0",
165
165
  "rolldown": "1.0.0-beta.1",
166
166
  "source-map": "0.7.4",
167
- "tsup": "8.3.5"
167
+ "tsup": "8.4.0"
168
168
  },
169
169
  "devDependencies": {
170
170
  "@microsoft/api-extractor": "^7.48.1",