@storm-software/unbuild 0.39.15 → 0.40.0

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.39.14-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.39.16-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
@@ -185,7 +185,7 @@ var stormWorkspaceConfigSchema = import_zod.default.object({
185
185
  "staging",
186
186
  "production"
187
187
  ]).default("production").describe("The current runtime environment mode for the package"),
188
- workspaceRoot: import_zod.default.string().trim().default("").describe("The root directory of the workspace"),
188
+ workspaceRoot: import_zod.default.string().trim().describe("The root directory of the workspace"),
189
189
  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"),
190
190
  skipCache: import_zod.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
191
191
  directories: WorkspaceDirectoryConfigSchema,
@@ -860,7 +860,7 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
860
860
  }
861
861
  }
862
862
  }
863
- if (!config) {
863
+ if (!config || Object.keys(config).length === 0) {
864
864
  return void 0;
865
865
  }
866
866
  config.configFile = configFile;
@@ -918,12 +918,12 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
918
918
  configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
919
919
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
920
920
  directories: {
921
- cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : void 0,
922
- data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : void 0,
923
- config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : void 0,
924
- temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : void 0,
925
- log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : void 0,
926
- build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
921
+ cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
922
+ data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? correctPaths(process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
923
+ config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? correctPaths(process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
924
+ temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? correctPaths(process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
925
+ log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? correctPaths(process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
926
+ build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? correctPaths(process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
927
927
  },
928
928
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
929
929
  mode: (process.env[`${prefix}MODE`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
@@ -1143,21 +1143,27 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
1143
1143
  if (config.directories) {
1144
1144
  if (!config.skipCache && config.directories.cache) {
1145
1145
  process.env[`${prefix}CACHE_DIR`] = correctPaths(config.directories.cache);
1146
+ process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
1146
1147
  }
1147
1148
  if (config.directories.data) {
1148
1149
  process.env[`${prefix}DATA_DIR`] = correctPaths(config.directories.data);
1150
+ process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
1149
1151
  }
1150
1152
  if (config.directories.config) {
1151
1153
  process.env[`${prefix}CONFIG_DIR`] = correctPaths(config.directories.config);
1154
+ process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
1152
1155
  }
1153
1156
  if (config.directories.temp) {
1154
1157
  process.env[`${prefix}TEMP_DIR`] = correctPaths(config.directories.temp);
1158
+ process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
1155
1159
  }
1156
1160
  if (config.directories.log) {
1157
1161
  process.env[`${prefix}LOG_DIR`] = correctPaths(config.directories.log);
1162
+ process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
1158
1163
  }
1159
1164
  if (config.directories.build) {
1160
1165
  process.env[`${prefix}BUILD_DIR`] = correctPaths(config.directories.build);
1166
+ process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
1161
1167
  }
1162
1168
  }
1163
1169
  if (config.skipCache !== void 0) {
@@ -1325,7 +1331,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
1325
1331
  // ../config-tools/src/create-storm-config.ts
1326
1332
  var _extension_cache = /* @__PURE__ */ new WeakMap();
1327
1333
  var _static_cache = void 0;
1328
- var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
1334
+ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
1329
1335
  let result;
1330
1336
  if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
1331
1337
  let _workspaceRoot = workspaceRoot;
@@ -1333,13 +1339,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, sc
1333
1339
  _workspaceRoot = findWorkspaceRoot();
1334
1340
  }
1335
1341
  const configEnv = getConfigEnv();
1336
- const defaultConfig = await getDefaultConfig(_workspaceRoot);
1337
1342
  const configFile = await getConfigFile(_workspaceRoot);
1338
- if (!configFile && !skipLogs) {
1339
- 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", {
1340
- logLevel: "all"
1341
- });
1343
+ if (!configFile) {
1344
+ if (!skipLogs) {
1345
+ 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", {
1346
+ logLevel: "all"
1347
+ });
1348
+ }
1349
+ if (useDefault === false) {
1350
+ return void 0;
1351
+ }
1342
1352
  }
1353
+ const defaultConfig = await getDefaultConfig(_workspaceRoot);
1343
1354
  result = await stormWorkspaceConfigSchema.parseAsync((0, import_defu2.default)(configEnv, configFile, defaultConfig));
1344
1355
  result.workspaceRoot ??= _workspaceRoot;
1345
1356
  } else {
@@ -1372,7 +1383,7 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
1372
1383
  return extension;
1373
1384
  }, "createConfigExtension");
1374
1385
  var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
1375
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
1386
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
1376
1387
  setConfigEnv(config);
1377
1388
  if (!skipLogs && !config.skipConfigLogging) {
1378
1389
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
@@ -1780,7 +1791,7 @@ async function resolveOptions(options, config) {
1780
1791
  builder: "mkdist",
1781
1792
  input: `./${entryPath}`,
1782
1793
  outDir,
1783
- declaration: options.emitTypes !== false ? "compatible" : false,
1794
+ declaration: options.dts !== false ? "compatible" : false,
1784
1795
  format: "esm",
1785
1796
  ext: "mjs"
1786
1797
  });
@@ -1789,13 +1800,13 @@ async function resolveOptions(options, config) {
1789
1800
  builder: "mkdist",
1790
1801
  input: `./${entryPath}`,
1791
1802
  outDir,
1792
- declaration: options.emitTypes !== false ? "compatible" : false,
1803
+ declaration: options.dts !== false ? "compatible" : false,
1793
1804
  format: "cjs",
1794
1805
  ext: "cjs"
1795
1806
  });
1796
1807
  return ret;
1797
1808
  }, []),
1798
- declaration: options.emitTypes !== false ? "compatible" : false,
1809
+ declaration: options.dts !== false ? "compatible" : false,
1799
1810
  failOnWarn: false,
1800
1811
  sourcemap: options.sourcemap ?? !!options.debug,
1801
1812
  outDir: outputPath,
@@ -2135,10 +2146,10 @@ async function createProgram(config) {
2135
2146
  const minifyOption = new import_commander.Option("--minify", "Should the output be minified").default(true);
2136
2147
  const includeSrcOption = new import_commander.Option("--include-src", "Should the source files be included in the output").default(false);
2137
2148
  const verboseOption = new import_commander.Option("--verbose", "Should the build process be verbose").default(false);
2138
- const emitTypesOption = new import_commander.Option("--emit-types", "Should types be emitted for the output").default(true);
2149
+ const dtsOption = new import_commander.Option("--emit-types", "Should types be emitted for the output").default(true);
2139
2150
  program.command("build", {
2140
2151
  isDefault: true
2141
- }).alias("bundle").description("Run a TypeScript build using Unbuild.").addOption(nameOption).addOption(projectRootOption).addOption(sourceRootOption).addOption(outputPathOption).addOption(platformOption).addOption(formatOption).addOption(targetOption).addOption(bundleOption).addOption(noBundleOption).addOption(cleanOption).addOption(noCleanOption).addOption(watchOption).addOption(debugOption).addOption(bannerOption).addOption(footerOption).addOption(splittingOption).addOption(treeShakingOption).addOption(generatePackageJsonOption).addOption(emitOnAllOption).addOption(metafileOption).addOption(minifyOption).addOption(includeSrcOption).addOption(verboseOption).addOption(emitTypesOption).action(buildAction(config));
2152
+ }).alias("bundle").description("Run a TypeScript build using Unbuild.").addOption(nameOption).addOption(projectRootOption).addOption(sourceRootOption).addOption(outputPathOption).addOption(platformOption).addOption(formatOption).addOption(targetOption).addOption(bundleOption).addOption(noBundleOption).addOption(cleanOption).addOption(noCleanOption).addOption(watchOption).addOption(debugOption).addOption(bannerOption).addOption(footerOption).addOption(splittingOption).addOption(treeShakingOption).addOption(generatePackageJsonOption).addOption(emitOnAllOption).addOption(metafileOption).addOption(minifyOption).addOption(includeSrcOption).addOption(verboseOption).addOption(dtsOption).action(buildAction(config));
2142
2153
  program.command("clean").alias("clear").description("Clean the output directory of the project. This command will remove the 'dist' folder.").addOption(nameOption).action(cleanAction(config));
2143
2154
  return program;
2144
2155
  } catch (e) {
package/bin/unbuild.js CHANGED
@@ -164,7 +164,7 @@ var stormWorkspaceConfigSchema = z.object({
164
164
  "staging",
165
165
  "production"
166
166
  ]).default("production").describe("The current runtime environment mode for the package"),
167
- workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
167
+ workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
168
168
  externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
169
169
  skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
170
170
  directories: WorkspaceDirectoryConfigSchema,
@@ -839,7 +839,7 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
839
839
  }
840
840
  }
841
841
  }
842
- if (!config) {
842
+ if (!config || Object.keys(config).length === 0) {
843
843
  return void 0;
844
844
  }
845
845
  config.configFile = configFile;
@@ -897,12 +897,12 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
897
897
  configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
898
898
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
899
899
  directories: {
900
- cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : void 0,
901
- data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : void 0,
902
- config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : void 0,
903
- temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : void 0,
904
- log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : void 0,
905
- build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
900
+ cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
901
+ data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? correctPaths(process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
902
+ config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? correctPaths(process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
903
+ temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? correctPaths(process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
904
+ log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? correctPaths(process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
905
+ build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? correctPaths(process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
906
906
  },
907
907
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
908
908
  mode: (process.env[`${prefix}MODE`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
@@ -1122,21 +1122,27 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
1122
1122
  if (config.directories) {
1123
1123
  if (!config.skipCache && config.directories.cache) {
1124
1124
  process.env[`${prefix}CACHE_DIR`] = correctPaths(config.directories.cache);
1125
+ process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
1125
1126
  }
1126
1127
  if (config.directories.data) {
1127
1128
  process.env[`${prefix}DATA_DIR`] = correctPaths(config.directories.data);
1129
+ process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
1128
1130
  }
1129
1131
  if (config.directories.config) {
1130
1132
  process.env[`${prefix}CONFIG_DIR`] = correctPaths(config.directories.config);
1133
+ process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
1131
1134
  }
1132
1135
  if (config.directories.temp) {
1133
1136
  process.env[`${prefix}TEMP_DIR`] = correctPaths(config.directories.temp);
1137
+ process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
1134
1138
  }
1135
1139
  if (config.directories.log) {
1136
1140
  process.env[`${prefix}LOG_DIR`] = correctPaths(config.directories.log);
1141
+ process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
1137
1142
  }
1138
1143
  if (config.directories.build) {
1139
1144
  process.env[`${prefix}BUILD_DIR`] = correctPaths(config.directories.build);
1145
+ process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
1140
1146
  }
1141
1147
  }
1142
1148
  if (config.skipCache !== void 0) {
@@ -1304,7 +1310,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
1304
1310
  // ../config-tools/src/create-storm-config.ts
1305
1311
  var _extension_cache = /* @__PURE__ */ new WeakMap();
1306
1312
  var _static_cache = void 0;
1307
- var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
1313
+ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
1308
1314
  let result;
1309
1315
  if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
1310
1316
  let _workspaceRoot = workspaceRoot;
@@ -1312,13 +1318,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, sc
1312
1318
  _workspaceRoot = findWorkspaceRoot();
1313
1319
  }
1314
1320
  const configEnv = getConfigEnv();
1315
- const defaultConfig = await getDefaultConfig(_workspaceRoot);
1316
1321
  const configFile = await getConfigFile(_workspaceRoot);
1317
- if (!configFile && !skipLogs) {
1318
- 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", {
1319
- logLevel: "all"
1320
- });
1322
+ if (!configFile) {
1323
+ if (!skipLogs) {
1324
+ 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", {
1325
+ logLevel: "all"
1326
+ });
1327
+ }
1328
+ if (useDefault === false) {
1329
+ return void 0;
1330
+ }
1321
1331
  }
1332
+ const defaultConfig = await getDefaultConfig(_workspaceRoot);
1322
1333
  result = await stormWorkspaceConfigSchema.parseAsync(defu2(configEnv, configFile, defaultConfig));
1323
1334
  result.workspaceRoot ??= _workspaceRoot;
1324
1335
  } else {
@@ -1351,7 +1362,7 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
1351
1362
  return extension;
1352
1363
  }, "createConfigExtension");
1353
1364
  var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
1354
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
1365
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
1355
1366
  setConfigEnv(config);
1356
1367
  if (!skipLogs && !config.skipConfigLogging) {
1357
1368
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
@@ -1759,7 +1770,7 @@ async function resolveOptions(options, config) {
1759
1770
  builder: "mkdist",
1760
1771
  input: `./${entryPath}`,
1761
1772
  outDir,
1762
- declaration: options.emitTypes !== false ? "compatible" : false,
1773
+ declaration: options.dts !== false ? "compatible" : false,
1763
1774
  format: "esm",
1764
1775
  ext: "mjs"
1765
1776
  });
@@ -1768,13 +1779,13 @@ async function resolveOptions(options, config) {
1768
1779
  builder: "mkdist",
1769
1780
  input: `./${entryPath}`,
1770
1781
  outDir,
1771
- declaration: options.emitTypes !== false ? "compatible" : false,
1782
+ declaration: options.dts !== false ? "compatible" : false,
1772
1783
  format: "cjs",
1773
1784
  ext: "cjs"
1774
1785
  });
1775
1786
  return ret;
1776
1787
  }, []),
1777
- declaration: options.emitTypes !== false ? "compatible" : false,
1788
+ declaration: options.dts !== false ? "compatible" : false,
1778
1789
  failOnWarn: false,
1779
1790
  sourcemap: options.sourcemap ?? !!options.debug,
1780
1791
  outDir: outputPath,
@@ -2114,10 +2125,10 @@ async function createProgram(config) {
2114
2125
  const minifyOption = new Option("--minify", "Should the output be minified").default(true);
2115
2126
  const includeSrcOption = new Option("--include-src", "Should the source files be included in the output").default(false);
2116
2127
  const verboseOption = new Option("--verbose", "Should the build process be verbose").default(false);
2117
- const emitTypesOption = new Option("--emit-types", "Should types be emitted for the output").default(true);
2128
+ const dtsOption = new Option("--emit-types", "Should types be emitted for the output").default(true);
2118
2129
  program.command("build", {
2119
2130
  isDefault: true
2120
- }).alias("bundle").description("Run a TypeScript build using Unbuild.").addOption(nameOption).addOption(projectRootOption).addOption(sourceRootOption).addOption(outputPathOption).addOption(platformOption).addOption(formatOption).addOption(targetOption).addOption(bundleOption).addOption(noBundleOption).addOption(cleanOption).addOption(noCleanOption).addOption(watchOption).addOption(debugOption).addOption(bannerOption).addOption(footerOption).addOption(splittingOption).addOption(treeShakingOption).addOption(generatePackageJsonOption).addOption(emitOnAllOption).addOption(metafileOption).addOption(minifyOption).addOption(includeSrcOption).addOption(verboseOption).addOption(emitTypesOption).action(buildAction(config));
2131
+ }).alias("bundle").description("Run a TypeScript build using Unbuild.").addOption(nameOption).addOption(projectRootOption).addOption(sourceRootOption).addOption(outputPathOption).addOption(platformOption).addOption(formatOption).addOption(targetOption).addOption(bundleOption).addOption(noBundleOption).addOption(cleanOption).addOption(noCleanOption).addOption(watchOption).addOption(debugOption).addOption(bannerOption).addOption(footerOption).addOption(splittingOption).addOption(treeShakingOption).addOption(generatePackageJsonOption).addOption(emitOnAllOption).addOption(metafileOption).addOption(minifyOption).addOption(includeSrcOption).addOption(verboseOption).addOption(dtsOption).action(buildAction(config));
2121
2132
  program.command("clean").alias("clear").description("Clean the output directory of the project. This command will remove the 'dist' folder.").addOption(nameOption).action(cleanAction(config));
2122
2133
  return program;
2123
2134
  } catch (e) {
package/dist/build.cjs CHANGED
@@ -5,12 +5,12 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkZBIYPMJMcjs = require('./chunk-ZBIYPMJM.cjs');
9
- require('./chunk-3VWVLTGD.cjs');
10
- require('./chunk-7AESM4QF.cjs');
11
- require('./chunk-MNQGUEQ7.cjs');
12
- require('./chunk-HEBZFJ2N.cjs');
13
- require('./chunk-OFV7JN7O.cjs');
8
+ var _chunkYIDTYRQYcjs = require('./chunk-YIDTYRQY.cjs');
9
+ require('./chunk-ITHOVA3D.cjs');
10
+ require('./chunk-3BXXHK3F.cjs');
11
+ require('./chunk-F4MPFQDI.cjs');
12
+ require('./chunk-NVI74UAF.cjs');
13
+ require('./chunk-PWE7CANF.cjs');
14
14
  require('./chunk-BGYQAVKQ.cjs');
15
15
 
16
16
 
@@ -19,4 +19,4 @@ require('./chunk-BGYQAVKQ.cjs');
19
19
 
20
20
 
21
21
 
22
- exports.build = _chunkZBIYPMJMcjs.build; exports.cleanOutputPath = _chunkZBIYPMJMcjs.cleanOutputPath; exports.copyBuildAssets = _chunkZBIYPMJMcjs.copyBuildAssets; exports.executeUnbuild = _chunkZBIYPMJMcjs.executeUnbuild; exports.generatePackageJson = _chunkZBIYPMJMcjs.generatePackageJson; exports.resolveOptions = _chunkZBIYPMJMcjs.resolveOptions;
22
+ exports.build = _chunkYIDTYRQYcjs.build; exports.cleanOutputPath = _chunkYIDTYRQYcjs.cleanOutputPath; exports.copyBuildAssets = _chunkYIDTYRQYcjs.copyBuildAssets; exports.executeUnbuild = _chunkYIDTYRQYcjs.executeUnbuild; exports.generatePackageJson = _chunkYIDTYRQYcjs.generatePackageJson; exports.resolveOptions = _chunkYIDTYRQYcjs.resolveOptions;
package/dist/build.js CHANGED
@@ -5,12 +5,12 @@ import {
5
5
  executeUnbuild,
6
6
  generatePackageJson,
7
7
  resolveOptions
8
- } from "./chunk-QM6BHE35.js";
9
- import "./chunk-M7TXTZYC.js";
10
- import "./chunk-GMQCUY6K.js";
11
- import "./chunk-4IZTCCLU.js";
12
- import "./chunk-NFAQF6SG.js";
13
- import "./chunk-ICS2FLHB.js";
8
+ } from "./chunk-J4UJGE35.js";
9
+ import "./chunk-DUDE4LYM.js";
10
+ import "./chunk-SMAV5VSP.js";
11
+ import "./chunk-HZNOKNKE.js";
12
+ import "./chunk-2PUJT7MC.js";
13
+ import "./chunk-3BDIPKMO.js";
14
14
  import "./chunk-3GQAWCBQ.js";
15
15
  export {
16
16
  build,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeTrace
3
- } from "./chunk-ICS2FLHB.js";
3
+ } from "./chunk-3BDIPKMO.js";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-3GQAWCBQ.js";
@@ -368,7 +368,7 @@ var stormWorkspaceConfigSchema = z.object({
368
368
  "staging",
369
369
  "production"
370
370
  ]).default("production").describe("The current runtime environment mode for the package"),
371
- workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
371
+ workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
372
372
  externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
373
373
  skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
374
374
  directories: WorkspaceDirectoryConfigSchema,
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkOFV7JN7Ocjs = require('./chunk-OFV7JN7O.cjs');
3
+ var _chunkPWE7CANFcjs = require('./chunk-PWE7CANF.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
- _chunkOFV7JN7Ocjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, options.config);
28
+ _chunkPWE7CANFcjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, options.config);
29
29
  }
30
30
  };
31
31
  }, "analyzePlugin");
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getStopwatch,
3
3
  writeDebug
4
- } from "./chunk-ICS2FLHB.js";
4
+ } from "./chunk-3BDIPKMO.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 _chunkOFV7JN7Ocjs = require('./chunk-OFV7JN7O.cjs');
3
+ var _chunkPWE7CANFcjs = require('./chunk-PWE7CANF.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
- _chunkOFV7JN7Ocjs.writeError.call(void 0, `The following errors occurred during the build:
13
+ _chunkPWE7CANFcjs.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
- _chunkOFV7JN7Ocjs.writeError.call(void 0, `The following errors occurred during the build:
21
+ _chunkPWE7CANFcjs.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);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeError
3
- } from "./chunk-ICS2FLHB.js";
3
+ } from "./chunk-3BDIPKMO.js";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-3GQAWCBQ.js";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOFV7JN7Ocjs = require('./chunk-OFV7JN7O.cjs');
4
+ var _chunkPWE7CANFcjs = require('./chunk-PWE7CANF.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
- _chunkOFV7JN7Ocjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
13
- const stopwatch = _chunkOFV7JN7Ocjs.getStopwatch.call(void 0, `${name} output clean`);
12
+ _chunkPWE7CANFcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
13
+ const stopwatch = _chunkPWE7CANFcjs.getStopwatch.call(void 0, `${name} output clean`);
14
14
  await cleanDirectories(name, directory, config);
15
15
  stopwatch();
16
16
  }
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  cleanDirectories
3
- } from "./chunk-M7TXTZYC.js";
3
+ } from "./chunk-DUDE4LYM.js";
4
4
  import {
5
5
  analyzePlugin
6
- } from "./chunk-GMQCUY6K.js";
6
+ } from "./chunk-SMAV5VSP.js";
7
7
  import {
8
8
  onErrorPlugin
9
- } from "./chunk-4IZTCCLU.js";
9
+ } from "./chunk-HZNOKNKE.js";
10
10
  import {
11
11
  loadConfig,
12
12
  tscPlugin
13
- } from "./chunk-NFAQF6SG.js";
13
+ } from "./chunk-2PUJT7MC.js";
14
14
  import {
15
15
  COLOR_KEYS,
16
16
  LogLevel,
@@ -33,7 +33,7 @@ import {
33
33
  writeSuccess,
34
34
  writeTrace,
35
35
  writeWarning
36
- } from "./chunk-ICS2FLHB.js";
36
+ } from "./chunk-3BDIPKMO.js";
37
37
  import {
38
38
  __name
39
39
  } from "./chunk-3GQAWCBQ.js";
@@ -274,7 +274,7 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
274
274
  }
275
275
  }
276
276
  }
277
- if (!config) {
277
+ if (!config || Object.keys(config).length === 0) {
278
278
  return void 0;
279
279
  }
280
280
  config.configFile = configFile;
@@ -335,12 +335,12 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
335
335
  configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
336
336
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
337
337
  directories: {
338
- cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : void 0,
339
- data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : void 0,
340
- config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : void 0,
341
- temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : void 0,
342
- log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : void 0,
343
- build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
338
+ cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
339
+ data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? correctPaths(process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
340
+ config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? correctPaths(process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
341
+ temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? correctPaths(process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
342
+ log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? correctPaths(process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
343
+ build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? correctPaths(process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
344
344
  },
345
345
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
346
346
  mode: (process.env[`${prefix}MODE`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
@@ -560,21 +560,27 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
560
560
  if (config.directories) {
561
561
  if (!config.skipCache && config.directories.cache) {
562
562
  process.env[`${prefix}CACHE_DIR`] = correctPaths(config.directories.cache);
563
+ process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
563
564
  }
564
565
  if (config.directories.data) {
565
566
  process.env[`${prefix}DATA_DIR`] = correctPaths(config.directories.data);
567
+ process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
566
568
  }
567
569
  if (config.directories.config) {
568
570
  process.env[`${prefix}CONFIG_DIR`] = correctPaths(config.directories.config);
571
+ process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
569
572
  }
570
573
  if (config.directories.temp) {
571
574
  process.env[`${prefix}TEMP_DIR`] = correctPaths(config.directories.temp);
575
+ process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
572
576
  }
573
577
  if (config.directories.log) {
574
578
  process.env[`${prefix}LOG_DIR`] = correctPaths(config.directories.log);
579
+ process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
575
580
  }
576
581
  if (config.directories.build) {
577
582
  process.env[`${prefix}BUILD_DIR`] = correctPaths(config.directories.build);
583
+ process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
578
584
  }
579
585
  }
580
586
  if (config.skipCache !== void 0) {
@@ -742,7 +748,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
742
748
  // ../config-tools/src/create-storm-config.ts
743
749
  var _extension_cache = /* @__PURE__ */ new WeakMap();
744
750
  var _static_cache = void 0;
745
- var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
751
+ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
746
752
  let result;
747
753
  if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
748
754
  let _workspaceRoot = workspaceRoot;
@@ -750,13 +756,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, sc
750
756
  _workspaceRoot = findWorkspaceRoot();
751
757
  }
752
758
  const configEnv = getConfigEnv();
753
- const defaultConfig = await getDefaultConfig(_workspaceRoot);
754
759
  const configFile = await getConfigFile(_workspaceRoot);
755
- if (!configFile && !skipLogs) {
756
- 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", {
757
- logLevel: "all"
758
- });
760
+ if (!configFile) {
761
+ if (!skipLogs) {
762
+ 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", {
763
+ logLevel: "all"
764
+ });
765
+ }
766
+ if (useDefault === false) {
767
+ return void 0;
768
+ }
759
769
  }
770
+ const defaultConfig = await getDefaultConfig(_workspaceRoot);
760
771
  result = await stormWorkspaceConfigSchema.parseAsync(defu2(configEnv, configFile, defaultConfig));
761
772
  result.workspaceRoot ??= _workspaceRoot;
762
773
  } else {
@@ -789,7 +800,7 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
789
800
  return extension;
790
801
  }, "createConfigExtension");
791
802
  var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
792
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
803
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
793
804
  setConfigEnv(config);
794
805
  if (!skipLogs && !config.skipConfigLogging) {
795
806
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
@@ -898,7 +909,7 @@ async function resolveOptions(options, config) {
898
909
  builder: "mkdist",
899
910
  input: `./${entryPath}`,
900
911
  outDir,
901
- declaration: options.emitTypes !== false ? "compatible" : false,
912
+ declaration: options.dts !== false ? "compatible" : false,
902
913
  format: "esm",
903
914
  ext: "mjs"
904
915
  });
@@ -907,13 +918,13 @@ async function resolveOptions(options, config) {
907
918
  builder: "mkdist",
908
919
  input: `./${entryPath}`,
909
920
  outDir,
910
- declaration: options.emitTypes !== false ? "compatible" : false,
921
+ declaration: options.dts !== false ? "compatible" : false,
911
922
  format: "cjs",
912
923
  ext: "cjs"
913
924
  });
914
925
  return ret;
915
926
  }, []),
916
- declaration: options.emitTypes !== false ? "compatible" : false,
927
+ declaration: options.dts !== false ? "compatible" : false,
917
928
  failOnWarn: false,
918
929
  sourcemap: options.sourcemap ?? !!options.debug,
919
930
  outDir: outputPath,
@@ -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 _chunkOFV7JN7Ocjs = require('./chunk-OFV7JN7O.cjs');
3
+ var _chunkPWE7CANFcjs = require('./chunk-PWE7CANF.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
- _chunkOFV7JN7Ocjs.writeTrace.call(void 0, compilerOptions, config);
35
+ _chunkPWE7CANFcjs.writeTrace.call(void 0, compilerOptions, config);
36
36
  return compilerOptions;
37
37
  }
38
38
  _chunkBGYQAVKQcjs.__name.call(void 0, createTsCompilerOptions, "createTsCompilerOptions");
@@ -368,7 +368,7 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
368
368
  "staging",
369
369
  "production"
370
370
  ]).default("production").describe("The current runtime environment mode for the package"),
371
- workspaceRoot: _zod2.default.string().trim().default("").describe("The root directory of the workspace"),
371
+ workspaceRoot: _zod2.default.string().trim().describe("The root directory of the workspace"),
372
372
  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"),
373
373
  skipCache: _zod2.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
374
374
  directories: WorkspaceDirectoryConfigSchema,