@storm-software/tsdown 0.28.3 → 0.28.5
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
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/dist/build.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
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 =
|
|
11
|
+
exports.build = _chunk3RXXV65Rcjs.build; exports.cleanOutputPath = _chunk3RXXV65Rcjs.cleanOutputPath;
|
package/dist/build.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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 =
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/tsdown",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.5",
|
|
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.
|
|
163
|
-
"globby": "^14.0
|
|
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.
|
|
177
|
+
"spdx-license-ids": "^3.0.21",
|
|
178
178
|
"tsdown": "0.5.3"
|
|
179
179
|
},
|
|
180
180
|
"publishConfig": { "access": "public" },
|