@storm-software/projen 0.8.2 → 0.8.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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/dist/chunk-3HI6WK3M.js +137 -0
- package/dist/{chunk-MD7B7GGE.mjs → chunk-5NY5JR5C.mjs} +205 -148
- package/dist/chunk-EEZAWKQ5.mjs +6 -0
- package/dist/chunk-FVKYD24T.js +15 -0
- package/dist/{chunk-JNHMEBZJ.js → chunk-HQUS2SNL.js} +488 -431
- package/dist/chunk-LYHBU3HI.mjs +15 -0
- package/dist/chunk-RDD7JUBK.js +6 -0
- package/dist/chunk-VHOQB7WG.mjs +63 -0
- package/dist/chunk-VPWBNTCH.mjs +137 -0
- package/dist/chunk-ZH7QZ5EF.js +56 -0
- package/dist/generators.js +5 -4
- package/dist/generators.mjs +4 -3
- package/dist/index.js +21 -4
- package/dist/index.mjs +20 -3
- package/dist/src/components/index.d.mts +2 -0
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/components/index.js +5 -0
- package/dist/src/components/index.mjs +5 -0
- package/dist/src/components/nx-workspace.d.mts +112 -0
- package/dist/src/components/nx-workspace.d.ts +112 -0
- package/dist/src/components/nx-workspace.js +747 -0
- package/dist/src/components/nx-workspace.mjs +747 -0
- package/dist/src/generators/init/generator.js +4 -3
- package/dist/src/generators/init/generator.mjs +3 -2
- package/dist/tsup.config.js +5 -2
- package/dist/tsup.config.mjs +5 -2
- package/package.json +16 -15
- package/dist/chunk-23KFTIT2.mjs +0 -0
- package/dist/chunk-3GQAWCBQ.js +0 -13
- package/dist/chunk-N2YKXZ5R.js +0 -1
- package/dist/chunk-XUV4U54K.mjs +0 -21
|
@@ -1,17 +1,40 @@
|
|
|
1
|
+
import {
|
|
2
|
+
correctPaths,
|
|
3
|
+
joinPaths
|
|
4
|
+
} from "./chunk-VPWBNTCH.mjs";
|
|
1
5
|
import {
|
|
2
6
|
__dirname,
|
|
3
7
|
__name,
|
|
4
|
-
__require
|
|
5
|
-
|
|
8
|
+
__require,
|
|
9
|
+
init_esm_shims
|
|
10
|
+
} from "./chunk-VHOQB7WG.mjs";
|
|
6
11
|
|
|
7
12
|
// src/generators/init/generator.ts
|
|
13
|
+
init_esm_shims();
|
|
8
14
|
import { addDependenciesToPackageJson as addDependenciesToPackageJson4, formatFiles as formatFiles9, readJsonFile as readJsonFile4, runTasksInSerial } from "@nx/devkit";
|
|
9
15
|
|
|
16
|
+
// ../workspace-tools/index.ts
|
|
17
|
+
init_esm_shims();
|
|
18
|
+
|
|
19
|
+
// ../workspace-tools/executors.ts
|
|
20
|
+
init_esm_shims();
|
|
21
|
+
|
|
22
|
+
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
23
|
+
init_esm_shims();
|
|
24
|
+
|
|
25
|
+
// ../workspace-tools/src/base/base-executor.ts
|
|
26
|
+
init_esm_shims();
|
|
27
|
+
|
|
10
28
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
29
|
+
init_esm_shims();
|
|
11
30
|
import { loadConfig } from "c12";
|
|
12
31
|
import defu from "defu";
|
|
13
32
|
|
|
33
|
+
// ../config-tools/src/logger/console.ts
|
|
34
|
+
init_esm_shims();
|
|
35
|
+
|
|
14
36
|
// ../config-tools/src/types.ts
|
|
37
|
+
init_esm_shims();
|
|
15
38
|
var LogLevel = {
|
|
16
39
|
SILENT: 0,
|
|
17
40
|
FATAL: 10,
|
|
@@ -35,13 +58,24 @@ var LogLevelLabel = {
|
|
|
35
58
|
ALL: "all"
|
|
36
59
|
};
|
|
37
60
|
|
|
61
|
+
// ../config-tools/src/utilities/get-default-config.ts
|
|
62
|
+
init_esm_shims();
|
|
63
|
+
|
|
64
|
+
// ../config/src/index.ts
|
|
65
|
+
init_esm_shims();
|
|
66
|
+
|
|
38
67
|
// ../config/src/constants.ts
|
|
68
|
+
init_esm_shims();
|
|
39
69
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
40
70
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
41
71
|
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
42
72
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
43
73
|
|
|
74
|
+
// ../config/src/define-config.ts
|
|
75
|
+
init_esm_shims();
|
|
76
|
+
|
|
44
77
|
// ../config/src/schema.ts
|
|
78
|
+
init_esm_shims();
|
|
45
79
|
import z from "zod";
|
|
46
80
|
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
47
81
|
var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
@@ -189,6 +223,7 @@ var StormConfigSchema = z.object({
|
|
|
189
223
|
}).describe("Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo.");
|
|
190
224
|
|
|
191
225
|
// ../config/src/types.ts
|
|
226
|
+
init_esm_shims();
|
|
192
227
|
var COLOR_KEYS = [
|
|
193
228
|
"dark",
|
|
194
229
|
"light",
|
|
@@ -212,134 +247,11 @@ import { existsSync as existsSync2 } from "node:fs";
|
|
|
212
247
|
import { readFile } from "node:fs/promises";
|
|
213
248
|
import { join as join2 } from "node:path";
|
|
214
249
|
|
|
215
|
-
// ../config-tools/src/utilities/
|
|
216
|
-
|
|
217
|
-
function normalizeWindowsPath(input = "") {
|
|
218
|
-
if (!input) {
|
|
219
|
-
return input;
|
|
220
|
-
}
|
|
221
|
-
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
222
|
-
}
|
|
223
|
-
__name(normalizeWindowsPath, "normalizeWindowsPath");
|
|
224
|
-
var _UNC_REGEX = /^[/\\]{2}/;
|
|
225
|
-
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
226
|
-
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
227
|
-
var correctPaths = /* @__PURE__ */ __name(function(path7) {
|
|
228
|
-
if (!path7 || path7.length === 0) {
|
|
229
|
-
return ".";
|
|
230
|
-
}
|
|
231
|
-
path7 = normalizeWindowsPath(path7);
|
|
232
|
-
const isUNCPath = path7.match(_UNC_REGEX);
|
|
233
|
-
const isPathAbsolute = isAbsolute(path7);
|
|
234
|
-
const trailingSeparator = path7[path7.length - 1] === "/";
|
|
235
|
-
path7 = normalizeString(path7, !isPathAbsolute);
|
|
236
|
-
if (path7.length === 0) {
|
|
237
|
-
if (isPathAbsolute) {
|
|
238
|
-
return "/";
|
|
239
|
-
}
|
|
240
|
-
return trailingSeparator ? "./" : ".";
|
|
241
|
-
}
|
|
242
|
-
if (trailingSeparator) {
|
|
243
|
-
path7 += "/";
|
|
244
|
-
}
|
|
245
|
-
if (_DRIVE_LETTER_RE.test(path7)) {
|
|
246
|
-
path7 += "/";
|
|
247
|
-
}
|
|
248
|
-
if (isUNCPath) {
|
|
249
|
-
if (!isPathAbsolute) {
|
|
250
|
-
return `//./${path7}`;
|
|
251
|
-
}
|
|
252
|
-
return `//${path7}`;
|
|
253
|
-
}
|
|
254
|
-
return isPathAbsolute && !isAbsolute(path7) ? `/${path7}` : path7;
|
|
255
|
-
}, "correctPaths");
|
|
256
|
-
var joinPaths = /* @__PURE__ */ __name(function(...segments) {
|
|
257
|
-
let path7 = "";
|
|
258
|
-
for (const seg of segments) {
|
|
259
|
-
if (!seg) {
|
|
260
|
-
continue;
|
|
261
|
-
}
|
|
262
|
-
if (path7.length > 0) {
|
|
263
|
-
const pathTrailing = path7[path7.length - 1] === "/";
|
|
264
|
-
const segLeading = seg[0] === "/";
|
|
265
|
-
const both = pathTrailing && segLeading;
|
|
266
|
-
if (both) {
|
|
267
|
-
path7 += seg.slice(1);
|
|
268
|
-
} else {
|
|
269
|
-
path7 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
270
|
-
}
|
|
271
|
-
} else {
|
|
272
|
-
path7 += seg;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
return correctPaths(path7);
|
|
276
|
-
}, "joinPaths");
|
|
277
|
-
function normalizeString(path7, allowAboveRoot) {
|
|
278
|
-
let res = "";
|
|
279
|
-
let lastSegmentLength = 0;
|
|
280
|
-
let lastSlash = -1;
|
|
281
|
-
let dots = 0;
|
|
282
|
-
let char = null;
|
|
283
|
-
for (let index = 0; index <= path7.length; ++index) {
|
|
284
|
-
if (index < path7.length) {
|
|
285
|
-
char = path7[index];
|
|
286
|
-
} else if (char === "/") {
|
|
287
|
-
break;
|
|
288
|
-
} else {
|
|
289
|
-
char = "/";
|
|
290
|
-
}
|
|
291
|
-
if (char === "/") {
|
|
292
|
-
if (lastSlash === index - 1 || dots === 1) {
|
|
293
|
-
} else if (dots === 2) {
|
|
294
|
-
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
295
|
-
if (res.length > 2) {
|
|
296
|
-
const lastSlashIndex = res.lastIndexOf("/");
|
|
297
|
-
if (lastSlashIndex === -1) {
|
|
298
|
-
res = "";
|
|
299
|
-
lastSegmentLength = 0;
|
|
300
|
-
} else {
|
|
301
|
-
res = res.slice(0, lastSlashIndex);
|
|
302
|
-
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
303
|
-
}
|
|
304
|
-
lastSlash = index;
|
|
305
|
-
dots = 0;
|
|
306
|
-
continue;
|
|
307
|
-
} else if (res.length > 0) {
|
|
308
|
-
res = "";
|
|
309
|
-
lastSegmentLength = 0;
|
|
310
|
-
lastSlash = index;
|
|
311
|
-
dots = 0;
|
|
312
|
-
continue;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
if (allowAboveRoot) {
|
|
316
|
-
res += res.length > 0 ? "/.." : "..";
|
|
317
|
-
lastSegmentLength = 2;
|
|
318
|
-
}
|
|
319
|
-
} else {
|
|
320
|
-
if (res.length > 0) {
|
|
321
|
-
res += `/${path7.slice(lastSlash + 1, index)}`;
|
|
322
|
-
} else {
|
|
323
|
-
res = path7.slice(lastSlash + 1, index);
|
|
324
|
-
}
|
|
325
|
-
lastSegmentLength = index - lastSlash - 1;
|
|
326
|
-
}
|
|
327
|
-
lastSlash = index;
|
|
328
|
-
dots = 0;
|
|
329
|
-
} else if (char === "." && dots !== -1) {
|
|
330
|
-
++dots;
|
|
331
|
-
} else {
|
|
332
|
-
dots = -1;
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
return res;
|
|
336
|
-
}
|
|
337
|
-
__name(normalizeString, "normalizeString");
|
|
338
|
-
var isAbsolute = /* @__PURE__ */ __name(function(p) {
|
|
339
|
-
return _IS_ABSOLUTE_RE.test(p);
|
|
340
|
-
}, "isAbsolute");
|
|
250
|
+
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
251
|
+
init_esm_shims();
|
|
341
252
|
|
|
342
253
|
// ../config-tools/src/utilities/find-up.ts
|
|
254
|
+
init_esm_shims();
|
|
343
255
|
import { existsSync } from "node:fs";
|
|
344
256
|
import { join } from "node:path";
|
|
345
257
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
@@ -495,6 +407,7 @@ var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
|
|
|
495
407
|
}, "getDefaultConfig");
|
|
496
408
|
|
|
497
409
|
// ../config-tools/src/logger/chalk.ts
|
|
410
|
+
init_esm_shims();
|
|
498
411
|
import chalk from "chalk";
|
|
499
412
|
var chalkDefault = {
|
|
500
413
|
hex: /* @__PURE__ */ __name((_) => (message) => message, "hex"),
|
|
@@ -523,7 +436,11 @@ var getChalk = /* @__PURE__ */ __name(() => {
|
|
|
523
436
|
return _chalk;
|
|
524
437
|
}, "getChalk");
|
|
525
438
|
|
|
439
|
+
// ../config-tools/src/logger/console-icons.ts
|
|
440
|
+
init_esm_shims();
|
|
441
|
+
|
|
526
442
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
443
|
+
init_esm_shims();
|
|
527
444
|
import process2 from "node:process";
|
|
528
445
|
function isUnicodeSupported() {
|
|
529
446
|
const { env } = process2;
|
|
@@ -552,11 +469,13 @@ var CONSOLE_ICONS = {
|
|
|
552
469
|
};
|
|
553
470
|
|
|
554
471
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
472
|
+
init_esm_shims();
|
|
555
473
|
var formatTimestamp = /* @__PURE__ */ __name((date = /* @__PURE__ */ new Date()) => {
|
|
556
474
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
557
475
|
}, "formatTimestamp");
|
|
558
476
|
|
|
559
477
|
// ../config-tools/src/logger/get-log-level.ts
|
|
478
|
+
init_esm_shims();
|
|
560
479
|
var getLogLevel = /* @__PURE__ */ __name((label) => {
|
|
561
480
|
switch (label) {
|
|
562
481
|
case "all":
|
|
@@ -717,6 +636,7 @@ var _isFunction = /* @__PURE__ */ __name((value) => {
|
|
|
717
636
|
}, "_isFunction");
|
|
718
637
|
|
|
719
638
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
639
|
+
init_esm_shims();
|
|
720
640
|
var applyWorkspaceBaseTokens = /* @__PURE__ */ __name(async (option, tokenParams) => {
|
|
721
641
|
let result = option;
|
|
722
642
|
if (!result) {
|
|
@@ -770,6 +690,7 @@ var applyWorkspaceTokens = /* @__PURE__ */ __name(async (options, tokenParams, t
|
|
|
770
690
|
}, "applyWorkspaceTokens");
|
|
771
691
|
|
|
772
692
|
// ../config-tools/src/utilities/run.ts
|
|
693
|
+
init_esm_shims();
|
|
773
694
|
import { exec, execSync } from "node:child_process";
|
|
774
695
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
775
696
|
var run = /* @__PURE__ */ __name((config, command, cwd = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env = process.env) => {
|
|
@@ -849,9 +770,11 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
|
|
|
849
770
|
}, "getConfigFile");
|
|
850
771
|
|
|
851
772
|
// ../config-tools/src/create-storm-config.ts
|
|
773
|
+
init_esm_shims();
|
|
852
774
|
import defu2 from "defu";
|
|
853
775
|
|
|
854
776
|
// ../config-tools/src/env/get-env.ts
|
|
777
|
+
init_esm_shims();
|
|
855
778
|
var getExtensionEnv = /* @__PURE__ */ __name((extensionName) => {
|
|
856
779
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
857
780
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
@@ -1000,6 +923,7 @@ var getBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix) => {
|
|
|
1000
923
|
}, "getBaseThemeColorConfigEnv");
|
|
1001
924
|
|
|
1002
925
|
// ../config-tools/src/env/set-env.ts
|
|
926
|
+
init_esm_shims();
|
|
1003
927
|
var setExtensionEnv = /* @__PURE__ */ __name((extensionName, extension) => {
|
|
1004
928
|
for (const key of Object.keys(extension ?? {})) {
|
|
1005
929
|
if (extension[key]) {
|
|
@@ -1314,6 +1238,7 @@ ${formatLogMessage(config)}`, config);
|
|
|
1314
1238
|
}, "loadStormConfig");
|
|
1315
1239
|
|
|
1316
1240
|
// ../config-tools/src/get-config.ts
|
|
1241
|
+
init_esm_shims();
|
|
1317
1242
|
var getConfig = /* @__PURE__ */ __name((workspaceRoot3, skipLogs = false) => {
|
|
1318
1243
|
return loadStormConfig(workspaceRoot3, skipLogs);
|
|
1319
1244
|
}, "getConfig");
|
|
@@ -1414,6 +1339,7 @@ var _isFunction2 = /* @__PURE__ */ __name((value) => {
|
|
|
1414
1339
|
}, "_isFunction");
|
|
1415
1340
|
|
|
1416
1341
|
// ../workspace-tools/src/utils/cargo.ts
|
|
1342
|
+
init_esm_shims();
|
|
1417
1343
|
import { joinPathFragments, workspaceRoot } from "@nx/devkit";
|
|
1418
1344
|
import { execSync as execSync2, spawn } from "node:child_process";
|
|
1419
1345
|
import { relative } from "node:path";
|
|
@@ -1557,6 +1483,7 @@ var executor_default = withRunExecutor("Cargo Build", cargoBuildExecutor, {
|
|
|
1557
1483
|
});
|
|
1558
1484
|
|
|
1559
1485
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
1486
|
+
init_esm_shims();
|
|
1560
1487
|
async function cargoCheckExecutor(options, context2) {
|
|
1561
1488
|
const command = buildCargoCommand("check", options, context2);
|
|
1562
1489
|
return await cargoCommand(...command);
|
|
@@ -1573,6 +1500,7 @@ var executor_default2 = withRunExecutor("Cargo Check", cargoCheckExecutor, {
|
|
|
1573
1500
|
});
|
|
1574
1501
|
|
|
1575
1502
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
1503
|
+
init_esm_shims();
|
|
1576
1504
|
async function cargoClippyExecutor(options, context2) {
|
|
1577
1505
|
const command = buildCargoCommand("clippy", options, context2);
|
|
1578
1506
|
return await cargoCommand(...command);
|
|
@@ -1590,6 +1518,7 @@ var executor_default3 = withRunExecutor("Cargo Clippy", cargoClippyExecutor, {
|
|
|
1590
1518
|
});
|
|
1591
1519
|
|
|
1592
1520
|
// ../workspace-tools/src/executors/cargo-doc/executor.ts
|
|
1521
|
+
init_esm_shims();
|
|
1593
1522
|
async function cargoDocExecutor(options, context2) {
|
|
1594
1523
|
const opts = {
|
|
1595
1524
|
...options
|
|
@@ -1618,6 +1547,7 @@ var executor_default4 = withRunExecutor("Cargo Doc", cargoDocExecutor, {
|
|
|
1618
1547
|
});
|
|
1619
1548
|
|
|
1620
1549
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
1550
|
+
init_esm_shims();
|
|
1621
1551
|
async function cargoFormatExecutor(options, context2) {
|
|
1622
1552
|
const command = buildCargoCommand("fmt", options, context2);
|
|
1623
1553
|
return await cargoCommand(...command);
|
|
@@ -1635,22 +1565,32 @@ var executor_default5 = withRunExecutor("Cargo Format", cargoFormatExecutor, {
|
|
|
1635
1565
|
});
|
|
1636
1566
|
|
|
1637
1567
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
1568
|
+
init_esm_shims();
|
|
1638
1569
|
import { joinPathFragments as joinPathFragments2 } from "@nx/devkit";
|
|
1639
1570
|
import { execSync as execSync3 } from "node:child_process";
|
|
1640
1571
|
import { readFileSync } from "node:fs";
|
|
1641
1572
|
import https from "node:https";
|
|
1642
1573
|
|
|
1643
1574
|
// ../workspace-tools/src/utils/toml.ts
|
|
1575
|
+
init_esm_shims();
|
|
1644
1576
|
import TOML from "@ltd/j-toml";
|
|
1645
1577
|
import { logger } from "@nx/devkit";
|
|
1646
1578
|
|
|
1647
1579
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
1648
1580
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
1649
1581
|
|
|
1582
|
+
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1583
|
+
init_esm_shims();
|
|
1584
|
+
|
|
1650
1585
|
// ../esbuild/src/build.ts
|
|
1651
|
-
|
|
1586
|
+
init_esm_shims();
|
|
1587
|
+
import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2, writeJsonFile } from "@nx/devkit";
|
|
1588
|
+
|
|
1589
|
+
// ../build-tools/src/index.ts
|
|
1590
|
+
init_esm_shims();
|
|
1652
1591
|
|
|
1653
1592
|
// ../build-tools/src/config.ts
|
|
1593
|
+
init_esm_shims();
|
|
1654
1594
|
var DEFAULT_COMPILED_BANNER = `
|
|
1655
1595
|
/**
|
|
1656
1596
|
* \u26A1 Built by Storm Software
|
|
@@ -1661,20 +1601,36 @@ var DEFAULT_ENVIRONMENT = "production";
|
|
|
1661
1601
|
var DEFAULT_TARGET = "esnext";
|
|
1662
1602
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
1663
1603
|
|
|
1604
|
+
// ../build-tools/src/plugins/index.ts
|
|
1605
|
+
init_esm_shims();
|
|
1606
|
+
|
|
1607
|
+
// ../build-tools/src/plugins/analyze.ts
|
|
1608
|
+
init_esm_shims();
|
|
1609
|
+
|
|
1664
1610
|
// ../build-tools/src/plugins/swc.ts
|
|
1611
|
+
init_esm_shims();
|
|
1665
1612
|
import { transform } from "@swc/core";
|
|
1666
1613
|
|
|
1667
1614
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
1615
|
+
init_esm_shims();
|
|
1668
1616
|
import fs from "node:fs";
|
|
1669
1617
|
import { builtinModules } from "node:module";
|
|
1670
1618
|
import path from "node:path";
|
|
1671
1619
|
import _resolve from "resolve";
|
|
1672
1620
|
|
|
1673
1621
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
1622
|
+
init_esm_shims();
|
|
1674
1623
|
import { stripIndents } from "@nx/devkit";
|
|
1675
1624
|
import { relative as relative2 } from "path";
|
|
1676
1625
|
|
|
1626
|
+
// ../build-tools/src/types.ts
|
|
1627
|
+
init_esm_shims();
|
|
1628
|
+
|
|
1629
|
+
// ../build-tools/src/utilities/index.ts
|
|
1630
|
+
init_esm_shims();
|
|
1631
|
+
|
|
1677
1632
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
1633
|
+
init_esm_shims();
|
|
1678
1634
|
import { CopyAssetsHandler } from "@nx/js/src/utils/assets/copy-assets-handler";
|
|
1679
1635
|
import { glob } from "glob";
|
|
1680
1636
|
import { readFile as readFile2, writeFile } from "node:fs/promises";
|
|
@@ -1730,13 +1686,15 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
1730
1686
|
}, "copyAssets");
|
|
1731
1687
|
|
|
1732
1688
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
1689
|
+
init_esm_shims();
|
|
1733
1690
|
import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
|
|
1734
1691
|
import { Glob } from "glob";
|
|
1735
|
-
import { existsSync as existsSync3 } from "node:fs";
|
|
1692
|
+
import { existsSync as existsSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
1736
1693
|
import { readFile as readFile3 } from "node:fs/promises";
|
|
1737
|
-
import { readCachedProjectGraph } from "nx/src/project-graph/project-graph";
|
|
1694
|
+
import { readCachedProjectGraph, readProjectsConfigurationFromProjectGraph } from "nx/src/project-graph/project-graph";
|
|
1738
1695
|
var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot3, projectRoot, projectName, packageJson) => {
|
|
1739
|
-
const
|
|
1696
|
+
const projectGraph = readCachedProjectGraph();
|
|
1697
|
+
const projectDependencies = calculateProjectBuildableDependencies(void 0, projectGraph, workspaceRoot3, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
1740
1698
|
const localPackages = [];
|
|
1741
1699
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot3)) {
|
|
1742
1700
|
const projectNode = project.node;
|
|
@@ -1753,26 +1711,38 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot3, proje
|
|
|
1753
1711
|
}
|
|
1754
1712
|
if (localPackages.length > 0) {
|
|
1755
1713
|
writeTrace(`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1714
|
+
const projectJsonFile = await readFile3(joinPaths(projectRoot, "project.json"), "utf8");
|
|
1715
|
+
const projectJson = JSON.parse(projectJsonFile);
|
|
1716
|
+
const projectName2 = projectJson.name;
|
|
1717
|
+
const projectConfigurations = readProjectsConfigurationFromProjectGraph(projectGraph);
|
|
1718
|
+
if (!projectConfigurations?.projects?.[projectName2]) {
|
|
1719
|
+
throw new Error("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.");
|
|
1720
|
+
}
|
|
1721
|
+
const implicitDependencies = projectConfigurations.projects?.[projectName2].implicitDependencies?.reduce((ret, dep) => {
|
|
1722
|
+
if (projectConfigurations.projects?.[dep]) {
|
|
1723
|
+
const depPackageJsonPath = joinPaths(workspaceRoot3, projectConfigurations.projects[dep].root, "package.json");
|
|
1724
|
+
if (existsSync3(depPackageJsonPath)) {
|
|
1725
|
+
const depPackageJsonContent = readFileSync2(depPackageJsonPath, "utf8");
|
|
1726
|
+
const depPackageJson = JSON.parse(depPackageJsonContent);
|
|
1727
|
+
if (depPackageJson.private !== true && !ret.includes(depPackageJson.name)) {
|
|
1728
|
+
ret.push(depPackageJson.name);
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1759
1731
|
}
|
|
1760
1732
|
return ret;
|
|
1761
|
-
},
|
|
1762
|
-
packageJson.
|
|
1763
|
-
if (!ret[localPackage.name]) {
|
|
1764
|
-
ret[localPackage.name] = {
|
|
1765
|
-
optional: false
|
|
1766
|
-
};
|
|
1733
|
+
}, []);
|
|
1734
|
+
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
1735
|
+
if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name)) {
|
|
1736
|
+
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
1767
1737
|
}
|
|
1768
1738
|
return ret;
|
|
1769
|
-
}, packageJson.
|
|
1739
|
+
}, packageJson.dependencies ?? {});
|
|
1770
1740
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
1771
|
-
if (!ret[localPackage.name]) {
|
|
1741
|
+
if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name)) {
|
|
1772
1742
|
ret[localPackage.name] = localPackage.version || "0.0.1";
|
|
1773
1743
|
}
|
|
1774
1744
|
return ret;
|
|
1775
|
-
}, packageJson.
|
|
1745
|
+
}, packageJson.devDependencies ?? {});
|
|
1776
1746
|
} else {
|
|
1777
1747
|
writeTrace("\u{1F4E6} No local packages dependencies to add to package.json");
|
|
1778
1748
|
}
|
|
@@ -1845,6 +1815,7 @@ var addPackageJsonExport = /* @__PURE__ */ __name((file, type = "module", source
|
|
|
1845
1815
|
}, "addPackageJsonExport");
|
|
1846
1816
|
|
|
1847
1817
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
1818
|
+
init_esm_shims();
|
|
1848
1819
|
import { glob as glob2 } from "glob";
|
|
1849
1820
|
var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
1850
1821
|
const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : findWorkspaceRoot();
|
|
@@ -1885,6 +1856,7 @@ var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRo
|
|
|
1885
1856
|
}, "getEntryPoints");
|
|
1886
1857
|
|
|
1887
1858
|
// ../build-tools/src/utilities/get-env.ts
|
|
1859
|
+
init_esm_shims();
|
|
1888
1860
|
var getEnv = /* @__PURE__ */ __name((builder, options) => {
|
|
1889
1861
|
return {
|
|
1890
1862
|
STORM_BUILD: builder,
|
|
@@ -1898,7 +1870,11 @@ var getEnv = /* @__PURE__ */ __name((builder, options) => {
|
|
|
1898
1870
|
};
|
|
1899
1871
|
}, "getEnv");
|
|
1900
1872
|
|
|
1873
|
+
// ../build-tools/src/utilities/get-file-banner.ts
|
|
1874
|
+
init_esm_shims();
|
|
1875
|
+
|
|
1901
1876
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
1877
|
+
init_esm_shims();
|
|
1902
1878
|
function getOutExtension(format2, pkgType) {
|
|
1903
1879
|
let jsExtension = ".js";
|
|
1904
1880
|
let dtsExtension = ".d.ts";
|
|
@@ -1920,11 +1896,16 @@ function getOutExtension(format2, pkgType) {
|
|
|
1920
1896
|
}
|
|
1921
1897
|
__name(getOutExtension, "getOutExtension");
|
|
1922
1898
|
|
|
1899
|
+
// ../build-tools/src/utilities/get-project-deps.ts
|
|
1900
|
+
init_esm_shims();
|
|
1901
|
+
|
|
1923
1902
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
1903
|
+
init_esm_shims();
|
|
1924
1904
|
import { existsSync as existsSync4 } from "node:fs";
|
|
1925
1905
|
import { readFile as readFile4 } from "node:fs/promises";
|
|
1926
1906
|
|
|
1927
1907
|
// ../build-tools/src/utilities/task-graph.ts
|
|
1908
|
+
init_esm_shims();
|
|
1928
1909
|
import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-runner/create-task-graph";
|
|
1929
1910
|
|
|
1930
1911
|
// ../esbuild/src/build.ts
|
|
@@ -1939,10 +1920,12 @@ import hf from "node:fs/promises";
|
|
|
1939
1920
|
import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
|
|
1940
1921
|
|
|
1941
1922
|
// ../esbuild/src/base/renderer-engine.ts
|
|
1923
|
+
init_esm_shims();
|
|
1942
1924
|
import path3 from "node:path";
|
|
1943
1925
|
import { SourceMapConsumer, SourceMapGenerator } from "source-map";
|
|
1944
1926
|
|
|
1945
1927
|
// ../esbuild/src/utilities/output-file.ts
|
|
1928
|
+
init_esm_shims();
|
|
1946
1929
|
import fs2 from "node:fs";
|
|
1947
1930
|
import path2 from "node:path";
|
|
1948
1931
|
var outputFile = /* @__PURE__ */ __name(async (filepath, data, options) => {
|
|
@@ -2080,6 +2063,7 @@ var RendererEngine = class {
|
|
|
2080
2063
|
};
|
|
2081
2064
|
|
|
2082
2065
|
// ../esbuild/src/clean.ts
|
|
2066
|
+
init_esm_shims();
|
|
2083
2067
|
import { rm } from "node:fs/promises";
|
|
2084
2068
|
async function cleanDirectories(name = "ESBuild", directory, config) {
|
|
2085
2069
|
await rm(directory, {
|
|
@@ -2089,7 +2073,11 @@ async function cleanDirectories(name = "ESBuild", directory, config) {
|
|
|
2089
2073
|
}
|
|
2090
2074
|
__name(cleanDirectories, "cleanDirectories");
|
|
2091
2075
|
|
|
2076
|
+
// ../esbuild/src/config.ts
|
|
2077
|
+
init_esm_shims();
|
|
2078
|
+
|
|
2092
2079
|
// ../esbuild/src/plugins/esm-split-code-to-cjs.ts
|
|
2080
|
+
init_esm_shims();
|
|
2093
2081
|
import * as esbuild from "esbuild";
|
|
2094
2082
|
var esmSplitCodeToCjsPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
|
|
2095
2083
|
name: "storm:esm-split-code-to-cjs",
|
|
@@ -2110,6 +2098,7 @@ var esmSplitCodeToCjsPlugin = /* @__PURE__ */ __name((options, resolvedOptions)
|
|
|
2110
2098
|
}), "esmSplitCodeToCjsPlugin");
|
|
2111
2099
|
|
|
2112
2100
|
// ../esbuild/src/plugins/fix-imports.ts
|
|
2101
|
+
init_esm_shims();
|
|
2113
2102
|
var fixImportsPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
|
|
2114
2103
|
name: "storm:fix-imports",
|
|
2115
2104
|
setup(build5) {
|
|
@@ -2131,6 +2120,7 @@ var fixImportsPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
|
|
|
2131
2120
|
}), "fixImportsPlugin");
|
|
2132
2121
|
|
|
2133
2122
|
// ../esbuild/src/plugins/native-node-module.ts
|
|
2123
|
+
init_esm_shims();
|
|
2134
2124
|
import { dirname } from "node:path";
|
|
2135
2125
|
var nativeNodeModulesPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => {
|
|
2136
2126
|
return {
|
|
@@ -2183,6 +2173,7 @@ var nativeNodeModulesPlugin = /* @__PURE__ */ __name((options, resolvedOptions)
|
|
|
2183
2173
|
}, "nativeNodeModulesPlugin");
|
|
2184
2174
|
|
|
2185
2175
|
// ../esbuild/src/plugins/node-protocol.ts
|
|
2176
|
+
init_esm_shims();
|
|
2186
2177
|
var nodeProtocolPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => {
|
|
2187
2178
|
const nodeProtocol = "node:";
|
|
2188
2179
|
return {
|
|
@@ -2199,6 +2190,7 @@ var nodeProtocolPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => {
|
|
|
2199
2190
|
}, "nodeProtocolPlugin");
|
|
2200
2191
|
|
|
2201
2192
|
// ../esbuild/src/plugins/on-error.ts
|
|
2193
|
+
init_esm_shims();
|
|
2202
2194
|
var onErrorPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
|
|
2203
2195
|
name: "storm:on-error",
|
|
2204
2196
|
setup(build5) {
|
|
@@ -2215,6 +2207,7 @@ ${result.errors.map((error) => error.text).join("\n")}
|
|
|
2215
2207
|
}), "onErrorPlugin");
|
|
2216
2208
|
|
|
2217
2209
|
// ../esbuild/src/plugins/resolve-paths.ts
|
|
2210
|
+
init_esm_shims();
|
|
2218
2211
|
import path4 from "node:path";
|
|
2219
2212
|
function resolvePathsConfig(options, cwd) {
|
|
2220
2213
|
if (options?.compilerOptions?.paths) {
|
|
@@ -2259,6 +2252,7 @@ var resolvePathsPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
|
|
|
2259
2252
|
}), "resolvePathsPlugin");
|
|
2260
2253
|
|
|
2261
2254
|
// ../esbuild/src/plugins/tsc.ts
|
|
2255
|
+
init_esm_shims();
|
|
2262
2256
|
import { Extractor, ExtractorConfig } from "@microsoft/api-extractor";
|
|
2263
2257
|
import { existsSync as existsSync5 } from "node:fs";
|
|
2264
2258
|
import fs3 from "node:fs/promises";
|
|
@@ -2414,6 +2408,7 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
2414
2408
|
};
|
|
2415
2409
|
|
|
2416
2410
|
// ../esbuild/src/plugins/deps-check.ts
|
|
2411
|
+
init_esm_shims();
|
|
2417
2412
|
import { builtinModules as builtinModules2 } from "node:module";
|
|
2418
2413
|
import path5 from "node:path";
|
|
2419
2414
|
var unusedIgnore = [
|
|
@@ -2504,6 +2499,7 @@ ${JSON.stringify(filteredMissingDeps)}
|
|
|
2504
2499
|
}), "depsCheckPlugin");
|
|
2505
2500
|
|
|
2506
2501
|
// ../esbuild/src/renderers/shebang.ts
|
|
2502
|
+
init_esm_shims();
|
|
2507
2503
|
var shebangRenderer = {
|
|
2508
2504
|
name: "shebang",
|
|
2509
2505
|
renderChunk(_, __, info) {
|
|
@@ -2514,6 +2510,7 @@ var shebangRenderer = {
|
|
|
2514
2510
|
};
|
|
2515
2511
|
|
|
2516
2512
|
// ../esbuild/src/utilities/helpers.ts
|
|
2513
|
+
init_esm_shims();
|
|
2517
2514
|
function handleSync(fn) {
|
|
2518
2515
|
try {
|
|
2519
2516
|
return fn();
|
|
@@ -2600,7 +2597,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
2600
2597
|
const projectJsonFile = await hf.readFile(projectJsonPath, "utf8");
|
|
2601
2598
|
const projectJson = JSON.parse(projectJsonFile);
|
|
2602
2599
|
const projectName = projectJson.name;
|
|
2603
|
-
const projectConfigurations =
|
|
2600
|
+
const projectConfigurations = readProjectsConfigurationFromProjectGraph2(projectGraph);
|
|
2604
2601
|
if (!projectConfigurations?.projects?.[projectName]) {
|
|
2605
2602
|
throw new Error("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.");
|
|
2606
2603
|
}
|
|
@@ -2921,10 +2918,12 @@ var executor_default6 = withRunExecutor("Storm ESBuild build", esbuildExecutorFn
|
|
|
2921
2918
|
});
|
|
2922
2919
|
|
|
2923
2920
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
2921
|
+
init_esm_shims();
|
|
2924
2922
|
import { execSync as execSync4 } from "node:child_process";
|
|
2925
2923
|
import fs4 from "node:fs/promises";
|
|
2926
2924
|
|
|
2927
2925
|
// ../workspace-tools/src/utils/pnpm-deps-update.ts
|
|
2926
|
+
init_esm_shims();
|
|
2928
2927
|
import { existsSync as existsSync7 } from "node:fs";
|
|
2929
2928
|
import { readFile as readFile5, writeFile as writeFile2 } from "node:fs/promises";
|
|
2930
2929
|
import { format } from "prettier";
|
|
@@ -2934,6 +2933,7 @@ import readYamlFile from "read-yaml-file";
|
|
|
2934
2933
|
var LARGE_BUFFER3 = 1024 * 1e6;
|
|
2935
2934
|
|
|
2936
2935
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
2936
|
+
init_esm_shims();
|
|
2937
2937
|
import { joinPathFragments as joinPathFragments3 } from "@nx/devkit";
|
|
2938
2938
|
import esBuildPlugin from "@size-limit/esbuild";
|
|
2939
2939
|
import esBuildWhyPlugin from "@size-limit/esbuild-why";
|
|
@@ -2967,8 +2967,12 @@ var executor_default7 = withRunExecutor("Size-Limit Performance Test Executor",
|
|
|
2967
2967
|
}
|
|
2968
2968
|
});
|
|
2969
2969
|
|
|
2970
|
+
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
2971
|
+
init_esm_shims();
|
|
2972
|
+
|
|
2970
2973
|
// ../tsdown/src/build.ts
|
|
2971
|
-
|
|
2974
|
+
init_esm_shims();
|
|
2975
|
+
import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph3, writeJsonFile as writeJsonFile2 } from "@nx/devkit";
|
|
2972
2976
|
import defu5 from "defu";
|
|
2973
2977
|
import { existsSync as existsSync8 } from "node:fs";
|
|
2974
2978
|
import hf2 from "node:fs/promises";
|
|
@@ -2976,6 +2980,7 @@ import { findWorkspaceRoot as findWorkspaceRoot3 } from "nx/src/utils/find-works
|
|
|
2976
2980
|
import { build as tsdown } from "tsdown";
|
|
2977
2981
|
|
|
2978
2982
|
// ../tsdown/src/clean.ts
|
|
2983
|
+
init_esm_shims();
|
|
2979
2984
|
import { rm as rm2 } from "node:fs/promises";
|
|
2980
2985
|
async function cleanDirectories2(name = "TSDown", directory, config) {
|
|
2981
2986
|
await rm2(directory, {
|
|
@@ -2986,6 +2991,7 @@ async function cleanDirectories2(name = "TSDown", directory, config) {
|
|
|
2986
2991
|
__name(cleanDirectories2, "cleanDirectories");
|
|
2987
2992
|
|
|
2988
2993
|
// ../tsdown/src/config.ts
|
|
2994
|
+
init_esm_shims();
|
|
2989
2995
|
var DEFAULT_BUILD_OPTIONS2 = {
|
|
2990
2996
|
platform: "node",
|
|
2991
2997
|
target: "node22",
|
|
@@ -3027,7 +3033,7 @@ var resolveOptions2 = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
3027
3033
|
const projectJsonFile = await hf2.readFile(projectJsonPath, "utf8");
|
|
3028
3034
|
const projectJson = JSON.parse(projectJsonFile);
|
|
3029
3035
|
const projectName = projectJson.name;
|
|
3030
|
-
const projectConfigurations =
|
|
3036
|
+
const projectConfigurations = readProjectsConfigurationFromProjectGraph3(projectGraph);
|
|
3031
3037
|
if (!projectConfigurations?.projects?.[projectName]) {
|
|
3032
3038
|
throw new Error("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.");
|
|
3033
3039
|
}
|
|
@@ -3243,6 +3249,7 @@ var executor_default8 = withRunExecutor("Storm TSDown build executor", tsdownExe
|
|
|
3243
3249
|
});
|
|
3244
3250
|
|
|
3245
3251
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
3252
|
+
init_esm_shims();
|
|
3246
3253
|
import { removeSync } from "fs-extra";
|
|
3247
3254
|
import { TypiaProgrammer } from "typia/lib/programmers/TypiaProgrammer.js";
|
|
3248
3255
|
async function typiaExecutorFn(options, _, config) {
|
|
@@ -3279,6 +3286,7 @@ var executor_default9 = withRunExecutor("Typia runtime validation generator", ty
|
|
|
3279
3286
|
});
|
|
3280
3287
|
|
|
3281
3288
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
3289
|
+
init_esm_shims();
|
|
3282
3290
|
import { defu as defu6 } from "defu";
|
|
3283
3291
|
import { createJiti } from "jiti";
|
|
3284
3292
|
async function unbuildExecutorFn(options, context2, config) {
|
|
@@ -3346,10 +3354,15 @@ var executor_default10 = withRunExecutor("TypeScript Unbuild build", unbuildExec
|
|
|
3346
3354
|
}
|
|
3347
3355
|
});
|
|
3348
3356
|
|
|
3357
|
+
// ../workspace-tools/generators.ts
|
|
3358
|
+
init_esm_shims();
|
|
3359
|
+
|
|
3349
3360
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3361
|
+
init_esm_shims();
|
|
3350
3362
|
import { formatFiles as formatFiles2, generateFiles, names as names2, offsetFromRoot as offsetFromRoot2 } from "@nx/devkit";
|
|
3351
3363
|
|
|
3352
3364
|
// ../workspace-tools/src/base/base-generator.ts
|
|
3365
|
+
init_esm_shims();
|
|
3353
3366
|
var withRunGenerator = /* @__PURE__ */ __name((name, generatorFn, generatorOptions = {
|
|
3354
3367
|
skipReadingConfig: false
|
|
3355
3368
|
}) => async (tree, _options) => {
|
|
@@ -3414,6 +3427,7 @@ ${Object.keys(options ?? {}).map((key) => ` - ${key}=${JSON.stringify(options[ke
|
|
|
3414
3427
|
}, "withRunGenerator");
|
|
3415
3428
|
|
|
3416
3429
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
3430
|
+
init_esm_shims();
|
|
3417
3431
|
import { addDependenciesToPackageJson, addProjectConfiguration, ensurePackage, formatFiles, names, offsetFromRoot, readJson, updateJson, writeJson } from "@nx/devkit";
|
|
3418
3432
|
import { determineProjectNameAndRootOptions } from "@nx/devkit/src/generators/project-name-and-root-utils";
|
|
3419
3433
|
import { addTsConfigPath, getRelativePathToRootTsConfig, tsConfigBaseOptions } from "@nx/js";
|
|
@@ -3421,6 +3435,7 @@ import jsInitGenerator from "@nx/js/src/generators/init/init";
|
|
|
3421
3435
|
import setupVerdaccio from "@nx/js/src/generators/setup-verdaccio/generator";
|
|
3422
3436
|
|
|
3423
3437
|
// ../workspace-tools/src/utils/project-tags.ts
|
|
3438
|
+
init_esm_shims();
|
|
3424
3439
|
var ProjectTagConstants = {
|
|
3425
3440
|
Language: {
|
|
3426
3441
|
TAG_ID: "language",
|
|
@@ -3477,6 +3492,7 @@ var addProjectTag = /* @__PURE__ */ __name((project, variant, value, options = {
|
|
|
3477
3492
|
}, "addProjectTag");
|
|
3478
3493
|
|
|
3479
3494
|
// ../workspace-tools/src/utils/versions.ts
|
|
3495
|
+
init_esm_shims();
|
|
3480
3496
|
var typesNodeVersion = "20.9.0";
|
|
3481
3497
|
var nxVersion = "^18.0.4";
|
|
3482
3498
|
var nodeVersion = "20.11.0";
|
|
@@ -3763,7 +3779,8 @@ async function normalizeOptions(tree, options, config) {
|
|
|
3763
3779
|
projectRoot,
|
|
3764
3780
|
parsedTags: options.tags ? options.tags.split(",").map((s) => s.trim()) : [],
|
|
3765
3781
|
importPath: normalizedImportPath,
|
|
3766
|
-
rootProject
|
|
3782
|
+
rootProject,
|
|
3783
|
+
shouldUseSwcJest: false
|
|
3767
3784
|
};
|
|
3768
3785
|
}
|
|
3769
3786
|
__name(normalizeOptions, "normalizeOptions");
|
|
@@ -3839,6 +3856,7 @@ var generator_default = withRunGenerator("TypeScript Library Creator (Browser Pl
|
|
|
3839
3856
|
});
|
|
3840
3857
|
|
|
3841
3858
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
3859
|
+
init_esm_shims();
|
|
3842
3860
|
import { formatFiles as formatFiles3, writeJson as writeJson2 } from "@nx/devkit";
|
|
3843
3861
|
import { zodToJsonSchema } from "zod-to-json-schema";
|
|
3844
3862
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
@@ -3870,6 +3888,7 @@ var generator_default2 = withRunGenerator("Configuration Schema Creator", config
|
|
|
3870
3888
|
});
|
|
3871
3889
|
|
|
3872
3890
|
// ../workspace-tools/src/generators/init/init.ts
|
|
3891
|
+
init_esm_shims();
|
|
3873
3892
|
import { addDependenciesToPackageJson as addDependenciesToPackageJson2, formatFiles as formatFiles4 } from "@nx/devkit";
|
|
3874
3893
|
async function initGenerator(tree, schema) {
|
|
3875
3894
|
const task = addDependenciesToPackageJson2(tree, {
|
|
@@ -3891,6 +3910,7 @@ async function initGenerator(tree, schema) {
|
|
|
3891
3910
|
__name(initGenerator, "initGenerator");
|
|
3892
3911
|
|
|
3893
3912
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
3913
|
+
init_esm_shims();
|
|
3894
3914
|
import { formatFiles as formatFiles5, generateFiles as generateFiles2, names as names3, offsetFromRoot as offsetFromRoot3 } from "@nx/devkit";
|
|
3895
3915
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
3896
3916
|
const filesDir = joinPaths(__dirname, "src", "generators", "neutral-library", "files");
|
|
@@ -3934,6 +3954,7 @@ var generator_default3 = withRunGenerator("TypeScript Library Creator (Neutral P
|
|
|
3934
3954
|
});
|
|
3935
3955
|
|
|
3936
3956
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
3957
|
+
init_esm_shims();
|
|
3937
3958
|
import { formatFiles as formatFiles6, generateFiles as generateFiles3, names as names4, offsetFromRoot as offsetFromRoot4 } from "@nx/devkit";
|
|
3938
3959
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
3939
3960
|
const filesDir = joinPaths(__dirname, "src", "generators", "node-library", "files");
|
|
@@ -3981,6 +4002,7 @@ var generator_default4 = withRunGenerator("TypeScript Library Creator (NodeJs Pl
|
|
|
3981
4002
|
});
|
|
3982
4003
|
|
|
3983
4004
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
4005
|
+
init_esm_shims();
|
|
3984
4006
|
import { addDependenciesToPackageJson as addDependenciesToPackageJson3, addProjectConfiguration as addProjectConfiguration2, formatFiles as formatFiles7, generateFiles as generateFiles4, joinPathFragments as joinPathFragments4, updateJson as updateJson2 } from "@nx/devkit";
|
|
3985
4007
|
import * as path6 from "node:path";
|
|
3986
4008
|
async function presetGeneratorFn(tree, options) {
|
|
@@ -4206,11 +4228,19 @@ __name(presetGeneratorFn, "presetGeneratorFn");
|
|
|
4206
4228
|
var generator_default5 = withRunGenerator("Storm Workspace Preset Generator", presetGeneratorFn);
|
|
4207
4229
|
|
|
4208
4230
|
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
4231
|
+
init_esm_shims();
|
|
4209
4232
|
import { formatFiles as formatFiles8, joinPathFragments as joinPathFragments5, output, readJson as readJson2, updateJson as updateJson3, writeJson as writeJson3 } from "@nx/devkit";
|
|
4210
4233
|
import { resolveLocalPackageDependencies as resolveLocalPackageJsonDependencies } from "@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies";
|
|
4211
4234
|
import { updateLockFile } from "@nx/js/src/generators/release-version/utils/update-lock-file";
|
|
4212
4235
|
|
|
4236
|
+
// ../git-tools/src/index.ts
|
|
4237
|
+
init_esm_shims();
|
|
4238
|
+
|
|
4239
|
+
// ../git-tools/src/commit/config.ts
|
|
4240
|
+
init_esm_shims();
|
|
4241
|
+
|
|
4213
4242
|
// ../git-tools/src/types.ts
|
|
4243
|
+
init_esm_shims();
|
|
4214
4244
|
var RuleConfigSeverity;
|
|
4215
4245
|
(function(RuleConfigSeverity2) {
|
|
4216
4246
|
RuleConfigSeverity2[RuleConfigSeverity2["Disabled"] = 0] = "Disabled";
|
|
@@ -4219,8 +4249,12 @@ var RuleConfigSeverity;
|
|
|
4219
4249
|
})(RuleConfigSeverity || (RuleConfigSeverity = {}));
|
|
4220
4250
|
|
|
4221
4251
|
// ../git-tools/src/release/changelog-renderer.ts
|
|
4252
|
+
init_esm_shims();
|
|
4222
4253
|
import ChangelogRenderer from "nx/release/changelog-renderer/index";
|
|
4223
4254
|
|
|
4255
|
+
// ../git-tools/src/release/config.ts
|
|
4256
|
+
init_esm_shims();
|
|
4257
|
+
|
|
4224
4258
|
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
4225
4259
|
import { exec as exec2, execSync as execSync5 } from "node:child_process";
|
|
4226
4260
|
import { relative as relative3 } from "node:path";
|
|
@@ -4232,7 +4266,11 @@ import { deriveNewSemverVersion, validReleaseVersionPrefixes } from "nx/src/comm
|
|
|
4232
4266
|
import { interpolate } from "nx/src/tasks-runner/utils";
|
|
4233
4267
|
import { prerelease } from "semver";
|
|
4234
4268
|
|
|
4269
|
+
// ../workspace-tools/src/base/index.ts
|
|
4270
|
+
init_esm_shims();
|
|
4271
|
+
|
|
4235
4272
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
4273
|
+
init_esm_shims();
|
|
4236
4274
|
import { defineUntypedSchema } from "untyped";
|
|
4237
4275
|
var base_executor_untyped_default = defineUntypedSchema({
|
|
4238
4276
|
$schema: {
|
|
@@ -4252,6 +4290,7 @@ var base_executor_untyped_default = defineUntypedSchema({
|
|
|
4252
4290
|
});
|
|
4253
4291
|
|
|
4254
4292
|
// ../workspace-tools/src/base/base-generator.untyped.ts
|
|
4293
|
+
init_esm_shims();
|
|
4255
4294
|
import { defineUntypedSchema as defineUntypedSchema2 } from "untyped";
|
|
4256
4295
|
var base_generator_untyped_default = defineUntypedSchema2({
|
|
4257
4296
|
$schema: {
|
|
@@ -4269,6 +4308,7 @@ var base_generator_untyped_default = defineUntypedSchema2({
|
|
|
4269
4308
|
});
|
|
4270
4309
|
|
|
4271
4310
|
// ../workspace-tools/src/base/cargo-base-executor.untyped.ts
|
|
4311
|
+
init_esm_shims();
|
|
4272
4312
|
import { defineUntypedSchema as defineUntypedSchema3 } from "untyped";
|
|
4273
4313
|
var cargo_base_executor_untyped_default = defineUntypedSchema3({
|
|
4274
4314
|
...base_executor_untyped_default,
|
|
@@ -4355,6 +4395,7 @@ var cargo_base_executor_untyped_default = defineUntypedSchema3({
|
|
|
4355
4395
|
});
|
|
4356
4396
|
|
|
4357
4397
|
// ../workspace-tools/src/base/typescript-build-executor.untyped.ts
|
|
4398
|
+
init_esm_shims();
|
|
4358
4399
|
import { defineUntypedSchema as defineUntypedSchema4 } from "untyped";
|
|
4359
4400
|
var typescript_build_executor_untyped_default = defineUntypedSchema4({
|
|
4360
4401
|
...base_executor_untyped_default,
|
|
@@ -4524,6 +4565,7 @@ var typescript_build_executor_untyped_default = defineUntypedSchema4({
|
|
|
4524
4565
|
});
|
|
4525
4566
|
|
|
4526
4567
|
// ../workspace-tools/src/base/typescript-library-generator.untyped.ts
|
|
4568
|
+
init_esm_shims();
|
|
4527
4569
|
import { defineUntypedSchema as defineUntypedSchema5 } from "untyped";
|
|
4528
4570
|
var typescript_library_generator_untyped_default = defineUntypedSchema5({
|
|
4529
4571
|
...base_generator_untyped_default,
|
|
@@ -4643,13 +4685,25 @@ var typescript_library_generator_untyped_default = defineUntypedSchema5({
|
|
|
4643
4685
|
}
|
|
4644
4686
|
});
|
|
4645
4687
|
|
|
4688
|
+
// ../workspace-tools/src/types.ts
|
|
4689
|
+
init_esm_shims();
|
|
4690
|
+
|
|
4691
|
+
// ../workspace-tools/src/utils/index.ts
|
|
4692
|
+
init_esm_shims();
|
|
4693
|
+
|
|
4694
|
+
// ../workspace-tools/src/utils/apply-workspace-tokens.ts
|
|
4695
|
+
init_esm_shims();
|
|
4696
|
+
|
|
4646
4697
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
4698
|
+
init_esm_shims();
|
|
4647
4699
|
import { names as names5 } from "@nx/devkit";
|
|
4648
4700
|
|
|
4649
4701
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
4702
|
+
init_esm_shims();
|
|
4650
4703
|
import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/project-graph/utils/retrieve-workspace-files";
|
|
4651
4704
|
|
|
4652
4705
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
4706
|
+
init_esm_shims();
|
|
4653
4707
|
import { output as output2, readJsonFile, workspaceRoot as workspaceRoot2 } from "@nx/devkit";
|
|
4654
4708
|
import { existsSync as existsSync9 } from "node:fs";
|
|
4655
4709
|
import { join as join4 } from "node:path";
|
|
@@ -4664,16 +4718,19 @@ var NPM_LOCK_PATH = join4(workspaceRoot2, NPM_LOCK_FILE);
|
|
|
4664
4718
|
var PNPM_LOCK_PATH = join4(workspaceRoot2, PNPM_LOCK_FILE);
|
|
4665
4719
|
|
|
4666
4720
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
4721
|
+
init_esm_shims();
|
|
4667
4722
|
import { joinPathFragments as joinPathFragments6, readJsonFile as readJsonFile2 } from "@nx/devkit";
|
|
4668
4723
|
import { existsSync as existsSync10 } from "node:fs";
|
|
4669
4724
|
|
|
4670
4725
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
4726
|
+
init_esm_shims();
|
|
4671
4727
|
import { readJsonFile as readJsonFile3 } from "@nx/devkit";
|
|
4672
4728
|
import defu7 from "defu";
|
|
4673
4729
|
import { existsSync as existsSync11 } from "node:fs";
|
|
4674
4730
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
4675
4731
|
|
|
4676
4732
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
4733
|
+
init_esm_shims();
|
|
4677
4734
|
import transform2 from "typia/lib/transform";
|
|
4678
4735
|
|
|
4679
4736
|
// src/generators/init/generator.ts
|