@storm-software/unbuild 0.57.241 → 0.57.243
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 +1 -1
- package/bin/unbuild.cjs +11 -26
- package/bin/unbuild.js +9 -27
- package/dist/build.cjs +3 -3
- package/dist/build.js +2 -2
- package/dist/{chunk-4YZB33F3.js → chunk-3VUCFPB3.js} +4 -4
- package/dist/{chunk-YBAENWC7.cjs → chunk-CCBZTNLE.cjs} +4 -22
- package/dist/{chunk-IXEYZDLQ.js → chunk-JGH35XTB.js} +3 -21
- package/dist/{chunk-QDBPL4XM.cjs → chunk-JUHGC5QJ.cjs} +9 -9
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/plugins/tsc.cjs +2 -2
- package/dist/plugins/tsc.js +1 -1
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
package/bin/unbuild.cjs
CHANGED
|
@@ -2161,7 +2161,7 @@ var import_commander = require("commander");
|
|
|
2161
2161
|
// src/build.ts
|
|
2162
2162
|
var import_devkit4 = require("@nx/devkit");
|
|
2163
2163
|
var import_js = require("@nx/js");
|
|
2164
|
-
var
|
|
2164
|
+
var import_internal5 = require("@nx/js/internal");
|
|
2165
2165
|
|
|
2166
2166
|
// ../build-tools/src/plugins/swc.ts
|
|
2167
2167
|
var import_core = require("@swc/core");
|
|
@@ -2177,7 +2177,7 @@ var import_devkit = require("@nx/devkit");
|
|
|
2177
2177
|
var import_path = require("path");
|
|
2178
2178
|
|
|
2179
2179
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
2180
|
-
var
|
|
2180
|
+
var import_internal = require("@nx/js/internal");
|
|
2181
2181
|
var import_glob = require("glob");
|
|
2182
2182
|
var import_promises2 = require("fs/promises");
|
|
2183
2183
|
var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson2 = true, includeSrc = false, banner, footer) => {
|
|
@@ -2211,7 +2211,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
2211
2211
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${joinPaths(outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
2212
2212
|
config
|
|
2213
2213
|
);
|
|
2214
|
-
const assetHandler = new
|
|
2214
|
+
const assetHandler = new import_internal.CopyAssetsHandler({
|
|
2215
2215
|
projectDir: projectRoot,
|
|
2216
2216
|
rootDir: config.workspaceRoot,
|
|
2217
2217
|
outputDir: outputPath,
|
|
@@ -2249,7 +2249,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
2249
2249
|
};
|
|
2250
2250
|
|
|
2251
2251
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
2252
|
-
var
|
|
2252
|
+
var import_internal2 = require("@nx/js/internal");
|
|
2253
2253
|
var import_glob2 = require("glob");
|
|
2254
2254
|
var import_node_fs5 = require("fs");
|
|
2255
2255
|
var import_promises3 = require("fs/promises");
|
|
@@ -2267,7 +2267,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
2267
2267
|
"The Build process failed because the project graph is not available. Please run the build command again."
|
|
2268
2268
|
);
|
|
2269
2269
|
}
|
|
2270
|
-
const projectDependencies = (0,
|
|
2270
|
+
const projectDependencies = (0, import_internal2.calculateProjectBuildableDependencies)(
|
|
2271
2271
|
void 0,
|
|
2272
2272
|
projectGraph,
|
|
2273
2273
|
workspaceRoot,
|
|
@@ -2475,13 +2475,12 @@ ${error ? error.message : "Unknown build error"}
|
|
|
2475
2475
|
|
|
2476
2476
|
// src/plugins/tsc.ts
|
|
2477
2477
|
var import_devkit3 = require("@nx/devkit");
|
|
2478
|
-
var
|
|
2479
|
-
var import_compiler_helper_dependency = require("@nx/js/src/utils/compiler-helper-dependency");
|
|
2478
|
+
var import_internal4 = require("@nx/js/internal");
|
|
2480
2479
|
var import_rollup_plugin_typescript2 = __toESM(require("rollup-plugin-typescript2"), 1);
|
|
2481
2480
|
|
|
2482
2481
|
// src/utilities/helpers.ts
|
|
2483
2482
|
var import_devkit2 = require("@nx/devkit");
|
|
2484
|
-
var
|
|
2483
|
+
var import_internal3 = require("@nx/js/internal");
|
|
2485
2484
|
var import_node_path4 = require("path");
|
|
2486
2485
|
var import_node_url = require("url");
|
|
2487
2486
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
@@ -2506,7 +2505,7 @@ async function createTsCompilerOptions(config, tsConfigPath, projectRoot, depend
|
|
|
2506
2505
|
const compilerOptions = {
|
|
2507
2506
|
rootDir: projectRoot,
|
|
2508
2507
|
declaration: true,
|
|
2509
|
-
paths: (0,
|
|
2508
|
+
paths: (0, import_internal3.computeCompilerOptionsPaths)(tsConfig, dependencies ?? [])
|
|
2510
2509
|
};
|
|
2511
2510
|
writeTrace(compilerOptions, config);
|
|
2512
2511
|
return compilerOptions;
|
|
@@ -2526,7 +2525,7 @@ var tscPlugin = async (options) => {
|
|
|
2526
2525
|
"The build process failed because the project graph is not available. Please run the build command again."
|
|
2527
2526
|
);
|
|
2528
2527
|
}
|
|
2529
|
-
const result = (0,
|
|
2528
|
+
const result = (0, import_internal4.calculateProjectBuildableDependencies)(
|
|
2530
2529
|
void 0,
|
|
2531
2530
|
projectGraph,
|
|
2532
2531
|
options.config.workspaceRoot,
|
|
@@ -2535,25 +2534,11 @@ var tscPlugin = async (options) => {
|
|
|
2535
2534
|
process.env.NX_TASK_TARGET_CONFIGURATION || "production",
|
|
2536
2535
|
true
|
|
2537
2536
|
);
|
|
2538
|
-
let dependencies = result.dependencies;
|
|
2539
|
-
const tsLibDependency = (0, import_compiler_helper_dependency.getHelperDependency)(
|
|
2540
|
-
import_compiler_helper_dependency.HelperDependency.tsc,
|
|
2541
|
-
options.tsconfig,
|
|
2542
|
-
dependencies,
|
|
2543
|
-
projectGraph,
|
|
2544
|
-
true
|
|
2545
|
-
);
|
|
2546
|
-
if (tsLibDependency) {
|
|
2547
|
-
dependencies = dependencies.filter(
|
|
2548
|
-
(deps) => deps.name !== tsLibDependency.name
|
|
2549
|
-
);
|
|
2550
|
-
dependencies.push(tsLibDependency);
|
|
2551
|
-
}
|
|
2552
2537
|
const compilerOptions = await createTsCompilerOptions(
|
|
2553
2538
|
options.config,
|
|
2554
2539
|
options.tsconfig,
|
|
2555
2540
|
options.projectRoot,
|
|
2556
|
-
dependencies
|
|
2541
|
+
result.dependencies
|
|
2557
2542
|
);
|
|
2558
2543
|
return (0, import_rollup_plugin_typescript2.default)({
|
|
2559
2544
|
check: options.declaration !== false,
|
|
@@ -2623,7 +2608,7 @@ async function resolveOptions(options, config) {
|
|
|
2623
2608
|
if (!(0, import_node_fs7.existsSync)(sourceRoot)) {
|
|
2624
2609
|
throw new Error("Cannot find sourceRoot directory");
|
|
2625
2610
|
}
|
|
2626
|
-
const result = (0,
|
|
2611
|
+
const result = (0, import_internal5.calculateProjectBuildableDependencies)(
|
|
2627
2612
|
void 0,
|
|
2628
2613
|
projectGraph,
|
|
2629
2614
|
config.workspaceRoot,
|
package/bin/unbuild.js
CHANGED
|
@@ -2142,8 +2142,8 @@ import {
|
|
|
2142
2142
|
readCachedProjectGraph as readCachedProjectGraph3,
|
|
2143
2143
|
writeJsonFile
|
|
2144
2144
|
} from "@nx/devkit";
|
|
2145
|
-
import { getHelperDependency
|
|
2146
|
-
import { calculateProjectBuildableDependencies as calculateProjectBuildableDependencies3 } from "@nx/js/
|
|
2145
|
+
import { getHelperDependency, HelperDependency } from "@nx/js";
|
|
2146
|
+
import { calculateProjectBuildableDependencies as calculateProjectBuildableDependencies3 } from "@nx/js/internal";
|
|
2147
2147
|
|
|
2148
2148
|
// ../build-tools/src/plugins/swc.ts
|
|
2149
2149
|
import { transform } from "@swc/core";
|
|
@@ -2159,7 +2159,7 @@ import { stripIndents } from "@nx/devkit";
|
|
|
2159
2159
|
import { relative } from "path";
|
|
2160
2160
|
|
|
2161
2161
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
2162
|
-
import { CopyAssetsHandler } from "@nx/js/
|
|
2162
|
+
import { CopyAssetsHandler } from "@nx/js/internal";
|
|
2163
2163
|
import { glob } from "glob";
|
|
2164
2164
|
import { readFile as readFile2, writeFile } from "node:fs/promises";
|
|
2165
2165
|
var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson2 = true, includeSrc = false, banner, footer) => {
|
|
@@ -2231,7 +2231,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
2231
2231
|
};
|
|
2232
2232
|
|
|
2233
2233
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
2234
|
-
import { calculateProjectBuildableDependencies } from "@nx/js/
|
|
2234
|
+
import { calculateProjectBuildableDependencies } from "@nx/js/internal";
|
|
2235
2235
|
import { Glob } from "glob";
|
|
2236
2236
|
import { existsSync as existsSync4, readFileSync } from "node:fs";
|
|
2237
2237
|
import { readFile as readFile3 } from "node:fs/promises";
|
|
@@ -2469,18 +2469,14 @@ import {
|
|
|
2469
2469
|
createProjectGraphAsync as createProjectGraphAsync2,
|
|
2470
2470
|
readCachedProjectGraph as readCachedProjectGraph2
|
|
2471
2471
|
} from "@nx/devkit";
|
|
2472
|
-
import { calculateProjectBuildableDependencies as calculateProjectBuildableDependencies2 } from "@nx/js/
|
|
2473
|
-
import {
|
|
2474
|
-
getHelperDependency,
|
|
2475
|
-
HelperDependency
|
|
2476
|
-
} from "@nx/js/src/utils/compiler-helper-dependency";
|
|
2472
|
+
import { calculateProjectBuildableDependencies as calculateProjectBuildableDependencies2 } from "@nx/js/internal";
|
|
2477
2473
|
import ts2Plugin from "rollup-plugin-typescript2";
|
|
2478
2474
|
|
|
2479
2475
|
// src/utilities/helpers.ts
|
|
2480
2476
|
import { joinPathFragments } from "@nx/devkit";
|
|
2481
2477
|
import {
|
|
2482
2478
|
computeCompilerOptionsPaths
|
|
2483
|
-
} from "@nx/js/
|
|
2479
|
+
} from "@nx/js/internal";
|
|
2484
2480
|
import { dirname, extname } from "node:path";
|
|
2485
2481
|
import { pathToFileURL } from "node:url";
|
|
2486
2482
|
import ts from "typescript";
|
|
@@ -2534,25 +2530,11 @@ var tscPlugin = async (options) => {
|
|
|
2534
2530
|
process.env.NX_TASK_TARGET_CONFIGURATION || "production",
|
|
2535
2531
|
true
|
|
2536
2532
|
);
|
|
2537
|
-
let dependencies = result.dependencies;
|
|
2538
|
-
const tsLibDependency = getHelperDependency(
|
|
2539
|
-
HelperDependency.tsc,
|
|
2540
|
-
options.tsconfig,
|
|
2541
|
-
dependencies,
|
|
2542
|
-
projectGraph,
|
|
2543
|
-
true
|
|
2544
|
-
);
|
|
2545
|
-
if (tsLibDependency) {
|
|
2546
|
-
dependencies = dependencies.filter(
|
|
2547
|
-
(deps) => deps.name !== tsLibDependency.name
|
|
2548
|
-
);
|
|
2549
|
-
dependencies.push(tsLibDependency);
|
|
2550
|
-
}
|
|
2551
2533
|
const compilerOptions = await createTsCompilerOptions(
|
|
2552
2534
|
options.config,
|
|
2553
2535
|
options.tsconfig,
|
|
2554
2536
|
options.projectRoot,
|
|
2555
|
-
dependencies
|
|
2537
|
+
result.dependencies
|
|
2556
2538
|
);
|
|
2557
2539
|
return ts2Plugin({
|
|
2558
2540
|
check: options.declaration !== false,
|
|
@@ -2632,8 +2614,8 @@ async function resolveOptions(options, config) {
|
|
|
2632
2614
|
true
|
|
2633
2615
|
);
|
|
2634
2616
|
let dependencies = result.dependencies;
|
|
2635
|
-
const tsLibDependency =
|
|
2636
|
-
|
|
2617
|
+
const tsLibDependency = getHelperDependency(
|
|
2618
|
+
HelperDependency.tsc,
|
|
2637
2619
|
tsconfig,
|
|
2638
2620
|
dependencies,
|
|
2639
2621
|
projectGraph,
|
package/dist/build.cjs
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkJUHGC5QJcjs = require('./chunk-JUHGC5QJ.cjs');
|
|
9
9
|
require('./chunk-SWMSXPOY.cjs');
|
|
10
10
|
require('./chunk-4S37FSA4.cjs');
|
|
11
11
|
require('./chunk-TI7LEWRN.cjs');
|
|
12
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-CCBZTNLE.cjs');
|
|
13
13
|
require('./chunk-5IFC3VFL.cjs');
|
|
14
14
|
require('./chunk-OBGZSXTJ.cjs');
|
|
15
15
|
|
|
@@ -19,4 +19,4 @@ require('./chunk-OBGZSXTJ.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.build =
|
|
22
|
+
exports.build = _chunkJUHGC5QJcjs.build; exports.cleanOutputPath = _chunkJUHGC5QJcjs.cleanOutputPath; exports.copyBuildAssets = _chunkJUHGC5QJcjs.copyBuildAssets; exports.executeUnbuild = _chunkJUHGC5QJcjs.executeUnbuild; exports.generatePackageJson = _chunkJUHGC5QJcjs.generatePackageJson; exports.resolveOptions = _chunkJUHGC5QJcjs.resolveOptions;
|
package/dist/build.js
CHANGED
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
executeUnbuild,
|
|
6
6
|
generatePackageJson,
|
|
7
7
|
resolveOptions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3VUCFPB3.js";
|
|
9
9
|
import "./chunk-F6C32LDB.js";
|
|
10
10
|
import "./chunk-INCSXY4G.js";
|
|
11
11
|
import "./chunk-5YNMAFOH.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-JGH35XTB.js";
|
|
13
13
|
import "./chunk-ZO3LA4ZI.js";
|
|
14
14
|
import "./chunk-3RG5ZIWI.js";
|
|
15
15
|
export {
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
loadConfig,
|
|
12
12
|
tscPlugin
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JGH35XTB.js";
|
|
14
14
|
import {
|
|
15
15
|
LogLevel,
|
|
16
16
|
LogLevelLabel,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
writeJsonFile
|
|
35
35
|
} from "@nx/devkit";
|
|
36
36
|
import { getHelperDependency, HelperDependency } from "@nx/js";
|
|
37
|
-
import { calculateProjectBuildableDependencies as calculateProjectBuildableDependencies2 } from "@nx/js/
|
|
37
|
+
import { calculateProjectBuildableDependencies as calculateProjectBuildableDependencies2 } from "@nx/js/internal";
|
|
38
38
|
|
|
39
39
|
// ../build-tools/src/plugins/swc.ts
|
|
40
40
|
import { transform } from "@swc/core";
|
|
@@ -50,7 +50,7 @@ import { stripIndents } from "@nx/devkit";
|
|
|
50
50
|
import { relative } from "path";
|
|
51
51
|
|
|
52
52
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
53
|
-
import { CopyAssetsHandler } from "@nx/js/
|
|
53
|
+
import { CopyAssetsHandler } from "@nx/js/internal";
|
|
54
54
|
|
|
55
55
|
// ../config-tools/src/utilities/correct-paths.ts
|
|
56
56
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
@@ -249,7 +249,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
249
249
|
};
|
|
250
250
|
|
|
251
251
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
252
|
-
import { calculateProjectBuildableDependencies } from "@nx/js/
|
|
252
|
+
import { calculateProjectBuildableDependencies } from "@nx/js/internal";
|
|
253
253
|
|
|
254
254
|
// ../config-tools/src/utilities/find-up.ts
|
|
255
255
|
import { existsSync } from "node:fs";
|
|
@@ -7,11 +7,7 @@ var _chunk5IFC3VFLcjs = require('./chunk-5IFC3VFL.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _devkit = require('@nx/devkit');
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var _compilerhelperdependency = require('@nx/js/src/utils/compiler-helper-dependency');
|
|
10
|
+
var _internal = require('@nx/js/internal');
|
|
15
11
|
var _rollupplugintypescript2 = require('rollup-plugin-typescript2'); var _rollupplugintypescript22 = _interopRequireDefault(_rollupplugintypescript2);
|
|
16
12
|
|
|
17
13
|
// src/utilities/helpers.ts
|
|
@@ -43,7 +39,7 @@ async function createTsCompilerOptions(config, tsConfigPath, projectRoot, depend
|
|
|
43
39
|
const compilerOptions = {
|
|
44
40
|
rootDir: projectRoot,
|
|
45
41
|
declaration: true,
|
|
46
|
-
paths:
|
|
42
|
+
paths: _internal.computeCompilerOptionsPaths.call(void 0, tsConfig, _nullishCoalesce(dependencies, () => ( [])))
|
|
47
43
|
};
|
|
48
44
|
_chunk5IFC3VFLcjs.writeTrace.call(void 0, compilerOptions, config);
|
|
49
45
|
return compilerOptions;
|
|
@@ -63,7 +59,7 @@ var tscPlugin = async (options) => {
|
|
|
63
59
|
"The build process failed because the project graph is not available. Please run the build command again."
|
|
64
60
|
);
|
|
65
61
|
}
|
|
66
|
-
const result =
|
|
62
|
+
const result = _internal.calculateProjectBuildableDependencies.call(void 0,
|
|
67
63
|
void 0,
|
|
68
64
|
projectGraph,
|
|
69
65
|
options.config.workspaceRoot,
|
|
@@ -72,25 +68,11 @@ var tscPlugin = async (options) => {
|
|
|
72
68
|
process.env.NX_TASK_TARGET_CONFIGURATION || "production",
|
|
73
69
|
true
|
|
74
70
|
);
|
|
75
|
-
let dependencies = result.dependencies;
|
|
76
|
-
const tsLibDependency = _compilerhelperdependency.getHelperDependency.call(void 0,
|
|
77
|
-
_compilerhelperdependency.HelperDependency.tsc,
|
|
78
|
-
options.tsconfig,
|
|
79
|
-
dependencies,
|
|
80
|
-
projectGraph,
|
|
81
|
-
true
|
|
82
|
-
);
|
|
83
|
-
if (tsLibDependency) {
|
|
84
|
-
dependencies = dependencies.filter(
|
|
85
|
-
(deps) => deps.name !== tsLibDependency.name
|
|
86
|
-
);
|
|
87
|
-
dependencies.push(tsLibDependency);
|
|
88
|
-
}
|
|
89
71
|
const compilerOptions = await createTsCompilerOptions(
|
|
90
72
|
options.config,
|
|
91
73
|
options.tsconfig,
|
|
92
74
|
options.projectRoot,
|
|
93
|
-
dependencies
|
|
75
|
+
result.dependencies
|
|
94
76
|
);
|
|
95
77
|
return _rollupplugintypescript22.default.call(void 0, {
|
|
96
78
|
check: options.declaration !== false,
|
|
@@ -7,18 +7,14 @@ import {
|
|
|
7
7
|
createProjectGraphAsync,
|
|
8
8
|
readCachedProjectGraph
|
|
9
9
|
} from "@nx/devkit";
|
|
10
|
-
import { calculateProjectBuildableDependencies } from "@nx/js/
|
|
11
|
-
import {
|
|
12
|
-
getHelperDependency,
|
|
13
|
-
HelperDependency
|
|
14
|
-
} from "@nx/js/src/utils/compiler-helper-dependency";
|
|
10
|
+
import { calculateProjectBuildableDependencies } from "@nx/js/internal";
|
|
15
11
|
import ts2Plugin from "rollup-plugin-typescript2";
|
|
16
12
|
|
|
17
13
|
// src/utilities/helpers.ts
|
|
18
14
|
import { joinPathFragments } from "@nx/devkit";
|
|
19
15
|
import {
|
|
20
16
|
computeCompilerOptionsPaths
|
|
21
|
-
} from "@nx/js/
|
|
17
|
+
} from "@nx/js/internal";
|
|
22
18
|
import { dirname, extname } from "node:path";
|
|
23
19
|
import { pathToFileURL } from "node:url";
|
|
24
20
|
import ts from "typescript";
|
|
@@ -72,25 +68,11 @@ var tscPlugin = async (options) => {
|
|
|
72
68
|
process.env.NX_TASK_TARGET_CONFIGURATION || "production",
|
|
73
69
|
true
|
|
74
70
|
);
|
|
75
|
-
let dependencies = result.dependencies;
|
|
76
|
-
const tsLibDependency = getHelperDependency(
|
|
77
|
-
HelperDependency.tsc,
|
|
78
|
-
options.tsconfig,
|
|
79
|
-
dependencies,
|
|
80
|
-
projectGraph,
|
|
81
|
-
true
|
|
82
|
-
);
|
|
83
|
-
if (tsLibDependency) {
|
|
84
|
-
dependencies = dependencies.filter(
|
|
85
|
-
(deps) => deps.name !== tsLibDependency.name
|
|
86
|
-
);
|
|
87
|
-
dependencies.push(tsLibDependency);
|
|
88
|
-
}
|
|
89
71
|
const compilerOptions = await createTsCompilerOptions(
|
|
90
72
|
options.config,
|
|
91
73
|
options.tsconfig,
|
|
92
74
|
options.projectRoot,
|
|
93
|
-
dependencies
|
|
75
|
+
result.dependencies
|
|
94
76
|
);
|
|
95
77
|
return ts2Plugin({
|
|
96
78
|
check: options.declaration !== false,
|
|
@@ -10,7 +10,7 @@ var _chunkTI7LEWRNcjs = require('./chunk-TI7LEWRN.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkCCBZTNLEcjs = require('./chunk-CCBZTNLE.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -34,7 +34,7 @@ var _chunk5IFC3VFLcjs = require('./chunk-5IFC3VFL.cjs');
|
|
|
34
34
|
|
|
35
35
|
var _devkit = require('@nx/devkit');
|
|
36
36
|
var _js = require('@nx/js');
|
|
37
|
-
var
|
|
37
|
+
var _internal = require('@nx/js/internal');
|
|
38
38
|
|
|
39
39
|
// ../build-tools/src/plugins/swc.ts
|
|
40
40
|
var _core = require('@swc/core');
|
|
@@ -50,7 +50,7 @@ var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_reso
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
53
|
-
|
|
53
|
+
|
|
54
54
|
|
|
55
55
|
// ../config-tools/src/utilities/correct-paths.ts
|
|
56
56
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
@@ -211,7 +211,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
211
211
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${joinPaths(outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
212
212
|
config
|
|
213
213
|
);
|
|
214
|
-
const assetHandler = new (0,
|
|
214
|
+
const assetHandler = new (0, _internal.CopyAssetsHandler)({
|
|
215
215
|
projectDir: projectRoot,
|
|
216
216
|
rootDir: config.workspaceRoot,
|
|
217
217
|
outputDir: outputPath,
|
|
@@ -366,7 +366,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
366
366
|
"The Build process failed because the project graph is not available. Please run the build command again."
|
|
367
367
|
);
|
|
368
368
|
}
|
|
369
|
-
const projectDependencies =
|
|
369
|
+
const projectDependencies = _internal.calculateProjectBuildableDependencies.call(void 0,
|
|
370
370
|
void 0,
|
|
371
371
|
projectGraph,
|
|
372
372
|
workspaceRoot,
|
|
@@ -2000,7 +2000,7 @@ async function resolveOptions(options, config) {
|
|
|
2000
2000
|
_chunk5IFC3VFLcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
2001
2001
|
const stopwatch = _chunk5IFC3VFLcjs.getStopwatch.call(void 0, "Build options resolution");
|
|
2002
2002
|
if (options.configPath) {
|
|
2003
|
-
const configFile = await
|
|
2003
|
+
const configFile = await _chunkCCBZTNLEcjs.loadConfig.call(void 0, options.configPath);
|
|
2004
2004
|
if (configFile) {
|
|
2005
2005
|
options = _defu2.default.call(void 0, options, configFile);
|
|
2006
2006
|
}
|
|
@@ -2056,7 +2056,7 @@ async function resolveOptions(options, config) {
|
|
|
2056
2056
|
if (!_fs.existsSync.call(void 0, sourceRoot)) {
|
|
2057
2057
|
throw new Error("Cannot find sourceRoot directory");
|
|
2058
2058
|
}
|
|
2059
|
-
const result =
|
|
2059
|
+
const result = _internal.calculateProjectBuildableDependencies.call(void 0,
|
|
2060
2060
|
void 0,
|
|
2061
2061
|
projectGraph,
|
|
2062
2062
|
config.workspaceRoot,
|
|
@@ -2202,7 +2202,7 @@ async function resolveOptions(options, config) {
|
|
|
2202
2202
|
if (options.rollup) {
|
|
2203
2203
|
let rollup = {};
|
|
2204
2204
|
if (typeof options.rollup === "string") {
|
|
2205
|
-
const rollupFile = await
|
|
2205
|
+
const rollupFile = await _chunkCCBZTNLEcjs.loadConfig.call(void 0, options.rollup);
|
|
2206
2206
|
if (rollupFile) {
|
|
2207
2207
|
rollup = rollupFile;
|
|
2208
2208
|
}
|
|
@@ -2226,7 +2226,7 @@ async function resolveOptions(options, config) {
|
|
|
2226
2226
|
);
|
|
2227
2227
|
opts.plugins = await Promise.all([
|
|
2228
2228
|
_chunk4S37FSA4cjs.analyzePlugin.call(void 0, resolvedOptions),
|
|
2229
|
-
|
|
2229
|
+
_chunkCCBZTNLEcjs.tscPlugin.call(void 0, resolvedOptions),
|
|
2230
2230
|
_chunkTI7LEWRNcjs.onErrorPlugin.call(void 0, resolvedOptions)
|
|
2231
2231
|
]);
|
|
2232
2232
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkJUHGC5QJcjs = require('./chunk-JUHGC5QJ.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -16,7 +16,7 @@ require('./chunk-TI7LEWRN.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkCCBZTNLEcjs = require('./chunk-CCBZTNLE.cjs');
|
|
20
20
|
require('./chunk-5IFC3VFL.cjs');
|
|
21
21
|
require('./chunk-OBGZSXTJ.cjs');
|
|
22
22
|
|
|
@@ -30,4 +30,4 @@ require('./chunk-OBGZSXTJ.cjs');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
exports.build =
|
|
33
|
+
exports.build = _chunkJUHGC5QJcjs.build; exports.clean = _chunkSWMSXPOYcjs.clean; exports.cleanDirectories = _chunkSWMSXPOYcjs.cleanDirectories; exports.cleanOutputPath = _chunkJUHGC5QJcjs.cleanOutputPath; exports.copyBuildAssets = _chunkJUHGC5QJcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkCCBZTNLEcjs.createTsCompilerOptions; exports.executeUnbuild = _chunkJUHGC5QJcjs.executeUnbuild; exports.generatePackageJson = _chunkJUHGC5QJcjs.generatePackageJson; exports.loadConfig = _chunkCCBZTNLEcjs.loadConfig; exports.resolveOptions = _chunkJUHGC5QJcjs.resolveOptions;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { build, cleanOutputPath, copyBuildAssets, executeUnbuild, generatePackageJson, resolveOptions } from './build.cjs';
|
|
2
2
|
export { clean, cleanDirectories } from './clean.cjs';
|
|
3
3
|
export { DeepPartial, LoadFile, Loader, LoaderContext, LoaderInputFile, LoaderOptions, LoaderOutputFile, LoaderResult, Loaders, UnbuildCLIOptions, UnbuildOptions, UnbuildResolvedOptions } from './types.cjs';
|
|
4
|
-
import { DependentBuildableProjectNode } from '@nx/js/
|
|
4
|
+
import { DependentBuildableProjectNode } from '@nx/js/internal';
|
|
5
5
|
import { StormWorkspaceConfig } from '@storm-software/config';
|
|
6
6
|
import ts from 'typescript';
|
|
7
7
|
import { RollupBuildOptions } from 'unbuild';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { build, cleanOutputPath, copyBuildAssets, executeUnbuild, generatePackageJson, resolveOptions } from './build.js';
|
|
2
2
|
export { clean, cleanDirectories } from './clean.js';
|
|
3
3
|
export { DeepPartial, LoadFile, Loader, LoaderContext, LoaderInputFile, LoaderOptions, LoaderOutputFile, LoaderResult, Loaders, UnbuildCLIOptions, UnbuildOptions, UnbuildResolvedOptions } from './types.js';
|
|
4
|
-
import { DependentBuildableProjectNode } from '@nx/js/
|
|
4
|
+
import { DependentBuildableProjectNode } from '@nx/js/internal';
|
|
5
5
|
import { StormWorkspaceConfig } from '@storm-software/config';
|
|
6
6
|
import ts from 'typescript';
|
|
7
7
|
import { RollupBuildOptions } from 'unbuild';
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
executeUnbuild,
|
|
6
6
|
generatePackageJson,
|
|
7
7
|
resolveOptions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3VUCFPB3.js";
|
|
9
9
|
import {
|
|
10
10
|
clean,
|
|
11
11
|
cleanDirectories
|
|
@@ -16,7 +16,7 @@ import "./chunk-5YNMAFOH.js";
|
|
|
16
16
|
import {
|
|
17
17
|
createTsCompilerOptions,
|
|
18
18
|
loadConfig
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JGH35XTB.js";
|
|
20
20
|
import "./chunk-ZO3LA4ZI.js";
|
|
21
21
|
import "./chunk-3RG5ZIWI.js";
|
|
22
22
|
export {
|
package/dist/plugins/tsc.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkCCBZTNLEcjs = require('../chunk-CCBZTNLE.cjs');
|
|
4
4
|
require('../chunk-5IFC3VFL.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.tscPlugin =
|
|
8
|
+
exports.tscPlugin = _chunkCCBZTNLEcjs.tscPlugin;
|
package/dist/plugins/tsc.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/unbuild",
|
|
3
|
-
"version": "0.57.
|
|
3
|
+
"version": "0.57.243",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing `unbuild` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"keywords": [
|
|
@@ -132,9 +132,9 @@
|
|
|
132
132
|
},
|
|
133
133
|
"files": ["dist/**/*"],
|
|
134
134
|
"dependencies": {
|
|
135
|
-
"@storm-software/build-tools": "^0.158.
|
|
136
|
-
"@storm-software/config": "^1.138.
|
|
137
|
-
"@storm-software/config-tools": "^1.190.
|
|
135
|
+
"@storm-software/build-tools": "^0.158.242",
|
|
136
|
+
"@storm-software/config": "^1.138.19",
|
|
137
|
+
"@storm-software/config-tools": "^1.190.82",
|
|
138
138
|
"commander": "^12.1.0",
|
|
139
139
|
"defu": "^6.1.7",
|
|
140
140
|
"esbuild": "^0.25.12",
|
|
@@ -147,19 +147,19 @@
|
|
|
147
147
|
"unbuild": "^3.6.1"
|
|
148
148
|
},
|
|
149
149
|
"devDependencies": {
|
|
150
|
-
"@nx/devkit": "
|
|
151
|
-
"@nx/js": "
|
|
150
|
+
"@nx/devkit": "23.0.1",
|
|
151
|
+
"@nx/js": "23.0.1",
|
|
152
152
|
"@swc/core": "1.7.26",
|
|
153
153
|
"@types/node": "^25.9.4",
|
|
154
|
-
"nx": "
|
|
154
|
+
"nx": "23.0.1",
|
|
155
155
|
"tsup": "8.4.0",
|
|
156
156
|
"typescript": "^5.9.3"
|
|
157
157
|
},
|
|
158
158
|
"peerDependencies": {
|
|
159
|
-
"@nx/devkit": "
|
|
160
|
-
"@nx/js": "
|
|
159
|
+
"@nx/devkit": "23.0.1",
|
|
160
|
+
"@nx/js": "23.0.1",
|
|
161
161
|
"@swc/core": "1.7.26",
|
|
162
|
-
"nx": "
|
|
162
|
+
"nx": "23.0.1",
|
|
163
163
|
"rollup": "^4.62.2",
|
|
164
164
|
"typescript": "^5.9.2"
|
|
165
165
|
},
|
|
@@ -172,5 +172,5 @@
|
|
|
172
172
|
"typescript": { "optional": false }
|
|
173
173
|
},
|
|
174
174
|
"publishConfig": { "access": "public" },
|
|
175
|
-
"gitHead": "
|
|
175
|
+
"gitHead": "3fe24e50009c66cd4ff8b417a44f904740d0283a"
|
|
176
176
|
}
|