@storm-software/unbuild 0.39.14 → 0.39.16

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.13-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
@@ -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) {
@@ -1780,7 +1786,7 @@ async function resolveOptions(options, config) {
1780
1786
  builder: "mkdist",
1781
1787
  input: `./${entryPath}`,
1782
1788
  outDir,
1783
- declaration: options.emitTypes !== false ? "compatible" : false,
1789
+ declaration: options.dts !== false ? "compatible" : false,
1784
1790
  format: "esm",
1785
1791
  ext: "mjs"
1786
1792
  });
@@ -1789,13 +1795,13 @@ async function resolveOptions(options, config) {
1789
1795
  builder: "mkdist",
1790
1796
  input: `./${entryPath}`,
1791
1797
  outDir,
1792
- declaration: options.emitTypes !== false ? "compatible" : false,
1798
+ declaration: options.dts !== false ? "compatible" : false,
1793
1799
  format: "cjs",
1794
1800
  ext: "cjs"
1795
1801
  });
1796
1802
  return ret;
1797
1803
  }, []),
1798
- declaration: options.emitTypes !== false ? "compatible" : false,
1804
+ declaration: options.dts !== false ? "compatible" : false,
1799
1805
  failOnWarn: false,
1800
1806
  sourcemap: options.sourcemap ?? !!options.debug,
1801
1807
  outDir: outputPath,
@@ -2135,10 +2141,10 @@ async function createProgram(config) {
2135
2141
  const minifyOption = new import_commander.Option("--minify", "Should the output be minified").default(true);
2136
2142
  const includeSrcOption = new import_commander.Option("--include-src", "Should the source files be included in the output").default(false);
2137
2143
  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);
2144
+ const dtsOption = new import_commander.Option("--emit-types", "Should types be emitted for the output").default(true);
2139
2145
  program.command("build", {
2140
2146
  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));
2147
+ }).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
2148
  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
2149
  return program;
2144
2150
  } catch (e) {
package/bin/unbuild.js CHANGED
@@ -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) {
@@ -1759,7 +1765,7 @@ async function resolveOptions(options, config) {
1759
1765
  builder: "mkdist",
1760
1766
  input: `./${entryPath}`,
1761
1767
  outDir,
1762
- declaration: options.emitTypes !== false ? "compatible" : false,
1768
+ declaration: options.dts !== false ? "compatible" : false,
1763
1769
  format: "esm",
1764
1770
  ext: "mjs"
1765
1771
  });
@@ -1768,13 +1774,13 @@ async function resolveOptions(options, config) {
1768
1774
  builder: "mkdist",
1769
1775
  input: `./${entryPath}`,
1770
1776
  outDir,
1771
- declaration: options.emitTypes !== false ? "compatible" : false,
1777
+ declaration: options.dts !== false ? "compatible" : false,
1772
1778
  format: "cjs",
1773
1779
  ext: "cjs"
1774
1780
  });
1775
1781
  return ret;
1776
1782
  }, []),
1777
- declaration: options.emitTypes !== false ? "compatible" : false,
1783
+ declaration: options.dts !== false ? "compatible" : false,
1778
1784
  failOnWarn: false,
1779
1785
  sourcemap: options.sourcemap ?? !!options.debug,
1780
1786
  outDir: outputPath,
@@ -2114,10 +2120,10 @@ async function createProgram(config) {
2114
2120
  const minifyOption = new Option("--minify", "Should the output be minified").default(true);
2115
2121
  const includeSrcOption = new Option("--include-src", "Should the source files be included in the output").default(false);
2116
2122
  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);
2123
+ const dtsOption = new Option("--emit-types", "Should types be emitted for the output").default(true);
2118
2124
  program.command("build", {
2119
2125
  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));
2126
+ }).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
2127
  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
2128
  return program;
2123
2129
  } catch (e) {
package/dist/build.cjs CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkZBIYPMJMcjs = require('./chunk-ZBIYPMJM.cjs');
8
+ var _chunkU5NQ3CH3cjs = require('./chunk-U5NQ3CH3.cjs');
9
9
  require('./chunk-3VWVLTGD.cjs');
10
10
  require('./chunk-7AESM4QF.cjs');
11
11
  require('./chunk-MNQGUEQ7.cjs');
@@ -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 = _chunkU5NQ3CH3cjs.build; exports.cleanOutputPath = _chunkU5NQ3CH3cjs.cleanOutputPath; exports.copyBuildAssets = _chunkU5NQ3CH3cjs.copyBuildAssets; exports.executeUnbuild = _chunkU5NQ3CH3cjs.executeUnbuild; exports.generatePackageJson = _chunkU5NQ3CH3cjs.generatePackageJson; exports.resolveOptions = _chunkU5NQ3CH3cjs.resolveOptions;
package/dist/build.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  executeUnbuild,
6
6
  generatePackageJson,
7
7
  resolveOptions
8
- } from "./chunk-QM6BHE35.js";
8
+ } from "./chunk-QOGZYBKK.js";
9
9
  import "./chunk-M7TXTZYC.js";
10
10
  import "./chunk-GMQCUY6K.js";
11
11
  import "./chunk-4IZTCCLU.js";
@@ -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) {
@@ -898,7 +904,7 @@ async function resolveOptions(options, config) {
898
904
  builder: "mkdist",
899
905
  input: `./${entryPath}`,
900
906
  outDir,
901
- declaration: options.emitTypes !== false ? "compatible" : false,
907
+ declaration: options.dts !== false ? "compatible" : false,
902
908
  format: "esm",
903
909
  ext: "mjs"
904
910
  });
@@ -907,13 +913,13 @@ async function resolveOptions(options, config) {
907
913
  builder: "mkdist",
908
914
  input: `./${entryPath}`,
909
915
  outDir,
910
- declaration: options.emitTypes !== false ? "compatible" : false,
916
+ declaration: options.dts !== false ? "compatible" : false,
911
917
  format: "cjs",
912
918
  ext: "cjs"
913
919
  });
914
920
  return ret;
915
921
  }, []),
916
- declaration: options.emitTypes !== false ? "compatible" : false,
922
+ declaration: options.dts !== false ? "compatible" : false,
917
923
  failOnWarn: false,
918
924
  sourcemap: options.sourcemap ?? !!options.debug,
919
925
  outDir: outputPath,
@@ -335,12 +335,12 @@ var getConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, () => {
335
335
  configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkOFV7JN7Ocjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
336
336
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkOFV7JN7Ocjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
337
337
  directories: {
338
- cache: process.env[`${prefix}CACHE_DIR`] ? _chunkOFV7JN7Ocjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
339
- data: process.env[`${prefix}DATA_DIR`] ? _chunkOFV7JN7Ocjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
340
- config: process.env[`${prefix}CONFIG_DIR`] ? _chunkOFV7JN7Ocjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
341
- temp: process.env[`${prefix}TEMP_DIR`] ? _chunkOFV7JN7Ocjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
342
- log: process.env[`${prefix}LOG_DIR`] ? _chunkOFV7JN7Ocjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
343
- build: process.env[`${prefix}BUILD_DIR`] ? _chunkOFV7JN7Ocjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
338
+ cache: process.env[`${prefix}CACHE_DIR`] ? _chunkOFV7JN7Ocjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkOFV7JN7Ocjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
339
+ data: process.env[`${prefix}DATA_DIR`] ? _chunkOFV7JN7Ocjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkOFV7JN7Ocjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
340
+ config: process.env[`${prefix}CONFIG_DIR`] ? _chunkOFV7JN7Ocjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkOFV7JN7Ocjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
341
+ temp: process.env[`${prefix}TEMP_DIR`] ? _chunkOFV7JN7Ocjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkOFV7JN7Ocjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
342
+ log: process.env[`${prefix}LOG_DIR`] ? _chunkOFV7JN7Ocjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkOFV7JN7Ocjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
343
+ build: process.env[`${prefix}BUILD_DIR`] ? _chunkOFV7JN7Ocjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkOFV7JN7Ocjs.correctPaths.call(void 0, 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: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
@@ -560,21 +560,27 @@ var setConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (config
560
560
  if (config.directories) {
561
561
  if (!config.skipCache && config.directories.cache) {
562
562
  process.env[`${prefix}CACHE_DIR`] = _chunkOFV7JN7Ocjs.correctPaths.call(void 0, 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`] = _chunkOFV7JN7Ocjs.correctPaths.call(void 0, 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`] = _chunkOFV7JN7Ocjs.correctPaths.call(void 0, 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`] = _chunkOFV7JN7Ocjs.correctPaths.call(void 0, 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`] = _chunkOFV7JN7Ocjs.correctPaths.call(void 0, 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`] = _chunkOFV7JN7Ocjs.correctPaths.call(void 0, 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) {
@@ -898,7 +904,7 @@ async function resolveOptions(options, config) {
898
904
  builder: "mkdist",
899
905
  input: `./${entryPath}`,
900
906
  outDir,
901
- declaration: options.emitTypes !== false ? "compatible" : false,
907
+ declaration: options.dts !== false ? "compatible" : false,
902
908
  format: "esm",
903
909
  ext: "mjs"
904
910
  });
@@ -907,13 +913,13 @@ async function resolveOptions(options, config) {
907
913
  builder: "mkdist",
908
914
  input: `./${entryPath}`,
909
915
  outDir,
910
- declaration: options.emitTypes !== false ? "compatible" : false,
916
+ declaration: options.dts !== false ? "compatible" : false,
911
917
  format: "cjs",
912
918
  ext: "cjs"
913
919
  });
914
920
  return ret;
915
921
  }, []),
916
- declaration: options.emitTypes !== false ? "compatible" : false,
922
+ declaration: options.dts !== false ? "compatible" : false,
917
923
  failOnWarn: false,
918
924
  sourcemap: _nullishCoalesce(options.sourcemap, () => ( !!options.debug)),
919
925
  outDir: outputPath,
package/dist/index.cjs CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkZBIYPMJMcjs = require('./chunk-ZBIYPMJM.cjs');
8
+ var _chunkU5NQ3CH3cjs = require('./chunk-U5NQ3CH3.cjs');
9
9
 
10
10
 
11
11
 
@@ -30,4 +30,4 @@ require('./chunk-BGYQAVKQ.cjs');
30
30
 
31
31
 
32
32
 
33
- exports.build = _chunkZBIYPMJMcjs.build; exports.clean = _chunk3VWVLTGDcjs.clean; exports.cleanDirectories = _chunk3VWVLTGDcjs.cleanDirectories; exports.cleanOutputPath = _chunkZBIYPMJMcjs.cleanOutputPath; exports.copyBuildAssets = _chunkZBIYPMJMcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkHEBZFJ2Ncjs.createTsCompilerOptions; exports.executeUnbuild = _chunkZBIYPMJMcjs.executeUnbuild; exports.generatePackageJson = _chunkZBIYPMJMcjs.generatePackageJson; exports.loadConfig = _chunkHEBZFJ2Ncjs.loadConfig; exports.resolveOptions = _chunkZBIYPMJMcjs.resolveOptions;
33
+ exports.build = _chunkU5NQ3CH3cjs.build; exports.clean = _chunk3VWVLTGDcjs.clean; exports.cleanDirectories = _chunk3VWVLTGDcjs.cleanDirectories; exports.cleanOutputPath = _chunkU5NQ3CH3cjs.cleanOutputPath; exports.copyBuildAssets = _chunkU5NQ3CH3cjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkHEBZFJ2Ncjs.createTsCompilerOptions; exports.executeUnbuild = _chunkU5NQ3CH3cjs.executeUnbuild; exports.generatePackageJson = _chunkU5NQ3CH3cjs.generatePackageJson; exports.loadConfig = _chunkHEBZFJ2Ncjs.loadConfig; exports.resolveOptions = _chunkU5NQ3CH3cjs.resolveOptions;
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  executeUnbuild,
6
6
  generatePackageJson,
7
7
  resolveOptions
8
- } from "./chunk-QM6BHE35.js";
8
+ } from "./chunk-QOGZYBKK.js";
9
9
  import {
10
10
  clean,
11
11
  cleanDirectories
package/dist/types.d.cts CHANGED
@@ -60,7 +60,7 @@ type UnbuildOptions = Omit<Partial<BuildOptions>, "entries" | "rootDir" | "exter
60
60
  *
61
61
  * @defaultValue `true`
62
62
  */
63
- emitTypes?: boolean;
63
+ dts?: boolean;
64
64
  /**
65
65
  * Should the build process skip generating a package.json and copying assets
66
66
  *
@@ -72,7 +72,7 @@ type UnbuildOptions = Omit<Partial<BuildOptions>, "entries" | "rootDir" | "exter
72
72
  */
73
73
  loaders?: Loaders | ((ctx: BuildContext, entry: MkdistBuildEntry, opts: MkdistOptions) => Loaders | Promise<Loaders>);
74
74
  };
75
- type UnbuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "entryPoints" | "external" | "emitTypes"> & BuildConfig & {
75
+ type UnbuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "entryPoints" | "external" | "dts"> & BuildConfig & {
76
76
  /**
77
77
  * Path to a rollup configuration file relative to the project root
78
78
  */
@@ -88,6 +88,6 @@ type UnbuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "entryPoints"
88
88
  entries: BuildOptions["entries"];
89
89
  declaration: BuildOptions["declaration"];
90
90
  };
91
- type UnbuildCLIOptions = AdditionalCLIOptions & Pick<UnbuildOptions, "name" | "outputPath" | "platform" | "bundle" | "target" | "watch" | "clean" | "debug" | "banner" | "footer" | "splitting" | "treeShaking" | "generatePackageJson" | "metafile" | "minify" | "includeSrc" | "verbose" | "emitTypes">;
91
+ type UnbuildCLIOptions = AdditionalCLIOptions & Pick<UnbuildOptions, "name" | "outputPath" | "platform" | "bundle" | "target" | "watch" | "clean" | "debug" | "banner" | "footer" | "splitting" | "treeShaking" | "generatePackageJson" | "metafile" | "minify" | "includeSrc" | "verbose" | "dts">;
92
92
 
93
93
  export type { DeepPartial, LoadFile, Loader, LoaderContext, LoaderInputFile, LoaderOptions, LoaderOutputFile, LoaderResult, Loaders, UnbuildCLIOptions, UnbuildOptions, UnbuildResolvedOptions };
package/dist/types.d.ts CHANGED
@@ -60,7 +60,7 @@ type UnbuildOptions = Omit<Partial<BuildOptions>, "entries" | "rootDir" | "exter
60
60
  *
61
61
  * @defaultValue `true`
62
62
  */
63
- emitTypes?: boolean;
63
+ dts?: boolean;
64
64
  /**
65
65
  * Should the build process skip generating a package.json and copying assets
66
66
  *
@@ -72,7 +72,7 @@ type UnbuildOptions = Omit<Partial<BuildOptions>, "entries" | "rootDir" | "exter
72
72
  */
73
73
  loaders?: Loaders | ((ctx: BuildContext, entry: MkdistBuildEntry, opts: MkdistOptions) => Loaders | Promise<Loaders>);
74
74
  };
75
- type UnbuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "entryPoints" | "external" | "emitTypes"> & BuildConfig & {
75
+ type UnbuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "entryPoints" | "external" | "dts"> & BuildConfig & {
76
76
  /**
77
77
  * Path to a rollup configuration file relative to the project root
78
78
  */
@@ -88,6 +88,6 @@ type UnbuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "entryPoints"
88
88
  entries: BuildOptions["entries"];
89
89
  declaration: BuildOptions["declaration"];
90
90
  };
91
- type UnbuildCLIOptions = AdditionalCLIOptions & Pick<UnbuildOptions, "name" | "outputPath" | "platform" | "bundle" | "target" | "watch" | "clean" | "debug" | "banner" | "footer" | "splitting" | "treeShaking" | "generatePackageJson" | "metafile" | "minify" | "includeSrc" | "verbose" | "emitTypes">;
91
+ type UnbuildCLIOptions = AdditionalCLIOptions & Pick<UnbuildOptions, "name" | "outputPath" | "platform" | "bundle" | "target" | "watch" | "clean" | "debug" | "banner" | "footer" | "splitting" | "treeShaking" | "generatePackageJson" | "metafile" | "minify" | "includeSrc" | "verbose" | "dts">;
92
92
 
93
93
  export type { DeepPartial, LoadFile, Loader, LoaderContext, LoaderInputFile, LoaderOptions, LoaderOutputFile, LoaderResult, Loaders, UnbuildCLIOptions, UnbuildOptions, UnbuildResolvedOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/unbuild",
3
- "version": "0.39.14",
3
+ "version": "0.39.16",
4
4
  "type": "module",
5
5
  "description": "A package containing `unbuild` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -133,13 +133,13 @@
133
133
  "unbuild"
134
134
  ],
135
135
  "peerDependencies": {
136
- "@nx/devkit": "20.6.0",
137
- "@nx/js": "20.6.0",
136
+ "@nx/devkit": "20.8.0",
137
+ "@nx/js": "20.8.0",
138
138
  "@storm-software/build-tools": "workspace:*",
139
139
  "@storm-software/config": "workspace:*",
140
140
  "@storm-software/config-tools": "workspace:*",
141
141
  "@swc/core": "1.7.26",
142
- "nx": "20.6.0",
142
+ "nx": "20.8.0",
143
143
  "rollup": "^4.29.1",
144
144
  "typescript": "^5.7.2"
145
145
  },
@@ -167,10 +167,10 @@
167
167
  "unbuild": "^3.2.0"
168
168
  },
169
169
  "devDependencies": {
170
- "@nx/devkit": "20.6.0",
171
- "@nx/js": "20.6.0",
170
+ "@nx/devkit": "20.8.0",
171
+ "@nx/js": "20.8.0",
172
172
  "@types/node": "^22.10.2",
173
- "nx": "20.6.0",
173
+ "nx": "20.8.0",
174
174
  "tsup": "8.3.5",
175
175
  "typescript": "^5.7.2"
176
176
  },