@storm-software/workspace-tools 1.246.0 → 1.246.2
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/CHANGELOG.md +18 -0
- package/README.md +1 -1
- package/dist/{chunk-7Q66XSCS.mjs → chunk-2AKLJNKO.mjs} +2 -2
- package/dist/{chunk-6QSFQS3X.js → chunk-34JK7ZOU.js} +2 -2
- package/dist/{chunk-CLBFXZQ5.mjs → chunk-3SPGOKCO.mjs} +1 -1
- package/dist/{chunk-HXU5ZXAJ.mjs → chunk-4F75KA7J.mjs} +1 -1
- package/dist/{chunk-UI3SQYV3.mjs → chunk-4YODDZMS.mjs} +1 -1
- package/dist/{chunk-KLHTXAIU.js → chunk-66FRJGIN.js} +20 -20
- package/dist/{chunk-U6TLQT5H.js → chunk-6V5GP3U4.js} +3 -3
- package/dist/{chunk-5XF4CY7D.mjs → chunk-7QVGAOPQ.mjs} +1 -1
- package/dist/{chunk-GJ6DN3BR.mjs → chunk-AQLXZBXJ.mjs} +3 -3
- package/dist/{chunk-5DAZ2WTI.js → chunk-AWPP7DRY.js} +2 -2
- package/dist/{chunk-IBHLVELV.js → chunk-AY5HELLN.js} +25 -25
- package/dist/{chunk-EUCOXCI2.mjs → chunk-BBRVJL4A.mjs} +4 -4
- package/dist/{chunk-6627ZZQF.mjs → chunk-BC3QVHAH.mjs} +4 -4
- package/dist/{chunk-ZOFW74B2.mjs → chunk-BLG6LLHW.mjs} +1 -1
- package/dist/{chunk-HONSACRT.js → chunk-BNYY2WQJ.js} +2 -2
- package/dist/{chunk-2HD75CLD.js → chunk-BYLPQCIB.js} +11 -11
- package/dist/{chunk-MMMTLP2W.js → chunk-CQAGLRNY.js} +5 -5
- package/dist/{chunk-2GRVQNW3.js → chunk-CUPARBOS.js} +3 -3
- package/dist/{chunk-RAVLTWJV.js → chunk-ECSCURQQ.js} +13 -13
- package/dist/{chunk-D2ECVPJF.js → chunk-EIL3PQQL.js} +2 -2
- package/dist/{chunk-XIOF32ZH.mjs → chunk-FBIVTCSJ.mjs} +1 -1
- package/dist/{chunk-RRWRVA7F.js → chunk-FDPZRNKZ.js} +15 -15
- package/dist/{chunk-RSILHGEU.js → chunk-G3AMYMML.js} +22 -22
- package/dist/{chunk-SNFZL5BN.mjs → chunk-GQ6ZBQ6I.mjs} +3 -3
- package/dist/{chunk-RFO5NMSB.js → chunk-H5XURNDS.js} +2 -2
- package/dist/{chunk-Q45DDLNL.mjs → chunk-HK26KBWU.mjs} +2 -2
- package/dist/{chunk-TGDWEUKX.mjs → chunk-I6BCQJPP.mjs} +1 -1
- package/dist/{chunk-IUV3RLT4.mjs → chunk-IPMZQTRA.mjs} +1 -1
- package/dist/{chunk-YWKUJJ34.js → chunk-ITL2GPJB.js} +2 -2
- package/dist/chunk-JTAXCQX6.js +135 -0
- package/dist/{chunk-RLGZCVPW.mjs → chunk-KPKHTJWT.mjs} +3 -3
- package/dist/{chunk-PKBHUBDV.mjs → chunk-KV7YB4MU.mjs} +1 -1
- package/dist/{chunk-PCPEJBLO.js → chunk-LZNWOO4B.js} +7 -7
- package/dist/{chunk-YSYBVJGR.js → chunk-N3WLDHSN.js} +2 -2
- package/dist/chunk-NCFX2MWO.mjs +135 -0
- package/dist/{chunk-LYUV4LMB.mjs → chunk-O3ZLX7S5.mjs} +2 -2
- package/dist/{chunk-IF2GIONQ.js → chunk-P4ALYDGC.js} +5 -5
- package/dist/{chunk-C3YSVZWO.js → chunk-Q2DU6KGV.js} +7 -7
- package/dist/{chunk-T2NTGJ6O.mjs → chunk-Q47LFUGL.mjs} +3 -3
- package/dist/{chunk-6N67WSX5.mjs → chunk-R7VJ7ZHV.mjs} +1 -1
- package/dist/{chunk-GYGIXXAL.js → chunk-RWDBQOGV.js} +5 -5
- package/dist/{chunk-C2REXPET.mjs → chunk-SLCOHXD3.mjs} +1 -1
- package/dist/{chunk-KWIXQ4UN.mjs → chunk-TBQLIKD4.mjs} +3 -3
- package/dist/{chunk-INEO4WKL.mjs → chunk-TJ6WVBYM.mjs} +3 -3
- package/dist/{chunk-6ZRK5I4N.js → chunk-U3TVR7B3.js} +7 -7
- package/dist/{chunk-UHNTJRTW.mjs → chunk-U4AQXXXF.mjs} +3 -3
- package/dist/{chunk-FZUZUTKX.js → chunk-U7TEDNQF.js} +41 -41
- package/dist/{chunk-K62HB3IT.mjs → chunk-WCIY3TEF.mjs} +1 -1
- package/dist/{chunk-YFERQMWX.js → chunk-WPYYDD5F.js} +2 -2
- package/dist/{chunk-7PLUDZNP.mjs → chunk-X7XA6QPV.mjs} +2 -2
- package/dist/{chunk-CFRPLVEU.mjs → chunk-XI4BWTXX.mjs} +2 -2
- package/dist/{chunk-GDE7VBWW.js → chunk-Z6E637KA.js} +62 -62
- package/dist/{chunk-M7ZE5SMZ.js → chunk-ZAE2P6GK.js} +7 -7
- package/dist/{chunk-SBCLCF4E.mjs → chunk-ZKWGOANM.mjs} +4 -4
- package/dist/{chunk-B6PUPX6O.js → chunk-ZQPK5G4U.js} +27 -27
- package/dist/{chunk-QSLN7UYG.js → chunk-ZVP6NBMF.js} +2 -2
- package/dist/executors.js +19 -19
- package/dist/executors.mjs +20 -20
- package/dist/generators.js +13 -13
- package/dist/generators.mjs +12 -12
- package/dist/index.js +29 -29
- package/dist/index.mjs +30 -30
- package/dist/src/base/base-executor.js +6 -6
- package/dist/src/base/base-executor.mjs +5 -5
- package/dist/src/base/base-generator.js +6 -6
- package/dist/src/base/base-generator.mjs +5 -5
- package/dist/src/base/index.js +8 -8
- package/dist/src/base/index.mjs +7 -7
- package/dist/src/executors/cargo-build/executor.js +7 -7
- package/dist/src/executors/cargo-build/executor.mjs +6 -6
- package/dist/src/executors/cargo-check/executor.js +7 -7
- package/dist/src/executors/cargo-check/executor.mjs +6 -6
- package/dist/src/executors/cargo-clippy/executor.js +7 -7
- package/dist/src/executors/cargo-clippy/executor.mjs +6 -6
- package/dist/src/executors/cargo-doc/executor.js +7 -7
- package/dist/src/executors/cargo-doc/executor.mjs +6 -6
- package/dist/src/executors/cargo-format/executor.js +7 -7
- package/dist/src/executors/cargo-format/executor.mjs +6 -6
- package/dist/src/executors/clean-package/executor.js +9 -9
- package/dist/src/executors/clean-package/executor.mjs +5 -5
- package/dist/src/executors/esbuild/executor.js +8 -8
- package/dist/src/executors/esbuild/executor.mjs +7 -7
- package/dist/src/executors/npm-publish/executor.js +4 -4
- package/dist/src/executors/npm-publish/executor.mjs +3 -3
- package/dist/src/executors/size-limit/executor.js +7 -7
- package/dist/src/executors/size-limit/executor.mjs +6 -6
- package/dist/src/executors/tsdown/executor.js +8 -8
- package/dist/src/executors/tsdown/executor.mjs +7 -7
- package/dist/src/executors/typia/executor.js +7 -7
- package/dist/src/executors/typia/executor.mjs +6 -6
- package/dist/src/executors/unbuild/executor.js +7 -7
- package/dist/src/executors/unbuild/executor.mjs +6 -6
- package/dist/src/generators/browser-library/generator.js +8 -8
- package/dist/src/generators/browser-library/generator.mjs +7 -7
- package/dist/src/generators/config-schema/generator.js +7 -7
- package/dist/src/generators/config-schema/generator.mjs +6 -6
- package/dist/src/generators/neutral-library/generator.js +8 -8
- package/dist/src/generators/neutral-library/generator.mjs +7 -7
- package/dist/src/generators/node-library/generator.js +8 -8
- package/dist/src/generators/node-library/generator.mjs +7 -7
- package/dist/src/generators/preset/generator.js +7 -7
- package/dist/src/generators/preset/generator.mjs +6 -6
- package/dist/src/generators/release-version/generator.js +5 -5
- package/dist/src/generators/release-version/generator.mjs +4 -4
- package/dist/src/utils/apply-workspace-tokens.js +4 -4
- package/dist/src/utils/apply-workspace-tokens.mjs +3 -3
- package/dist/src/utils/get-project-configurations.js +4 -4
- package/dist/src/utils/get-project-configurations.mjs +3 -3
- package/dist/src/utils/index.js +6 -6
- package/dist/src/utils/index.mjs +5 -5
- package/dist/src/utils/pnpm-deps-update.js +3 -3
- package/dist/src/utils/pnpm-deps-update.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-2AUNU6UA.mjs +0 -32
- package/dist/chunk-BUXJSVJG.js +0 -32
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkAY5HELLNjs = require('./chunk-AY5HELLN.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ async function cargoBuildExecutor(options, context) {
|
|
|
15
15
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
17
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoBuildExecutor, "cargoBuildExecutor");
|
|
18
|
-
var executor_default =
|
|
18
|
+
var executor_default = _chunkAY5HELLNjs.withRunExecutor.call(void 0, "Cargo Build", cargoBuildExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__name
|
|
3
|
+
} from "./chunk-XUV4U54K.mjs";
|
|
4
|
+
|
|
5
|
+
// ../config-tools/src/utilities/correct-paths.ts
|
|
6
|
+
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
7
|
+
function normalizeWindowsPath(input = "") {
|
|
8
|
+
if (!input) {
|
|
9
|
+
return input;
|
|
10
|
+
}
|
|
11
|
+
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
12
|
+
}
|
|
13
|
+
__name(normalizeWindowsPath, "normalizeWindowsPath");
|
|
14
|
+
var _UNC_REGEX = /^[/\\]{2}/;
|
|
15
|
+
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
16
|
+
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
17
|
+
var correctPaths = /* @__PURE__ */ __name(function(path) {
|
|
18
|
+
if (!path || path.length === 0) {
|
|
19
|
+
return ".";
|
|
20
|
+
}
|
|
21
|
+
path = normalizeWindowsPath(path);
|
|
22
|
+
const isUNCPath = path.match(_UNC_REGEX);
|
|
23
|
+
const isPathAbsolute = isAbsolute(path);
|
|
24
|
+
const trailingSeparator = path[path.length - 1] === "/";
|
|
25
|
+
path = normalizeString(path, !isPathAbsolute);
|
|
26
|
+
if (path.length === 0) {
|
|
27
|
+
if (isPathAbsolute) {
|
|
28
|
+
return "/";
|
|
29
|
+
}
|
|
30
|
+
return trailingSeparator ? "./" : ".";
|
|
31
|
+
}
|
|
32
|
+
if (trailingSeparator) {
|
|
33
|
+
path += "/";
|
|
34
|
+
}
|
|
35
|
+
if (_DRIVE_LETTER_RE.test(path)) {
|
|
36
|
+
path += "/";
|
|
37
|
+
}
|
|
38
|
+
if (isUNCPath) {
|
|
39
|
+
if (!isPathAbsolute) {
|
|
40
|
+
return `//./${path}`;
|
|
41
|
+
}
|
|
42
|
+
return `//${path}`;
|
|
43
|
+
}
|
|
44
|
+
return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
|
|
45
|
+
}, "correctPaths");
|
|
46
|
+
var joinPaths = /* @__PURE__ */ __name(function(...segments) {
|
|
47
|
+
let path = "";
|
|
48
|
+
for (const seg of segments) {
|
|
49
|
+
if (!seg) {
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
if (path.length > 0) {
|
|
53
|
+
const pathTrailing = path[path.length - 1] === "/";
|
|
54
|
+
const segLeading = seg[0] === "/";
|
|
55
|
+
const both = pathTrailing && segLeading;
|
|
56
|
+
if (both) {
|
|
57
|
+
path += seg.slice(1);
|
|
58
|
+
} else {
|
|
59
|
+
path += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
60
|
+
}
|
|
61
|
+
} else {
|
|
62
|
+
path += seg;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return correctPaths(path);
|
|
66
|
+
}, "joinPaths");
|
|
67
|
+
function normalizeString(path, allowAboveRoot) {
|
|
68
|
+
let res = "";
|
|
69
|
+
let lastSegmentLength = 0;
|
|
70
|
+
let lastSlash = -1;
|
|
71
|
+
let dots = 0;
|
|
72
|
+
let char = null;
|
|
73
|
+
for (let index = 0; index <= path.length; ++index) {
|
|
74
|
+
if (index < path.length) {
|
|
75
|
+
char = path[index];
|
|
76
|
+
} else if (char === "/") {
|
|
77
|
+
break;
|
|
78
|
+
} else {
|
|
79
|
+
char = "/";
|
|
80
|
+
}
|
|
81
|
+
if (char === "/") {
|
|
82
|
+
if (lastSlash === index - 1 || dots === 1) {
|
|
83
|
+
} else if (dots === 2) {
|
|
84
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
85
|
+
if (res.length > 2) {
|
|
86
|
+
const lastSlashIndex = res.lastIndexOf("/");
|
|
87
|
+
if (lastSlashIndex === -1) {
|
|
88
|
+
res = "";
|
|
89
|
+
lastSegmentLength = 0;
|
|
90
|
+
} else {
|
|
91
|
+
res = res.slice(0, lastSlashIndex);
|
|
92
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
93
|
+
}
|
|
94
|
+
lastSlash = index;
|
|
95
|
+
dots = 0;
|
|
96
|
+
continue;
|
|
97
|
+
} else if (res.length > 0) {
|
|
98
|
+
res = "";
|
|
99
|
+
lastSegmentLength = 0;
|
|
100
|
+
lastSlash = index;
|
|
101
|
+
dots = 0;
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
if (allowAboveRoot) {
|
|
106
|
+
res += res.length > 0 ? "/.." : "..";
|
|
107
|
+
lastSegmentLength = 2;
|
|
108
|
+
}
|
|
109
|
+
} else {
|
|
110
|
+
if (res.length > 0) {
|
|
111
|
+
res += `/${path.slice(lastSlash + 1, index)}`;
|
|
112
|
+
} else {
|
|
113
|
+
res = path.slice(lastSlash + 1, index);
|
|
114
|
+
}
|
|
115
|
+
lastSegmentLength = index - lastSlash - 1;
|
|
116
|
+
}
|
|
117
|
+
lastSlash = index;
|
|
118
|
+
dots = 0;
|
|
119
|
+
} else if (char === "." && dots !== -1) {
|
|
120
|
+
++dots;
|
|
121
|
+
} else {
|
|
122
|
+
dots = -1;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return res;
|
|
126
|
+
}
|
|
127
|
+
__name(normalizeString, "normalizeString");
|
|
128
|
+
var isAbsolute = /* @__PURE__ */ __name(function(p) {
|
|
129
|
+
return _IS_ABSOLUTE_RE.test(p);
|
|
130
|
+
}, "isAbsolute");
|
|
131
|
+
|
|
132
|
+
export {
|
|
133
|
+
correctPaths,
|
|
134
|
+
joinPaths
|
|
135
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkAY5HELLNjs = require('./chunk-AY5HELLN.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZQPK5G4Ujs = require('./chunk-ZQPK5G4U.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -13,11 +13,11 @@ var _fsextra = require('fs-extra');
|
|
|
13
13
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
14
14
|
async function typiaExecutorFn(options, _, config) {
|
|
15
15
|
if (options.clean !== false) {
|
|
16
|
-
|
|
16
|
+
_chunkZQPK5G4Ujs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
17
17
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
18
18
|
}
|
|
19
19
|
await Promise.all(options.entry.map((entry) => {
|
|
20
|
-
|
|
20
|
+
_chunkZQPK5G4Ujs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
21
21
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
22
22
|
input: entry,
|
|
23
23
|
output: options.outputPath,
|
|
@@ -29,7 +29,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
_chunk3GQAWCBQjs.__name.call(void 0, typiaExecutorFn, "typiaExecutorFn");
|
|
32
|
-
var executor_default =
|
|
32
|
+
var executor_default = _chunkAY5HELLNjs.withRunExecutor.call(void 0, "Typia runtime validation generator", typiaExecutorFn, {
|
|
33
33
|
skipReadingConfig: false,
|
|
34
34
|
hooks: {
|
|
35
35
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkECSCURQQjs = require('./chunk-ECSCURQQ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk66FRJGINjs = require('./chunk-66FRJGIN.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
15
15
|
// src/generators/browser-library/generator.ts
|
|
16
16
|
var _devkit = require('@nx/devkit');
|
|
17
17
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
18
|
-
const filesDir =
|
|
18
|
+
const filesDir = _chunkJTAXCQX6js.joinPaths.call(void 0, __dirname, "src", "generators", "browser-library", "files");
|
|
19
19
|
const tsLibraryGeneratorOptions = {
|
|
20
20
|
buildExecutor: "@storm-software/workspace-tools:unbuild",
|
|
21
21
|
platform: "browser",
|
|
@@ -40,7 +40,7 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
40
40
|
description: schema.description,
|
|
41
41
|
directory: schema.directory
|
|
42
42
|
};
|
|
43
|
-
const options = await
|
|
43
|
+
const options = await _chunkECSCURQQjs.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
|
|
44
44
|
const { className, name, propertyName } = _devkit.names.call(void 0, options.projectNames.projectFileName);
|
|
45
45
|
_devkit.generateFiles.call(void 0, tree, filesDir, options.projectRoot, {
|
|
46
46
|
...schema,
|
|
@@ -68,12 +68,12 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
-
await
|
|
71
|
+
await _chunkECSCURQQjs.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
|
|
72
72
|
await _devkit.formatFiles.call(void 0, tree);
|
|
73
73
|
return null;
|
|
74
74
|
}
|
|
75
75
|
_chunk3GQAWCBQjs.__name.call(void 0, browserLibraryGeneratorFn, "browserLibraryGeneratorFn");
|
|
76
|
-
var generator_default =
|
|
76
|
+
var generator_default = _chunk66FRJGINjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Browser Platform)", browserLibraryGeneratorFn, {
|
|
77
77
|
hooks: {
|
|
78
78
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
79
79
|
options.description ??= "A library used by Storm Software to support browser applications";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeOptions,
|
|
3
3
|
typeScriptLibraryGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SLCOHXD3.mjs";
|
|
5
5
|
import {
|
|
6
6
|
typesNodeVersion
|
|
7
7
|
} from "./chunk-EK75QNMS.mjs";
|
|
8
8
|
import {
|
|
9
9
|
withRunGenerator
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GQ6ZBQ6I.mjs";
|
|
11
11
|
import {
|
|
12
12
|
joinPaths
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NCFX2MWO.mjs";
|
|
14
14
|
import {
|
|
15
15
|
__dirname,
|
|
16
16
|
__name
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkAY5HELLNjs = require('./chunk-AY5HELLN.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZQPK5G4Ujs = require('./chunk-ZQPK5G4U.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -18,7 +18,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
18
18
|
if (!_optionalChain([context, 'optionalAccess', _ => _.projectName]) || !_optionalChain([context, 'access', _2 => _2.projectsConfigurations, 'optionalAccess', _3 => _3.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
|
|
19
19
|
throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
_chunkZQPK5G4Ujs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
22
22
|
_sizelimit2.default.call(void 0, [
|
|
23
23
|
_file2.default,
|
|
24
24
|
_esbuild2.default,
|
|
@@ -26,14 +26,14 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
26
26
|
], {
|
|
27
27
|
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _4 => _4.projectsConfigurations, 'access', _5 => _5.projects, 'access', _6 => _6[context.projectName], 'optionalAccess', _7 => _7.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context, 'access', _8 => _8.projectsConfigurations, 'access', _9 => _9.projects, 'access', _10 => _10[context.projectName], 'optionalAccess', _11 => _11.root]), () => ( "./")), "src")))
|
|
28
28
|
}).then((result) => {
|
|
29
|
-
|
|
29
|
+
_chunkZQPK5G4Ujs.writeInfo.call(void 0, `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
|
|
30
30
|
});
|
|
31
31
|
return {
|
|
32
32
|
success: true
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
_chunk3GQAWCBQjs.__name.call(void 0, sizeLimitExecutorFn, "sizeLimitExecutorFn");
|
|
36
|
-
var executor_default =
|
|
36
|
+
var executor_default = _chunkAY5HELLNjs.withRunExecutor.call(void 0, "Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
|
|
37
37
|
skipReadingConfig: false,
|
|
38
38
|
hooks: {
|
|
39
39
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunGenerator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GQ6ZBQ6I.mjs";
|
|
4
4
|
import {
|
|
5
5
|
StormConfigSchema,
|
|
6
6
|
writeInfo,
|
|
7
7
|
writeSuccess,
|
|
8
8
|
writeTrace
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2AKLJNKO.mjs";
|
|
10
10
|
import {
|
|
11
11
|
findWorkspaceRoot
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BLG6LLHW.mjs";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-XUV4U54K.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AQLXZBXJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2AKLJNKO.mjs";
|
|
7
7
|
import {
|
|
8
8
|
joinPaths
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NCFX2MWO.mjs";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-XUV4U54K.mjs";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkECSCURQQjs = require('./chunk-ECSCURQQ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk66FRJGINjs = require('./chunk-66FRJGIN.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -18,7 +18,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
18
18
|
// src/generators/node-library/generator.ts
|
|
19
19
|
var _devkit = require('@nx/devkit');
|
|
20
20
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
21
|
-
const filesDir =
|
|
21
|
+
const filesDir = _chunkJTAXCQX6js.joinPaths.call(void 0, __dirname, "src", "generators", "node-library", "files");
|
|
22
22
|
const tsLibraryGeneratorOptions = {
|
|
23
23
|
platform: "node",
|
|
24
24
|
devDependencies: {
|
|
@@ -29,7 +29,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
|
29
29
|
directory: schema.directory,
|
|
30
30
|
description: schema.description
|
|
31
31
|
};
|
|
32
|
-
const options = await
|
|
32
|
+
const options = await _chunkECSCURQQjs.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
|
|
33
33
|
const { className, name, propertyName } = _devkit.names.call(void 0, options.name);
|
|
34
34
|
_devkit.generateFiles.call(void 0, tree, filesDir, options.projectRoot, {
|
|
35
35
|
...schema,
|
|
@@ -47,12 +47,12 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
|
47
47
|
buildable: options.bundler && options.bundler !== "none",
|
|
48
48
|
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
49
49
|
});
|
|
50
|
-
await
|
|
50
|
+
await _chunkECSCURQQjs.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
|
|
51
51
|
await _devkit.formatFiles.call(void 0, tree);
|
|
52
52
|
return null;
|
|
53
53
|
}
|
|
54
54
|
_chunk3GQAWCBQjs.__name.call(void 0, nodeLibraryGeneratorFn, "nodeLibraryGeneratorFn");
|
|
55
|
-
var generator_default =
|
|
55
|
+
var generator_default = _chunk66FRJGINjs.withRunGenerator.call(void 0, "TypeScript Library Creator (NodeJs Platform)", nodeLibraryGeneratorFn, {
|
|
56
56
|
hooks: {
|
|
57
57
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
58
58
|
options.description ??= "A library used by Storm Software to support NodeJs applications";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeOptions,
|
|
3
3
|
typeScriptLibraryGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SLCOHXD3.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GQ6ZBQ6I.mjs";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NCFX2MWO.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__dirname,
|
|
13
13
|
__name
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkG3AMYMMLjs = require('./chunk-G3AMYMML.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkAY5HELLNjs = require('./chunk-AY5HELLN.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -19,10 +19,10 @@ var _chunkIBHLVELVjs = require('./chunk-IBHLVELV.js');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkZQPK5G4Ujs = require('./chunk-ZQPK5G4U.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -74,13 +74,13 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
74
74
|
if (!workspaceRoot) {
|
|
75
75
|
throw new Error("Cannot find Nx workspace root");
|
|
76
76
|
}
|
|
77
|
-
const config = await
|
|
78
|
-
|
|
79
|
-
const stopwatch =
|
|
77
|
+
const config = await _chunkZQPK5G4Ujs.getConfig.call(void 0, workspaceRoot.dir);
|
|
78
|
+
_chunkZQPK5G4Ujs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
79
|
+
const stopwatch = _chunkZQPK5G4Ujs.getStopwatch.call(void 0, "Build options resolution");
|
|
80
80
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
81
81
|
exitOnError: true
|
|
82
82
|
});
|
|
83
|
-
const projectJsonPath =
|
|
83
|
+
const projectJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
|
|
84
84
|
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
85
85
|
throw new Error("Cannot find project.json configuration");
|
|
86
86
|
}
|
|
@@ -93,30 +93,30 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
93
93
|
}
|
|
94
94
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
95
95
|
options.name ??= `${projectName}-${options.format}`;
|
|
96
|
-
options.target ??=
|
|
97
|
-
const packageJsonPath =
|
|
96
|
+
options.target ??= _chunkG3AMYMMLjs.DEFAULT_TARGET;
|
|
97
|
+
const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
98
98
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
99
99
|
throw new Error("Cannot find package.json configuration");
|
|
100
100
|
}
|
|
101
|
-
const env =
|
|
101
|
+
const env = _chunkG3AMYMMLjs.getEnv.call(void 0, "tsdown", options);
|
|
102
102
|
const result = {
|
|
103
103
|
...options,
|
|
104
104
|
config,
|
|
105
105
|
...userOptions,
|
|
106
|
-
tsconfig:
|
|
106
|
+
tsconfig: _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
107
107
|
format: options.format || "cjs",
|
|
108
|
-
entryPoints: await
|
|
108
|
+
entryPoints: await _chunkG3AMYMMLjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
109
109
|
"./src/index.ts"
|
|
110
110
|
], userOptions.emitOnAll),
|
|
111
|
-
outdir: userOptions.outputPath ||
|
|
111
|
+
outdir: userOptions.outputPath || _chunkJTAXCQX6js.joinPaths.call(void 0, "dist", projectRoot),
|
|
112
112
|
plugins: [],
|
|
113
113
|
name: userOptions.name || projectName,
|
|
114
114
|
projectConfigurations,
|
|
115
115
|
projectName,
|
|
116
116
|
projectGraph,
|
|
117
|
-
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot ||
|
|
117
|
+
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, "src"),
|
|
118
118
|
minify: userOptions.minify || !userOptions.debug,
|
|
119
|
-
verbose: userOptions.verbose ||
|
|
119
|
+
verbose: userOptions.verbose || _chunkZQPK5G4Ujs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
120
120
|
includeSrc: userOptions.includeSrc === true,
|
|
121
121
|
metafile: userOptions.metafile !== false,
|
|
122
122
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -150,23 +150,23 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
150
150
|
return result;
|
|
151
151
|
}, "resolveOptions");
|
|
152
152
|
async function generatePackageJson(options) {
|
|
153
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
154
|
-
|
|
155
|
-
const stopwatch =
|
|
156
|
-
const packageJsonPath =
|
|
153
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
154
|
+
_chunkZQPK5G4Ujs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
|
|
155
|
+
const stopwatch = _chunkZQPK5G4Ujs.getStopwatch.call(void 0, "Write package.json file");
|
|
156
|
+
const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
157
157
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
158
158
|
throw new Error("Cannot find package.json configuration");
|
|
159
159
|
}
|
|
160
|
-
const packageJsonFile = await _promises2.default.readFile(
|
|
160
|
+
const packageJsonFile = await _promises2.default.readFile(_chunkJTAXCQX6js.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
|
|
161
161
|
if (!packageJsonFile) {
|
|
162
162
|
throw new Error("Cannot find package.json configuration file");
|
|
163
163
|
}
|
|
164
164
|
let packageJson = JSON.parse(packageJsonFile);
|
|
165
|
-
packageJson = await
|
|
166
|
-
packageJson = await
|
|
165
|
+
packageJson = await _chunkG3AMYMMLjs.addPackageDependencies.call(void 0, options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
|
|
166
|
+
packageJson = await _chunkG3AMYMMLjs.addWorkspacePackageJsonFields.call(void 0, options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
|
|
167
167
|
packageJson.exports ??= {};
|
|
168
168
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
169
|
-
packageJson.exports["."] ??=
|
|
169
|
+
packageJson.exports["."] ??= _chunkG3AMYMMLjs.addPackageJsonExport.call(void 0, "index", packageJson.type, options.sourceRoot);
|
|
170
170
|
let entryPoints = [
|
|
171
171
|
{
|
|
172
172
|
in: "./src/index.ts",
|
|
@@ -184,7 +184,7 @@ async function generatePackageJson(options) {
|
|
|
184
184
|
const split = entryPoint.out.split(".");
|
|
185
185
|
split.pop();
|
|
186
186
|
const entry = split.join(".").replaceAll("\\", "/");
|
|
187
|
-
packageJson.exports[`./${entry}`] ??=
|
|
187
|
+
packageJson.exports[`./${entry}`] ??= _chunkG3AMYMMLjs.addPackageJsonExport.call(void 0, entry, packageJson.type, options.sourceRoot);
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
|
|
@@ -196,15 +196,15 @@ async function generatePackageJson(options) {
|
|
|
196
196
|
}
|
|
197
197
|
return ret;
|
|
198
198
|
}, packageJson.exports);
|
|
199
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
199
|
+
await _devkit.writeJsonFile.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
|
|
200
200
|
stopwatch();
|
|
201
201
|
}
|
|
202
202
|
return options;
|
|
203
203
|
}
|
|
204
204
|
_chunk3GQAWCBQjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
|
|
205
205
|
async function executeTSDown(options) {
|
|
206
|
-
|
|
207
|
-
const stopwatch =
|
|
206
|
+
_chunkZQPK5G4Ujs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
|
|
207
|
+
const stopwatch = _chunkZQPK5G4Ujs.getStopwatch.call(void 0, `${options.name} build`);
|
|
208
208
|
await _tsdown.build.call(void 0, {
|
|
209
209
|
...options,
|
|
210
210
|
entry: options.entryPoints,
|
|
@@ -216,21 +216,21 @@ async function executeTSDown(options) {
|
|
|
216
216
|
}
|
|
217
217
|
_chunk3GQAWCBQjs.__name.call(void 0, executeTSDown, "executeTSDown");
|
|
218
218
|
async function copyBuildAssets(options) {
|
|
219
|
-
|
|
220
|
-
const stopwatch =
|
|
221
|
-
await
|
|
219
|
+
_chunkZQPK5G4Ujs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
|
|
220
|
+
const stopwatch = _chunkZQPK5G4Ujs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
221
|
+
await _chunkG3AMYMMLjs.copyAssets.call(void 0, options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.sourceRoot, true, false);
|
|
222
222
|
stopwatch();
|
|
223
223
|
return options;
|
|
224
224
|
}
|
|
225
225
|
_chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
226
226
|
async function reportResults(options) {
|
|
227
|
-
|
|
227
|
+
_chunkZQPK5G4Ujs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
|
|
228
228
|
}
|
|
229
229
|
_chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
|
|
230
230
|
async function cleanOutputPath(options) {
|
|
231
231
|
if (options.clean !== false && options.outdir) {
|
|
232
|
-
|
|
233
|
-
const stopwatch =
|
|
232
|
+
_chunkZQPK5G4Ujs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
|
|
233
|
+
const stopwatch = _chunkZQPK5G4Ujs.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
234
234
|
await cleanDirectories(options.name, options.outdir, options.config);
|
|
235
235
|
stopwatch();
|
|
236
236
|
}
|
|
@@ -238,8 +238,8 @@ async function cleanOutputPath(options) {
|
|
|
238
238
|
}
|
|
239
239
|
_chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
240
240
|
async function build(options) {
|
|
241
|
-
|
|
242
|
-
const stopwatch =
|
|
241
|
+
_chunkZQPK5G4Ujs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
|
|
242
|
+
const stopwatch = _chunkZQPK5G4Ujs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
243
243
|
try {
|
|
244
244
|
const opts = Array.isArray(options) ? options : [
|
|
245
245
|
options
|
|
@@ -257,11 +257,11 @@ async function build(options) {
|
|
|
257
257
|
await reportResults(opt);
|
|
258
258
|
}));
|
|
259
259
|
} else {
|
|
260
|
-
|
|
260
|
+
_chunkZQPK5G4Ujs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
|
|
261
261
|
}
|
|
262
|
-
|
|
262
|
+
_chunkZQPK5G4Ujs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
263
263
|
} catch (error) {
|
|
264
|
-
|
|
264
|
+
_chunkZQPK5G4Ujs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
|
|
265
265
|
throw error;
|
|
266
266
|
} finally {
|
|
267
267
|
stopwatch();
|
|
@@ -271,7 +271,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, build, "build");
|
|
|
271
271
|
|
|
272
272
|
// src/executors/tsdown/executor.ts
|
|
273
273
|
async function tsdownExecutorFn(options, context, config) {
|
|
274
|
-
|
|
274
|
+
_chunkZQPK5G4Ujs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
|
|
275
275
|
if (!_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'optionalAccess', _4 => _4.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _5 => _5.projectsConfigurations, 'access', _6 => _6.projects, 'access', _7 => _7[context.projectName], 'optionalAccess', _8 => _8.root])) {
|
|
276
276
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
277
277
|
}
|
|
@@ -288,7 +288,7 @@ async function tsdownExecutorFn(options, context, config) {
|
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
290
|
_chunk3GQAWCBQjs.__name.call(void 0, tsdownExecutorFn, "tsdownExecutorFn");
|
|
291
|
-
var executor_default =
|
|
291
|
+
var executor_default = _chunkAY5HELLNjs.withRunExecutor.call(void 0, "Storm TSDown build executor", tsdownExecutorFn, {
|
|
292
292
|
skipReadingConfig: false,
|
|
293
293
|
hooks: {
|
|
294
294
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|