@storm-software/tsdown 0.42.1 → 0.42.3

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.41.0-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.42.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 -->
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
40
40
 
41
41
  <!-- START doctoc -->
42
42
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
43
-
44
43
  ## Table of Contents
45
44
 
46
45
  - [Storm TSDown Package](#storm-tsdown-package)
package/dist/build.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkKG2IUSXKcjs = require('./chunk-KG2IUSXK.cjs');
4
+ var _chunk2WRKCYGLcjs = require('./chunk-2WRKCYGL.cjs');
5
5
  require('./chunk-IO7MJMVE.cjs');
6
6
  require('./chunk-65E5RX7I.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.build = _chunkKG2IUSXKcjs.build; exports.cleanOutputPath = _chunkKG2IUSXKcjs.cleanOutputPath;
10
+ exports.build = _chunk2WRKCYGLcjs.build; exports.cleanOutputPath = _chunk2WRKCYGLcjs.cleanOutputPath;
package/dist/build.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-ZUP7DCE7.js";
4
+ } from "./chunk-DU2QOKHQ.js";
5
5
  import "./chunk-IAKUT4HI.js";
6
6
  import "./chunk-2YE3GBQH.js";
7
7
  export {
@@ -60,7 +60,7 @@ var correctPaths = function(path2) {
60
60
  return ".";
61
61
  }
62
62
  path2 = normalizeWindowsPath(path2);
63
- const isUNCPath = path2.match(_UNC_REGEX);
63
+ const isUNCPath = _optionalChain([path2, 'optionalAccess', _ => _.match, 'call', _2 => _2(_UNC_REGEX)]);
64
64
  const isPathAbsolute = isAbsolute(path2);
65
65
  const trailingSeparator = path2[path2.length - 1] === "/";
66
66
  path2 = normalizeString(path2, !isPathAbsolute);
@@ -370,7 +370,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
370
370
  );
371
371
  const localPackages = [];
372
372
  for (const project of projectDependencies.dependencies.filter(
373
- (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
373
+ (dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _3 => _3.node, 'access', _4 => _4.data, 'optionalAccess', _5 => _5.root]) !== projectRoot && _optionalChain([dep, 'access', _6 => _6.node, 'access', _7 => _7.data, 'optionalAccess', _8 => _8.root]) !== workspaceRoot
374
374
  )) {
375
375
  const projectNode = project.node;
376
376
  if (projectNode.data.root) {
@@ -402,13 +402,13 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
402
402
  const projectJson = JSON.parse(projectJsonFile);
403
403
  const projectName2 = projectJson.name;
404
404
  const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
405
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _7 => _7.projects, 'optionalAccess', _8 => _8[projectName2]])) {
405
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _9 => _9.projects, 'optionalAccess', _10 => _10[projectName2]])) {
406
406
  throw new Error(
407
407
  "The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project."
408
408
  );
409
409
  }
410
- 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) => {
411
- if (_optionalChain([projectConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[dep]])) {
410
+ const implicitDependencies = _optionalChain([projectConfigurations, 'access', _11 => _11.projects, 'optionalAccess', _12 => _12[projectName2], 'access', _13 => _13.implicitDependencies, 'optionalAccess', _14 => _14.reduce, 'call', _15 => _15((ret, dep) => {
411
+ if (_optionalChain([projectConfigurations, 'access', _16 => _16.projects, 'optionalAccess', _17 => _17[dep]])) {
412
412
  const depPackageJsonPath = joinPaths(
413
413
  workspaceRoot,
414
414
  projectConfigurations.projects[dep].root,
@@ -428,13 +428,13 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
428
428
  return ret;
429
429
  }, [])]);
430
430
  packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
431
- if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _16 => _16.includes, 'call', _17 => _17(localPackage.name)]) && _optionalChain([packageJson, 'access', _18 => _18.devDependencies, 'optionalAccess', _19 => _19[localPackage.name]]) === void 0) {
431
+ if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _18 => _18.includes, 'call', _19 => _19(localPackage.name)]) && _optionalChain([packageJson, 'access', _20 => _20.devDependencies, 'optionalAccess', _21 => _21[localPackage.name]]) === void 0) {
432
432
  ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
433
433
  }
434
434
  return ret;
435
435
  }, _nullishCoalesce(packageJson.dependencies, () => ( {})));
436
436
  packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
437
- 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) {
437
+ if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _22 => _22.includes, 'call', _23 => _23(localPackage.name)]) && _optionalChain([packageJson, 'access', _24 => _24.dependencies, 'optionalAccess', _25 => _25[localPackage.name]]) === void 0) {
438
438
  ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
439
439
  }
440
440
  return ret;
@@ -1179,7 +1179,7 @@ function applyDefaultConfig(config) {
1179
1179
  if (!config.contact) {
1180
1180
  config.contact = `${config.homepage}/contact`;
1181
1181
  }
1182
- if (!_optionalChain([config, 'access', _24 => _24.error, 'optionalAccess', _25 => _25.codesFile]) || !_optionalChain([config, 'optionalAccess', _26 => _26.error, 'optionalAccess', _27 => _27.url])) {
1182
+ if (!_optionalChain([config, 'access', _26 => _26.error, 'optionalAccess', _27 => _27.codesFile]) || !_optionalChain([config, 'optionalAccess', _28 => _28.error, 'optionalAccess', _29 => _29.url])) {
1183
1183
  config.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
1184
1184
  if (config.homepage) {
1185
1185
  config.error.url ??= `${config.homepage}/errors`;
@@ -1197,7 +1197,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
1197
1197
  cwd: workspacePath,
1198
1198
  packageJson: true,
1199
1199
  name: fileName,
1200
- envName: _optionalChain([fileName, 'optionalAccess', _28 => _28.toUpperCase, 'call', _29 => _29()]),
1200
+ envName: _optionalChain([fileName, 'optionalAccess', _30 => _30.toUpperCase, 'call', _31 => _31()]),
1201
1201
  jitiOptions: {
1202
1202
  debug: false,
1203
1203
  fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
@@ -1211,7 +1211,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
1211
1211
  cwd: workspacePath,
1212
1212
  packageJson: true,
1213
1213
  name: fileName,
1214
- envName: _optionalChain([fileName, 'optionalAccess', _30 => _30.toUpperCase, 'call', _31 => _31()]),
1214
+ envName: _optionalChain([fileName, 'optionalAccess', _32 => _32.toUpperCase, 'call', _33 => _33()]),
1215
1215
  jitiOptions: {
1216
1216
  debug: false,
1217
1217
  fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
@@ -1245,7 +1245,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
1245
1245
  )
1246
1246
  );
1247
1247
  for (const result2 of results) {
1248
- if (_optionalChain([result2, 'optionalAccess', _32 => _32.config]) && _optionalChain([result2, 'optionalAccess', _33 => _33.configFile]) && Object.keys(result2.config).length > 0) {
1248
+ if (_optionalChain([result2, 'optionalAccess', _34 => _34.config]) && _optionalChain([result2, 'optionalAccess', _35 => _35.configFile]) && Object.keys(result2.config).length > 0) {
1249
1249
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
1250
1250
  _chunkIO7MJMVEcjs.writeTrace.call(void 0,
1251
1251
  `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
@@ -1484,16 +1484,16 @@ var getBaseThemeColorsEnv = (prefix) => {
1484
1484
  var setExtensionEnv = (extensionName, extension) => {
1485
1485
  for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
1486
1486
  if (extension[key]) {
1487
- const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _34 => _34.replace, 'call', _35 => _35(
1487
+ const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _36 => _36.replace, 'call', _37 => _37(
1488
1488
  /([A-Z])+/g,
1489
- (input) => input ? _optionalChain([input, 'access', _36 => _36[0], 'optionalAccess', _37 => _37.toUpperCase, 'call', _38 => _38()]) + input.slice(1) : ""
1490
- ), 'access', _39 => _39.split, 'call', _40 => _40(/(?=[A-Z])|[.\-\s_]/), 'access', _41 => _41.map, 'call', _42 => _42((x) => x.toLowerCase())]), () => ( []));
1489
+ (input) => input ? _optionalChain([input, 'access', _38 => _38[0], 'optionalAccess', _39 => _39.toUpperCase, 'call', _40 => _40()]) + input.slice(1) : ""
1490
+ ), 'access', _41 => _41.split, 'call', _42 => _42(/(?=[A-Z])|[.\-\s_]/), 'access', _43 => _43.map, 'call', _44 => _44((x) => x.toLowerCase())]), () => ( []));
1491
1491
  let extensionKey;
1492
1492
  if (result.length === 0) {
1493
1493
  return;
1494
1494
  }
1495
1495
  if (result.length === 1) {
1496
- extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _43 => _43[0], 'optionalAccess', _44 => _44.toUpperCase, 'call', _45 => _45()]), () => ( ""));
1496
+ extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _45 => _45[0], 'optionalAccess', _46 => _46.toUpperCase, 'call', _47 => _47()]), () => ( ""));
1497
1497
  } else {
1498
1498
  extensionKey = result.reduce((ret, part) => {
1499
1499
  return `${ret}_${part.toLowerCase()}`;
@@ -1681,7 +1681,7 @@ var setConfigEnv = (config) => {
1681
1681
  process.env.NODE_ENV = config.mode;
1682
1682
  process.env.ENVIRONMENT = config.mode;
1683
1683
  }
1684
- if (_optionalChain([config, 'access', _46 => _46.colors, 'optionalAccess', _47 => _47.base, 'optionalAccess', _48 => _48.light]) || _optionalChain([config, 'access', _49 => _49.colors, 'optionalAccess', _50 => _50.base, 'optionalAccess', _51 => _51.dark])) {
1684
+ if (_optionalChain([config, 'access', _48 => _48.colors, 'optionalAccess', _49 => _49.base, 'optionalAccess', _50 => _50.light]) || _optionalChain([config, 'access', _51 => _51.colors, 'optionalAccess', _52 => _52.base, 'optionalAccess', _53 => _53.dark])) {
1685
1685
  for (const key of Object.keys(config.colors)) {
1686
1686
  setThemeColorsEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
1687
1687
  }
@@ -1742,7 +1742,7 @@ var setConfigEnv = (config) => {
1742
1742
  }
1743
1743
  };
1744
1744
  var setThemeColorsEnv = (prefix, config) => {
1745
- return _optionalChain([config, 'optionalAccess', _52 => _52.light, 'optionalAccess', _53 => _53.brand]) || _optionalChain([config, 'optionalAccess', _54 => _54.dark, 'optionalAccess', _55 => _55.brand]) ? setMultiThemeColorsEnv(prefix, config) : setSingleThemeColorsEnv(prefix, config);
1745
+ return _optionalChain([config, 'optionalAccess', _54 => _54.light, 'optionalAccess', _55 => _55.brand]) || _optionalChain([config, 'optionalAccess', _56 => _56.dark, 'optionalAccess', _57 => _57.brand]) ? setMultiThemeColorsEnv(prefix, config) : setSingleThemeColorsEnv(prefix, config);
1746
1746
  };
1747
1747
  var setSingleThemeColorsEnv = (prefix, config) => {
1748
1748
  if (config.dark) {
@@ -1854,7 +1854,7 @@ var _extension_cache = /* @__PURE__ */ new WeakMap();
1854
1854
  var _static_cache = void 0;
1855
1855
  var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
1856
1856
  let result;
1857
- if (!_optionalChain([_static_cache, 'optionalAccess', _56 => _56.data]) || !_optionalChain([_static_cache, 'optionalAccess', _57 => _57.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
1857
+ if (!_optionalChain([_static_cache, 'optionalAccess', _58 => _58.data]) || !_optionalChain([_static_cache, 'optionalAccess', _59 => _59.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
1858
1858
  let _workspaceRoot = workspaceRoot;
1859
1859
  if (!_workspaceRoot) {
1860
1860
  _workspaceRoot = findWorkspaceRoot();
@@ -1885,7 +1885,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1885
1885
  result.workspaceRoot ??= _workspaceRoot;
1886
1886
  } catch (error) {
1887
1887
  throw new Error(
1888
- `Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _58 => _58.message]) ? `: ${error.message}` : ""}
1888
+ `Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _60 => _60.message]) ? `: ${error.message}` : ""}
1889
1889
 
1890
1890
  Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkIO7MJMVEcjs.formatLogMessage.call(void 0,
1891
1891
  configInput
@@ -2066,7 +2066,7 @@ var resolveOptions = async (userOptions) => {
2066
2066
  const projectJson = JSON.parse(projectJsonFile);
2067
2067
  const projectName = projectJson.name;
2068
2068
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
2069
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _59 => _59.projects, 'optionalAccess', _60 => _60[projectName]])) {
2069
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _61 => _61.projects, 'optionalAccess', _62 => _62[projectName]])) {
2070
2070
  throw new Error(
2071
2071
  "The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project."
2072
2072
  );
@@ -60,7 +60,7 @@ var correctPaths = function(path2) {
60
60
  return ".";
61
61
  }
62
62
  path2 = normalizeWindowsPath(path2);
63
- const isUNCPath = path2.match(_UNC_REGEX);
63
+ const isUNCPath = path2?.match(_UNC_REGEX);
64
64
  const isPathAbsolute = isAbsolute(path2);
65
65
  const trailingSeparator = path2[path2.length - 1] === "/";
66
66
  path2 = normalizeString(path2, !isPathAbsolute);
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkKG2IUSXKcjs = require('./chunk-KG2IUSXK.cjs');
4
+ var _chunk2WRKCYGLcjs = require('./chunk-2WRKCYGL.cjs');
5
5
 
6
6
 
7
7
 
@@ -16,4 +16,4 @@ require('./chunk-ZBPRDZS4.cjs');
16
16
 
17
17
 
18
18
 
19
- exports.DEFAULT_BUILD_OPTIONS = _chunk65E5RX7Icjs.DEFAULT_BUILD_OPTIONS; exports.build = _chunkKG2IUSXKcjs.build; exports.clean = _chunkIO7MJMVEcjs.clean; exports.cleanDirectories = _chunkIO7MJMVEcjs.cleanDirectories; exports.cleanOutputPath = _chunkKG2IUSXKcjs.cleanOutputPath;
19
+ exports.DEFAULT_BUILD_OPTIONS = _chunk65E5RX7Icjs.DEFAULT_BUILD_OPTIONS; exports.build = _chunk2WRKCYGLcjs.build; exports.clean = _chunkIO7MJMVEcjs.clean; exports.cleanDirectories = _chunkIO7MJMVEcjs.cleanDirectories; exports.cleanOutputPath = _chunk2WRKCYGLcjs.cleanOutputPath;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-ZUP7DCE7.js";
4
+ } from "./chunk-DU2QOKHQ.js";
5
5
  import {
6
6
  clean,
7
7
  cleanDirectories
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/tsdown",
3
- "version": "0.42.1",
3
+ "version": "0.42.3",
4
4
  "type": "module",
5
5
  "description": "A package containing `tsdown` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -149,9 +149,9 @@
149
149
  "tsdown": { "optional": false }
150
150
  },
151
151
  "dependencies": {
152
- "@storm-software/build-tools": "^0.155.1",
153
- "@storm-software/config": "^1.131.1",
154
- "@storm-software/config-tools": "^1.185.1",
152
+ "@storm-software/build-tools": "^0.155.3",
153
+ "@storm-software/config": "^1.131.3",
154
+ "@storm-software/config-tools": "^1.185.3",
155
155
  "chokidar": "^4.0.3",
156
156
  "commander": "^12.1.0",
157
157
  "es-toolkit": "^1.39.10",
@@ -174,5 +174,5 @@
174
174
  },
175
175
  "publishConfig": { "access": "public" },
176
176
  "sideEffects": false,
177
- "gitHead": "3958254bc37de8a1ac03db3c6be1fb3c6cbf6623"
177
+ "gitHead": "1b9f901274134d51c4200e5797348cf9587203dc"
178
178
  }