@storm-software/tsdown 0.28.3 → 0.28.4

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.28.2-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.28.3-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,6 +40,7 @@ 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
+
43
44
  ## Table of Contents
44
45
 
45
46
  - [Storm TSDown Package](#storm-tsdown-package)
package/dist/build.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOSSTXYK4cjs = require('./chunk-OSSTXYK4.cjs');
4
+ var _chunk3RXXV65Rcjs = require('./chunk-3RXXV65R.cjs');
5
5
  require('./chunk-2G7S4JNP.cjs');
6
6
  require('./chunk-DEWYQH4B.cjs');
7
7
  require('./chunk-USNT2KNT.cjs');
8
8
 
9
9
 
10
10
 
11
- exports.build = _chunkOSSTXYK4cjs.build; exports.cleanOutputPath = _chunkOSSTXYK4cjs.cleanOutputPath;
11
+ exports.build = _chunk3RXXV65Rcjs.build; exports.cleanOutputPath = _chunk3RXXV65Rcjs.cleanOutputPath;
package/dist/build.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-VRP7KWWH.js";
4
+ } from "./chunk-X56SYHGK.js";
5
5
  import "./chunk-2WT22RMQ.js";
6
6
  import "./chunk-PR5HLZXS.js";
7
7
  import "./chunk-SHUYVCID.js";
@@ -111,7 +111,16 @@ var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
111
111
 
112
112
  var _projectgraph = require('nx/src/project-graph/project-graph');
113
113
  var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (workspaceRoot, projectRoot, projectName, packageJson) => {
114
- const projectGraph = _projectgraph.readCachedProjectGraph.call(void 0, );
114
+ let projectGraph;
115
+ try {
116
+ projectGraph = _projectgraph.readCachedProjectGraph.call(void 0, );
117
+ } catch (e) {
118
+ await _projectgraph.createProjectGraphAsync.call(void 0, );
119
+ projectGraph = _projectgraph.readCachedProjectGraph.call(void 0, );
120
+ }
121
+ if (!projectGraph) {
122
+ throw new Error("The Build process failed because the project graph is not available. Please run the build command again.");
123
+ }
115
124
  const projectDependencies = _buildablelibsutils.calculateProjectBuildableDependencies.call(void 0, void 0, projectGraph, workspaceRoot, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
116
125
  const localPackages = [];
117
126
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _ => _.node, 'access', _2 => _2.data, 'optionalAccess', _3 => _3.root]) !== projectRoot && _optionalChain([dep, 'access', _4 => _4.node, 'access', _5 => _5.data, 'optionalAccess', _6 => _6.root]) !== workspaceRoot)) {
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-SHUYVCID.js";
30
30
 
31
31
  // src/build.ts
32
- import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2, writeJsonFile } from "@nx/devkit";
32
+ import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2, writeJsonFile } from "@nx/devkit";
33
33
 
34
34
  // ../build-tools/src/config.ts
35
35
  var DEFAULT_ENVIRONMENT = "production";
@@ -109,9 +109,18 @@ import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildabl
109
109
  import { Glob } from "glob";
110
110
  import { existsSync, readFileSync } from "node:fs";
111
111
  import { readFile as readFile2 } from "node:fs/promises";
112
- import { readCachedProjectGraph, readProjectsConfigurationFromProjectGraph } from "nx/src/project-graph/project-graph";
112
+ import { createProjectGraphAsync, readCachedProjectGraph, readProjectsConfigurationFromProjectGraph } from "nx/src/project-graph/project-graph";
113
113
  var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot, projectRoot, projectName, packageJson) => {
114
- const projectGraph = readCachedProjectGraph();
114
+ let projectGraph;
115
+ try {
116
+ projectGraph = readCachedProjectGraph();
117
+ } catch {
118
+ await createProjectGraphAsync();
119
+ projectGraph = readCachedProjectGraph();
120
+ }
121
+ if (!projectGraph) {
122
+ throw new Error("The Build process failed because the project graph is not available. Please run the build command again.");
123
+ }
115
124
  const projectDependencies = calculateProjectBuildableDependencies(void 0, projectGraph, workspaceRoot, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
116
125
  const localPackages = [];
117
126
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data?.root !== projectRoot && dep.node.data?.root !== workspaceRoot)) {
@@ -917,7 +926,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
917
926
  const config = await getConfig(workspaceRoot.dir);
918
927
  writeDebug(" \u2699\uFE0F Resolving build options", config);
919
928
  const stopwatch = getStopwatch("Build options resolution");
920
- const projectGraph = await createProjectGraphAsync({
929
+ const projectGraph = await createProjectGraphAsync2({
921
930
  exitOnError: true
922
931
  });
923
932
  const projectJsonPath = joinPaths(workspaceRoot.dir, projectRoot, "project.json");
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 _chunkOSSTXYK4cjs = require('./chunk-OSSTXYK4.cjs');
4
+ var _chunk3RXXV65Rcjs = require('./chunk-3RXXV65R.cjs');
5
5
 
6
6
 
7
7
 
@@ -17,4 +17,4 @@ require('./chunk-SFZRYJZ2.cjs');
17
17
 
18
18
 
19
19
 
20
- exports.DEFAULT_BUILD_OPTIONS = _chunkDEWYQH4Bcjs.DEFAULT_BUILD_OPTIONS; exports.build = _chunkOSSTXYK4cjs.build; exports.clean = _chunk2G7S4JNPcjs.clean; exports.cleanDirectories = _chunk2G7S4JNPcjs.cleanDirectories; exports.cleanOutputPath = _chunkOSSTXYK4cjs.cleanOutputPath;
20
+ exports.DEFAULT_BUILD_OPTIONS = _chunkDEWYQH4Bcjs.DEFAULT_BUILD_OPTIONS; exports.build = _chunk3RXXV65Rcjs.build; exports.clean = _chunk2G7S4JNPcjs.clean; exports.cleanDirectories = _chunk2G7S4JNPcjs.cleanDirectories; exports.cleanOutputPath = _chunk3RXXV65Rcjs.cleanOutputPath;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-VRP7KWWH.js";
4
+ } from "./chunk-X56SYHGK.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.28.3",
3
+ "version": "0.28.4",
4
4
  "type": "module",
5
5
  "description": "A package containing `tsdown` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -159,8 +159,8 @@
159
159
  "dependencies": {
160
160
  "chokidar": "^4.0.3",
161
161
  "commander": "^12.1.0",
162
- "es-toolkit": "^1.30.1",
163
- "globby": "^14.0.2",
162
+ "es-toolkit": "^1.36.0",
163
+ "globby": "^14.1.0",
164
164
  "nx": "20.8.0",
165
165
  "rolldown": "1.0.0-beta.1",
166
166
  "source-map": "0.7.4",
@@ -174,7 +174,7 @@
174
174
  "defu": "6.1.4",
175
175
  "rollup": "^4.29.1",
176
176
  "spdx-exceptions": "^2.5.0",
177
- "spdx-license-ids": "^3.0.20",
177
+ "spdx-license-ids": "^3.0.21",
178
178
  "tsdown": "0.5.3"
179
179
  },
180
180
  "publishConfig": { "access": "public" },