@storm-software/projen 0.8.1 → 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 +12 -0
- package/README.md +1 -1
- package/dist/chunk-3HI6WK3M.js +137 -0
- package/dist/{chunk-AI3PN64I.mjs → chunk-5NY5JR5C.mjs} +248 -174
- package/dist/chunk-EEZAWKQ5.mjs +6 -0
- package/dist/chunk-FVKYD24T.js +15 -0
- package/dist/{chunk-EKYBRRTL.js → chunk-HQUS2SNL.js} +530 -456
- 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.d.mts +1 -1
- package/dist/generators.d.ts +1 -1
- package/dist/generators.js +5 -4
- package/dist/generators.mjs +4 -3
- package/dist/{index-DUOawapu.d.mts → index-xxtRdeVG.d.mts} +3 -0
- package/dist/{index-DUOawapu.d.ts → index-xxtRdeVG.d.ts} +3 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- 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.d.mts +1 -1
- package/dist/src/generators/init/generator.d.ts +1 -1
- 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");
|
|
@@ -139,7 +173,7 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
139
173
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
140
174
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
141
175
|
var StormConfigSchema = z.object({
|
|
142
|
-
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
176
|
+
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
143
177
|
extends: ExtendsSchema.optional(),
|
|
144
178
|
name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
145
179
|
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
@@ -181,6 +215,7 @@ var StormConfigSchema = z.object({
|
|
|
181
215
|
"trace",
|
|
182
216
|
"all"
|
|
183
217
|
]).default("info").describe("The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."),
|
|
218
|
+
skipConfigLogging: z.boolean().optional().describe("Should the logging of the current Storm Workspace configuration be skipped?"),
|
|
184
219
|
registry: RegistryConfigSchema,
|
|
185
220
|
configFile: z.string().trim().nullable().default(null).describe("The filepath of the Storm config. When this field is null, no config file was found in the current workspace."),
|
|
186
221
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe("Storm theme config values used for styling various package elements"),
|
|
@@ -188,6 +223,7 @@ var StormConfigSchema = z.object({
|
|
|
188
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.");
|
|
189
224
|
|
|
190
225
|
// ../config/src/types.ts
|
|
226
|
+
init_esm_shims();
|
|
191
227
|
var COLOR_KEYS = [
|
|
192
228
|
"dark",
|
|
193
229
|
"light",
|
|
@@ -211,146 +247,26 @@ import { existsSync as existsSync2 } from "node:fs";
|
|
|
211
247
|
import { readFile } from "node:fs/promises";
|
|
212
248
|
import { join as join2 } from "node:path";
|
|
213
249
|
|
|
214
|
-
// ../config-tools/src/utilities/
|
|
215
|
-
|
|
216
|
-
function normalizeWindowsPath(input = "") {
|
|
217
|
-
if (!input) {
|
|
218
|
-
return input;
|
|
219
|
-
}
|
|
220
|
-
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
221
|
-
}
|
|
222
|
-
__name(normalizeWindowsPath, "normalizeWindowsPath");
|
|
223
|
-
var _UNC_REGEX = /^[/\\]{2}/;
|
|
224
|
-
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
225
|
-
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
226
|
-
var correctPaths = /* @__PURE__ */ __name(function(path7) {
|
|
227
|
-
if (!path7 || path7.length === 0) {
|
|
228
|
-
return ".";
|
|
229
|
-
}
|
|
230
|
-
path7 = normalizeWindowsPath(path7);
|
|
231
|
-
const isUNCPath = path7.match(_UNC_REGEX);
|
|
232
|
-
const isPathAbsolute = isAbsolute(path7);
|
|
233
|
-
const trailingSeparator = path7[path7.length - 1] === "/";
|
|
234
|
-
path7 = normalizeString(path7, !isPathAbsolute);
|
|
235
|
-
if (path7.length === 0) {
|
|
236
|
-
if (isPathAbsolute) {
|
|
237
|
-
return "/";
|
|
238
|
-
}
|
|
239
|
-
return trailingSeparator ? "./" : ".";
|
|
240
|
-
}
|
|
241
|
-
if (trailingSeparator) {
|
|
242
|
-
path7 += "/";
|
|
243
|
-
}
|
|
244
|
-
if (_DRIVE_LETTER_RE.test(path7)) {
|
|
245
|
-
path7 += "/";
|
|
246
|
-
}
|
|
247
|
-
if (isUNCPath) {
|
|
248
|
-
if (!isPathAbsolute) {
|
|
249
|
-
return `//./${path7}`;
|
|
250
|
-
}
|
|
251
|
-
return `//${path7}`;
|
|
252
|
-
}
|
|
253
|
-
return isPathAbsolute && !isAbsolute(path7) ? `/${path7}` : path7;
|
|
254
|
-
}, "correctPaths");
|
|
255
|
-
var joinPaths = /* @__PURE__ */ __name(function(...segments) {
|
|
256
|
-
let path7 = "";
|
|
257
|
-
for (const seg of segments) {
|
|
258
|
-
if (!seg) {
|
|
259
|
-
continue;
|
|
260
|
-
}
|
|
261
|
-
if (path7.length > 0) {
|
|
262
|
-
const pathTrailing = path7[path7.length - 1] === "/";
|
|
263
|
-
const segLeading = seg[0] === "/";
|
|
264
|
-
const both = pathTrailing && segLeading;
|
|
265
|
-
if (both) {
|
|
266
|
-
path7 += seg.slice(1);
|
|
267
|
-
} else {
|
|
268
|
-
path7 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
269
|
-
}
|
|
270
|
-
} else {
|
|
271
|
-
path7 += seg;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
return correctPaths(path7);
|
|
275
|
-
}, "joinPaths");
|
|
276
|
-
function normalizeString(path7, allowAboveRoot) {
|
|
277
|
-
let res = "";
|
|
278
|
-
let lastSegmentLength = 0;
|
|
279
|
-
let lastSlash = -1;
|
|
280
|
-
let dots = 0;
|
|
281
|
-
let char = null;
|
|
282
|
-
for (let index = 0; index <= path7.length; ++index) {
|
|
283
|
-
if (index < path7.length) {
|
|
284
|
-
char = path7[index];
|
|
285
|
-
} else if (char === "/") {
|
|
286
|
-
break;
|
|
287
|
-
} else {
|
|
288
|
-
char = "/";
|
|
289
|
-
}
|
|
290
|
-
if (char === "/") {
|
|
291
|
-
if (lastSlash === index - 1 || dots === 1) {
|
|
292
|
-
} else if (dots === 2) {
|
|
293
|
-
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
294
|
-
if (res.length > 2) {
|
|
295
|
-
const lastSlashIndex = res.lastIndexOf("/");
|
|
296
|
-
if (lastSlashIndex === -1) {
|
|
297
|
-
res = "";
|
|
298
|
-
lastSegmentLength = 0;
|
|
299
|
-
} else {
|
|
300
|
-
res = res.slice(0, lastSlashIndex);
|
|
301
|
-
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
302
|
-
}
|
|
303
|
-
lastSlash = index;
|
|
304
|
-
dots = 0;
|
|
305
|
-
continue;
|
|
306
|
-
} else if (res.length > 0) {
|
|
307
|
-
res = "";
|
|
308
|
-
lastSegmentLength = 0;
|
|
309
|
-
lastSlash = index;
|
|
310
|
-
dots = 0;
|
|
311
|
-
continue;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
if (allowAboveRoot) {
|
|
315
|
-
res += res.length > 0 ? "/.." : "..";
|
|
316
|
-
lastSegmentLength = 2;
|
|
317
|
-
}
|
|
318
|
-
} else {
|
|
319
|
-
if (res.length > 0) {
|
|
320
|
-
res += `/${path7.slice(lastSlash + 1, index)}`;
|
|
321
|
-
} else {
|
|
322
|
-
res = path7.slice(lastSlash + 1, index);
|
|
323
|
-
}
|
|
324
|
-
lastSegmentLength = index - lastSlash - 1;
|
|
325
|
-
}
|
|
326
|
-
lastSlash = index;
|
|
327
|
-
dots = 0;
|
|
328
|
-
} else if (char === "." && dots !== -1) {
|
|
329
|
-
++dots;
|
|
330
|
-
} else {
|
|
331
|
-
dots = -1;
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
return res;
|
|
335
|
-
}
|
|
336
|
-
__name(normalizeString, "normalizeString");
|
|
337
|
-
var isAbsolute = /* @__PURE__ */ __name(function(p) {
|
|
338
|
-
return _IS_ABSOLUTE_RE.test(p);
|
|
339
|
-
}, "isAbsolute");
|
|
250
|
+
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
251
|
+
init_esm_shims();
|
|
340
252
|
|
|
341
253
|
// ../config-tools/src/utilities/find-up.ts
|
|
254
|
+
init_esm_shims();
|
|
342
255
|
import { existsSync } from "node:fs";
|
|
343
256
|
import { join } from "node:path";
|
|
344
257
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
345
258
|
var depth = 0;
|
|
346
|
-
function findFolderUp(startPath, endFileNames) {
|
|
259
|
+
function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
347
260
|
const _startPath = startPath ?? process.cwd();
|
|
261
|
+
if (endDirectoryNames.some((endDirName) => existsSync(join(_startPath, endDirName)))) {
|
|
262
|
+
return _startPath;
|
|
263
|
+
}
|
|
348
264
|
if (endFileNames.some((endFileName) => existsSync(join(_startPath, endFileName)))) {
|
|
349
265
|
return _startPath;
|
|
350
266
|
}
|
|
351
267
|
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
352
268
|
const parent = join(_startPath, "..");
|
|
353
|
-
return findFolderUp(parent, endFileNames);
|
|
269
|
+
return findFolderUp(parent, endFileNames, endDirectoryNames);
|
|
354
270
|
}
|
|
355
271
|
return void 0;
|
|
356
272
|
}
|
|
@@ -358,17 +274,17 @@ __name(findFolderUp, "findFolderUp");
|
|
|
358
274
|
|
|
359
275
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
360
276
|
var rootFiles = [
|
|
361
|
-
"storm.json",
|
|
362
|
-
"storm.json",
|
|
363
|
-
"storm.yaml",
|
|
364
|
-
"storm.yml",
|
|
365
|
-
"storm.js",
|
|
366
|
-
"storm.ts",
|
|
367
|
-
".storm.json",
|
|
368
|
-
".storm.yaml",
|
|
369
|
-
".storm.yml",
|
|
370
|
-
".storm.js",
|
|
371
|
-
".storm.ts",
|
|
277
|
+
"storm-workspace.json",
|
|
278
|
+
"storm-workspace.json",
|
|
279
|
+
"storm-workspace.yaml",
|
|
280
|
+
"storm-workspace.yml",
|
|
281
|
+
"storm-workspace.js",
|
|
282
|
+
"storm-workspace.ts",
|
|
283
|
+
".storm-workspace.json",
|
|
284
|
+
".storm-workspace.yaml",
|
|
285
|
+
".storm-workspace.yml",
|
|
286
|
+
".storm-workspace.js",
|
|
287
|
+
".storm-workspace.ts",
|
|
372
288
|
"lerna.json",
|
|
373
289
|
"nx.json",
|
|
374
290
|
"turbo.json",
|
|
@@ -392,11 +308,18 @@ var rootFiles = [
|
|
|
392
308
|
"pnpm-lock.yml",
|
|
393
309
|
"bun.lockb"
|
|
394
310
|
];
|
|
311
|
+
var rootDirectories = [
|
|
312
|
+
".storm-workspace",
|
|
313
|
+
".nx",
|
|
314
|
+
".github",
|
|
315
|
+
".vscode",
|
|
316
|
+
".verdaccio"
|
|
317
|
+
];
|
|
395
318
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
396
319
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
397
320
|
return correctPaths(process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH);
|
|
398
321
|
}
|
|
399
|
-
return correctPaths(findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles));
|
|
322
|
+
return correctPaths(findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles, rootDirectories));
|
|
400
323
|
}
|
|
401
324
|
__name(findWorkspaceRootSafe, "findWorkspaceRootSafe");
|
|
402
325
|
function findWorkspaceRoot(pathInsideMonorepo) {
|
|
@@ -484,6 +407,7 @@ var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
|
|
|
484
407
|
}, "getDefaultConfig");
|
|
485
408
|
|
|
486
409
|
// ../config-tools/src/logger/chalk.ts
|
|
410
|
+
init_esm_shims();
|
|
487
411
|
import chalk from "chalk";
|
|
488
412
|
var chalkDefault = {
|
|
489
413
|
hex: /* @__PURE__ */ __name((_) => (message) => message, "hex"),
|
|
@@ -512,7 +436,11 @@ var getChalk = /* @__PURE__ */ __name(() => {
|
|
|
512
436
|
return _chalk;
|
|
513
437
|
}, "getChalk");
|
|
514
438
|
|
|
439
|
+
// ../config-tools/src/logger/console-icons.ts
|
|
440
|
+
init_esm_shims();
|
|
441
|
+
|
|
515
442
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
443
|
+
init_esm_shims();
|
|
516
444
|
import process2 from "node:process";
|
|
517
445
|
function isUnicodeSupported() {
|
|
518
446
|
const { env } = process2;
|
|
@@ -541,11 +469,13 @@ var CONSOLE_ICONS = {
|
|
|
541
469
|
};
|
|
542
470
|
|
|
543
471
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
472
|
+
init_esm_shims();
|
|
544
473
|
var formatTimestamp = /* @__PURE__ */ __name((date = /* @__PURE__ */ new Date()) => {
|
|
545
474
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
546
475
|
}, "formatTimestamp");
|
|
547
476
|
|
|
548
477
|
// ../config-tools/src/logger/get-log-level.ts
|
|
478
|
+
init_esm_shims();
|
|
549
479
|
var getLogLevel = /* @__PURE__ */ __name((label) => {
|
|
550
480
|
switch (label) {
|
|
551
481
|
case "all":
|
|
@@ -706,6 +636,7 @@ var _isFunction = /* @__PURE__ */ __name((value) => {
|
|
|
706
636
|
}, "_isFunction");
|
|
707
637
|
|
|
708
638
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
639
|
+
init_esm_shims();
|
|
709
640
|
var applyWorkspaceBaseTokens = /* @__PURE__ */ __name(async (option, tokenParams) => {
|
|
710
641
|
let result = option;
|
|
711
642
|
if (!result) {
|
|
@@ -759,6 +690,7 @@ var applyWorkspaceTokens = /* @__PURE__ */ __name(async (options, tokenParams, t
|
|
|
759
690
|
}, "applyWorkspaceTokens");
|
|
760
691
|
|
|
761
692
|
// ../config-tools/src/utilities/run.ts
|
|
693
|
+
init_esm_shims();
|
|
762
694
|
import { exec, execSync } from "node:child_process";
|
|
763
695
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
764
696
|
var run = /* @__PURE__ */ __name((config, command, cwd = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env = process.env) => {
|
|
@@ -809,10 +741,10 @@ var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, opti
|
|
|
809
741
|
}, "getConfigFileByName");
|
|
810
742
|
var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames = []) => {
|
|
811
743
|
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
812
|
-
const result = await getConfigFileByName("storm", workspacePath);
|
|
744
|
+
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
813
745
|
let config = result.config;
|
|
814
746
|
const configFile = result.configFile;
|
|
815
|
-
if (config && configFile && Object.keys(config).length > 0) {
|
|
747
|
+
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
816
748
|
writeTrace(`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
817
749
|
logLevel: "all"
|
|
818
750
|
});
|
|
@@ -821,9 +753,11 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
|
|
|
821
753
|
const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
|
|
822
754
|
for (const result2 of results) {
|
|
823
755
|
if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
756
|
+
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
757
|
+
writeTrace(`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
758
|
+
logLevel: "all"
|
|
759
|
+
});
|
|
760
|
+
}
|
|
827
761
|
config = defu(result2.config ?? {}, config ?? {});
|
|
828
762
|
}
|
|
829
763
|
}
|
|
@@ -836,9 +770,11 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
|
|
|
836
770
|
}, "getConfigFile");
|
|
837
771
|
|
|
838
772
|
// ../config-tools/src/create-storm-config.ts
|
|
773
|
+
init_esm_shims();
|
|
839
774
|
import defu2 from "defu";
|
|
840
775
|
|
|
841
776
|
// ../config-tools/src/env/get-env.ts
|
|
777
|
+
init_esm_shims();
|
|
842
778
|
var getExtensionEnv = /* @__PURE__ */ __name((extensionName) => {
|
|
843
779
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
844
780
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
@@ -899,7 +835,8 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
899
835
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
900
836
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
901
837
|
},
|
|
902
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
|
|
838
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
839
|
+
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
903
840
|
};
|
|
904
841
|
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
905
842
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
@@ -986,6 +923,7 @@ var getBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix) => {
|
|
|
986
923
|
}, "getBaseThemeColorConfigEnv");
|
|
987
924
|
|
|
988
925
|
// ../config-tools/src/env/set-env.ts
|
|
926
|
+
init_esm_shims();
|
|
989
927
|
var setExtensionEnv = /* @__PURE__ */ __name((extensionName, extension) => {
|
|
990
928
|
for (const key of Object.keys(extension ?? {})) {
|
|
991
929
|
if (extension[key]) {
|
|
@@ -1134,6 +1072,9 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
1134
1072
|
process.env.NX_VERBOSE_LOGGING = String(getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false);
|
|
1135
1073
|
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
1136
1074
|
}
|
|
1075
|
+
if (config.skipConfigLogging !== void 0) {
|
|
1076
|
+
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
|
|
1077
|
+
}
|
|
1137
1078
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
1138
1079
|
for (const key of Object.keys(config.extensions ?? {})) {
|
|
1139
1080
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
@@ -1251,7 +1192,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
|
|
|
1251
1192
|
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
1252
1193
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
1253
1194
|
if (!configFile && !skipLogs) {
|
|
1254
|
-
writeWarning("No Storm
|
|
1195
|
+
writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
|
|
1255
1196
|
logLevel: "all"
|
|
1256
1197
|
});
|
|
1257
1198
|
}
|
|
@@ -1289,14 +1230,15 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
|
1289
1230
|
var loadStormConfig = /* @__PURE__ */ __name(async (workspaceRoot3, skipLogs = false) => {
|
|
1290
1231
|
const config = await createStormConfig(void 0, void 0, workspaceRoot3, skipLogs);
|
|
1291
1232
|
setConfigEnv(config);
|
|
1292
|
-
if (!skipLogs) {
|
|
1293
|
-
writeTrace(`\u2699\uFE0F Using Storm configuration:
|
|
1233
|
+
if (!skipLogs && !config.skipConfigLogging) {
|
|
1234
|
+
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1294
1235
|
${formatLogMessage(config)}`, config);
|
|
1295
1236
|
}
|
|
1296
1237
|
return config;
|
|
1297
1238
|
}, "loadStormConfig");
|
|
1298
1239
|
|
|
1299
1240
|
// ../config-tools/src/get-config.ts
|
|
1241
|
+
init_esm_shims();
|
|
1300
1242
|
var getConfig = /* @__PURE__ */ __name((workspaceRoot3, skipLogs = false) => {
|
|
1301
1243
|
return loadStormConfig(workspaceRoot3, skipLogs);
|
|
1302
1244
|
}, "getConfig");
|
|
@@ -1397,6 +1339,7 @@ var _isFunction2 = /* @__PURE__ */ __name((value) => {
|
|
|
1397
1339
|
}, "_isFunction");
|
|
1398
1340
|
|
|
1399
1341
|
// ../workspace-tools/src/utils/cargo.ts
|
|
1342
|
+
init_esm_shims();
|
|
1400
1343
|
import { joinPathFragments, workspaceRoot } from "@nx/devkit";
|
|
1401
1344
|
import { execSync as execSync2, spawn } from "node:child_process";
|
|
1402
1345
|
import { relative } from "node:path";
|
|
@@ -1540,6 +1483,7 @@ var executor_default = withRunExecutor("Cargo Build", cargoBuildExecutor, {
|
|
|
1540
1483
|
});
|
|
1541
1484
|
|
|
1542
1485
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
1486
|
+
init_esm_shims();
|
|
1543
1487
|
async function cargoCheckExecutor(options, context2) {
|
|
1544
1488
|
const command = buildCargoCommand("check", options, context2);
|
|
1545
1489
|
return await cargoCommand(...command);
|
|
@@ -1556,6 +1500,7 @@ var executor_default2 = withRunExecutor("Cargo Check", cargoCheckExecutor, {
|
|
|
1556
1500
|
});
|
|
1557
1501
|
|
|
1558
1502
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
1503
|
+
init_esm_shims();
|
|
1559
1504
|
async function cargoClippyExecutor(options, context2) {
|
|
1560
1505
|
const command = buildCargoCommand("clippy", options, context2);
|
|
1561
1506
|
return await cargoCommand(...command);
|
|
@@ -1573,6 +1518,7 @@ var executor_default3 = withRunExecutor("Cargo Clippy", cargoClippyExecutor, {
|
|
|
1573
1518
|
});
|
|
1574
1519
|
|
|
1575
1520
|
// ../workspace-tools/src/executors/cargo-doc/executor.ts
|
|
1521
|
+
init_esm_shims();
|
|
1576
1522
|
async function cargoDocExecutor(options, context2) {
|
|
1577
1523
|
const opts = {
|
|
1578
1524
|
...options
|
|
@@ -1601,6 +1547,7 @@ var executor_default4 = withRunExecutor("Cargo Doc", cargoDocExecutor, {
|
|
|
1601
1547
|
});
|
|
1602
1548
|
|
|
1603
1549
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
1550
|
+
init_esm_shims();
|
|
1604
1551
|
async function cargoFormatExecutor(options, context2) {
|
|
1605
1552
|
const command = buildCargoCommand("fmt", options, context2);
|
|
1606
1553
|
return await cargoCommand(...command);
|
|
@@ -1618,22 +1565,32 @@ var executor_default5 = withRunExecutor("Cargo Format", cargoFormatExecutor, {
|
|
|
1618
1565
|
});
|
|
1619
1566
|
|
|
1620
1567
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
1568
|
+
init_esm_shims();
|
|
1621
1569
|
import { joinPathFragments as joinPathFragments2 } from "@nx/devkit";
|
|
1622
1570
|
import { execSync as execSync3 } from "node:child_process";
|
|
1623
1571
|
import { readFileSync } from "node:fs";
|
|
1624
1572
|
import https from "node:https";
|
|
1625
1573
|
|
|
1626
1574
|
// ../workspace-tools/src/utils/toml.ts
|
|
1575
|
+
init_esm_shims();
|
|
1627
1576
|
import TOML from "@ltd/j-toml";
|
|
1628
1577
|
import { logger } from "@nx/devkit";
|
|
1629
1578
|
|
|
1630
1579
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
1631
1580
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
1632
1581
|
|
|
1582
|
+
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1583
|
+
init_esm_shims();
|
|
1584
|
+
|
|
1633
1585
|
// ../esbuild/src/build.ts
|
|
1634
|
-
|
|
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();
|
|
1635
1591
|
|
|
1636
1592
|
// ../build-tools/src/config.ts
|
|
1593
|
+
init_esm_shims();
|
|
1637
1594
|
var DEFAULT_COMPILED_BANNER = `
|
|
1638
1595
|
/**
|
|
1639
1596
|
* \u26A1 Built by Storm Software
|
|
@@ -1644,20 +1601,36 @@ var DEFAULT_ENVIRONMENT = "production";
|
|
|
1644
1601
|
var DEFAULT_TARGET = "esnext";
|
|
1645
1602
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
1646
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
|
+
|
|
1647
1610
|
// ../build-tools/src/plugins/swc.ts
|
|
1611
|
+
init_esm_shims();
|
|
1648
1612
|
import { transform } from "@swc/core";
|
|
1649
1613
|
|
|
1650
1614
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
1615
|
+
init_esm_shims();
|
|
1651
1616
|
import fs from "node:fs";
|
|
1652
1617
|
import { builtinModules } from "node:module";
|
|
1653
1618
|
import path from "node:path";
|
|
1654
1619
|
import _resolve from "resolve";
|
|
1655
1620
|
|
|
1656
1621
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
1622
|
+
init_esm_shims();
|
|
1657
1623
|
import { stripIndents } from "@nx/devkit";
|
|
1658
1624
|
import { relative as relative2 } from "path";
|
|
1659
1625
|
|
|
1626
|
+
// ../build-tools/src/types.ts
|
|
1627
|
+
init_esm_shims();
|
|
1628
|
+
|
|
1629
|
+
// ../build-tools/src/utilities/index.ts
|
|
1630
|
+
init_esm_shims();
|
|
1631
|
+
|
|
1660
1632
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
1633
|
+
init_esm_shims();
|
|
1661
1634
|
import { CopyAssetsHandler } from "@nx/js/src/utils/assets/copy-assets-handler";
|
|
1662
1635
|
import { glob } from "glob";
|
|
1663
1636
|
import { readFile as readFile2, writeFile } from "node:fs/promises";
|
|
@@ -1713,13 +1686,15 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
1713
1686
|
}, "copyAssets");
|
|
1714
1687
|
|
|
1715
1688
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
1689
|
+
init_esm_shims();
|
|
1716
1690
|
import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
|
|
1717
1691
|
import { Glob } from "glob";
|
|
1718
|
-
import { existsSync as existsSync3 } from "node:fs";
|
|
1692
|
+
import { existsSync as existsSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
1719
1693
|
import { readFile as readFile3 } from "node:fs/promises";
|
|
1720
|
-
import { readCachedProjectGraph } from "nx/src/project-graph/project-graph";
|
|
1694
|
+
import { readCachedProjectGraph, readProjectsConfigurationFromProjectGraph } from "nx/src/project-graph/project-graph";
|
|
1721
1695
|
var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot3, projectRoot, projectName, packageJson) => {
|
|
1722
|
-
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);
|
|
1723
1698
|
const localPackages = [];
|
|
1724
1699
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot3)) {
|
|
1725
1700
|
const projectNode = project.node;
|
|
@@ -1736,26 +1711,38 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot3, proje
|
|
|
1736
1711
|
}
|
|
1737
1712
|
if (localPackages.length > 0) {
|
|
1738
1713
|
writeTrace(`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
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
|
+
}
|
|
1742
1731
|
}
|
|
1743
1732
|
return ret;
|
|
1744
|
-
},
|
|
1745
|
-
packageJson.
|
|
1746
|
-
if (!ret[localPackage.name]) {
|
|
1747
|
-
ret[localPackage.name] = {
|
|
1748
|
-
optional: false
|
|
1749
|
-
};
|
|
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"}`;
|
|
1750
1737
|
}
|
|
1751
1738
|
return ret;
|
|
1752
|
-
}, packageJson.
|
|
1739
|
+
}, packageJson.dependencies ?? {});
|
|
1753
1740
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
1754
|
-
if (!ret[localPackage.name]) {
|
|
1741
|
+
if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name)) {
|
|
1755
1742
|
ret[localPackage.name] = localPackage.version || "0.0.1";
|
|
1756
1743
|
}
|
|
1757
1744
|
return ret;
|
|
1758
|
-
}, packageJson.
|
|
1745
|
+
}, packageJson.devDependencies ?? {});
|
|
1759
1746
|
} else {
|
|
1760
1747
|
writeTrace("\u{1F4E6} No local packages dependencies to add to package.json");
|
|
1761
1748
|
}
|
|
@@ -1828,6 +1815,7 @@ var addPackageJsonExport = /* @__PURE__ */ __name((file, type = "module", source
|
|
|
1828
1815
|
}, "addPackageJsonExport");
|
|
1829
1816
|
|
|
1830
1817
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
1818
|
+
init_esm_shims();
|
|
1831
1819
|
import { glob as glob2 } from "glob";
|
|
1832
1820
|
var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
1833
1821
|
const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : findWorkspaceRoot();
|
|
@@ -1868,6 +1856,7 @@ var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRo
|
|
|
1868
1856
|
}, "getEntryPoints");
|
|
1869
1857
|
|
|
1870
1858
|
// ../build-tools/src/utilities/get-env.ts
|
|
1859
|
+
init_esm_shims();
|
|
1871
1860
|
var getEnv = /* @__PURE__ */ __name((builder, options) => {
|
|
1872
1861
|
return {
|
|
1873
1862
|
STORM_BUILD: builder,
|
|
@@ -1881,7 +1870,11 @@ var getEnv = /* @__PURE__ */ __name((builder, options) => {
|
|
|
1881
1870
|
};
|
|
1882
1871
|
}, "getEnv");
|
|
1883
1872
|
|
|
1873
|
+
// ../build-tools/src/utilities/get-file-banner.ts
|
|
1874
|
+
init_esm_shims();
|
|
1875
|
+
|
|
1884
1876
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
1877
|
+
init_esm_shims();
|
|
1885
1878
|
function getOutExtension(format2, pkgType) {
|
|
1886
1879
|
let jsExtension = ".js";
|
|
1887
1880
|
let dtsExtension = ".d.ts";
|
|
@@ -1903,11 +1896,16 @@ function getOutExtension(format2, pkgType) {
|
|
|
1903
1896
|
}
|
|
1904
1897
|
__name(getOutExtension, "getOutExtension");
|
|
1905
1898
|
|
|
1899
|
+
// ../build-tools/src/utilities/get-project-deps.ts
|
|
1900
|
+
init_esm_shims();
|
|
1901
|
+
|
|
1906
1902
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
1903
|
+
init_esm_shims();
|
|
1907
1904
|
import { existsSync as existsSync4 } from "node:fs";
|
|
1908
1905
|
import { readFile as readFile4 } from "node:fs/promises";
|
|
1909
1906
|
|
|
1910
1907
|
// ../build-tools/src/utilities/task-graph.ts
|
|
1908
|
+
init_esm_shims();
|
|
1911
1909
|
import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-runner/create-task-graph";
|
|
1912
1910
|
|
|
1913
1911
|
// ../esbuild/src/build.ts
|
|
@@ -1922,10 +1920,12 @@ import hf from "node:fs/promises";
|
|
|
1922
1920
|
import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
|
|
1923
1921
|
|
|
1924
1922
|
// ../esbuild/src/base/renderer-engine.ts
|
|
1923
|
+
init_esm_shims();
|
|
1925
1924
|
import path3 from "node:path";
|
|
1926
1925
|
import { SourceMapConsumer, SourceMapGenerator } from "source-map";
|
|
1927
1926
|
|
|
1928
1927
|
// ../esbuild/src/utilities/output-file.ts
|
|
1928
|
+
init_esm_shims();
|
|
1929
1929
|
import fs2 from "node:fs";
|
|
1930
1930
|
import path2 from "node:path";
|
|
1931
1931
|
var outputFile = /* @__PURE__ */ __name(async (filepath, data, options) => {
|
|
@@ -2063,6 +2063,7 @@ var RendererEngine = class {
|
|
|
2063
2063
|
};
|
|
2064
2064
|
|
|
2065
2065
|
// ../esbuild/src/clean.ts
|
|
2066
|
+
init_esm_shims();
|
|
2066
2067
|
import { rm } from "node:fs/promises";
|
|
2067
2068
|
async function cleanDirectories(name = "ESBuild", directory, config) {
|
|
2068
2069
|
await rm(directory, {
|
|
@@ -2072,7 +2073,11 @@ async function cleanDirectories(name = "ESBuild", directory, config) {
|
|
|
2072
2073
|
}
|
|
2073
2074
|
__name(cleanDirectories, "cleanDirectories");
|
|
2074
2075
|
|
|
2076
|
+
// ../esbuild/src/config.ts
|
|
2077
|
+
init_esm_shims();
|
|
2078
|
+
|
|
2075
2079
|
// ../esbuild/src/plugins/esm-split-code-to-cjs.ts
|
|
2080
|
+
init_esm_shims();
|
|
2076
2081
|
import * as esbuild from "esbuild";
|
|
2077
2082
|
var esmSplitCodeToCjsPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
|
|
2078
2083
|
name: "storm:esm-split-code-to-cjs",
|
|
@@ -2093,6 +2098,7 @@ var esmSplitCodeToCjsPlugin = /* @__PURE__ */ __name((options, resolvedOptions)
|
|
|
2093
2098
|
}), "esmSplitCodeToCjsPlugin");
|
|
2094
2099
|
|
|
2095
2100
|
// ../esbuild/src/plugins/fix-imports.ts
|
|
2101
|
+
init_esm_shims();
|
|
2096
2102
|
var fixImportsPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
|
|
2097
2103
|
name: "storm:fix-imports",
|
|
2098
2104
|
setup(build5) {
|
|
@@ -2114,6 +2120,7 @@ var fixImportsPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
|
|
|
2114
2120
|
}), "fixImportsPlugin");
|
|
2115
2121
|
|
|
2116
2122
|
// ../esbuild/src/plugins/native-node-module.ts
|
|
2123
|
+
init_esm_shims();
|
|
2117
2124
|
import { dirname } from "node:path";
|
|
2118
2125
|
var nativeNodeModulesPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => {
|
|
2119
2126
|
return {
|
|
@@ -2166,6 +2173,7 @@ var nativeNodeModulesPlugin = /* @__PURE__ */ __name((options, resolvedOptions)
|
|
|
2166
2173
|
}, "nativeNodeModulesPlugin");
|
|
2167
2174
|
|
|
2168
2175
|
// ../esbuild/src/plugins/node-protocol.ts
|
|
2176
|
+
init_esm_shims();
|
|
2169
2177
|
var nodeProtocolPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => {
|
|
2170
2178
|
const nodeProtocol = "node:";
|
|
2171
2179
|
return {
|
|
@@ -2182,6 +2190,7 @@ var nodeProtocolPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => {
|
|
|
2182
2190
|
}, "nodeProtocolPlugin");
|
|
2183
2191
|
|
|
2184
2192
|
// ../esbuild/src/plugins/on-error.ts
|
|
2193
|
+
init_esm_shims();
|
|
2185
2194
|
var onErrorPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
|
|
2186
2195
|
name: "storm:on-error",
|
|
2187
2196
|
setup(build5) {
|
|
@@ -2198,6 +2207,7 @@ ${result.errors.map((error) => error.text).join("\n")}
|
|
|
2198
2207
|
}), "onErrorPlugin");
|
|
2199
2208
|
|
|
2200
2209
|
// ../esbuild/src/plugins/resolve-paths.ts
|
|
2210
|
+
init_esm_shims();
|
|
2201
2211
|
import path4 from "node:path";
|
|
2202
2212
|
function resolvePathsConfig(options, cwd) {
|
|
2203
2213
|
if (options?.compilerOptions?.paths) {
|
|
@@ -2242,6 +2252,7 @@ var resolvePathsPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
|
|
|
2242
2252
|
}), "resolvePathsPlugin");
|
|
2243
2253
|
|
|
2244
2254
|
// ../esbuild/src/plugins/tsc.ts
|
|
2255
|
+
init_esm_shims();
|
|
2245
2256
|
import { Extractor, ExtractorConfig } from "@microsoft/api-extractor";
|
|
2246
2257
|
import { existsSync as existsSync5 } from "node:fs";
|
|
2247
2258
|
import fs3 from "node:fs/promises";
|
|
@@ -2397,6 +2408,7 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
2397
2408
|
};
|
|
2398
2409
|
|
|
2399
2410
|
// ../esbuild/src/plugins/deps-check.ts
|
|
2411
|
+
init_esm_shims();
|
|
2400
2412
|
import { builtinModules as builtinModules2 } from "node:module";
|
|
2401
2413
|
import path5 from "node:path";
|
|
2402
2414
|
var unusedIgnore = [
|
|
@@ -2487,6 +2499,7 @@ ${JSON.stringify(filteredMissingDeps)}
|
|
|
2487
2499
|
}), "depsCheckPlugin");
|
|
2488
2500
|
|
|
2489
2501
|
// ../esbuild/src/renderers/shebang.ts
|
|
2502
|
+
init_esm_shims();
|
|
2490
2503
|
var shebangRenderer = {
|
|
2491
2504
|
name: "shebang",
|
|
2492
2505
|
renderChunk(_, __, info) {
|
|
@@ -2497,6 +2510,7 @@ var shebangRenderer = {
|
|
|
2497
2510
|
};
|
|
2498
2511
|
|
|
2499
2512
|
// ../esbuild/src/utilities/helpers.ts
|
|
2513
|
+
init_esm_shims();
|
|
2500
2514
|
function handleSync(fn) {
|
|
2501
2515
|
try {
|
|
2502
2516
|
return fn();
|
|
@@ -2583,7 +2597,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
2583
2597
|
const projectJsonFile = await hf.readFile(projectJsonPath, "utf8");
|
|
2584
2598
|
const projectJson = JSON.parse(projectJsonFile);
|
|
2585
2599
|
const projectName = projectJson.name;
|
|
2586
|
-
const projectConfigurations =
|
|
2600
|
+
const projectConfigurations = readProjectsConfigurationFromProjectGraph2(projectGraph);
|
|
2587
2601
|
if (!projectConfigurations?.projects?.[projectName]) {
|
|
2588
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.");
|
|
2589
2603
|
}
|
|
@@ -2904,10 +2918,12 @@ var executor_default6 = withRunExecutor("Storm ESBuild build", esbuildExecutorFn
|
|
|
2904
2918
|
});
|
|
2905
2919
|
|
|
2906
2920
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
2921
|
+
init_esm_shims();
|
|
2907
2922
|
import { execSync as execSync4 } from "node:child_process";
|
|
2908
2923
|
import fs4 from "node:fs/promises";
|
|
2909
2924
|
|
|
2910
2925
|
// ../workspace-tools/src/utils/pnpm-deps-update.ts
|
|
2926
|
+
init_esm_shims();
|
|
2911
2927
|
import { existsSync as existsSync7 } from "node:fs";
|
|
2912
2928
|
import { readFile as readFile5, writeFile as writeFile2 } from "node:fs/promises";
|
|
2913
2929
|
import { format } from "prettier";
|
|
@@ -2917,6 +2933,7 @@ import readYamlFile from "read-yaml-file";
|
|
|
2917
2933
|
var LARGE_BUFFER3 = 1024 * 1e6;
|
|
2918
2934
|
|
|
2919
2935
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
2936
|
+
init_esm_shims();
|
|
2920
2937
|
import { joinPathFragments as joinPathFragments3 } from "@nx/devkit";
|
|
2921
2938
|
import esBuildPlugin from "@size-limit/esbuild";
|
|
2922
2939
|
import esBuildWhyPlugin from "@size-limit/esbuild-why";
|
|
@@ -2950,8 +2967,12 @@ var executor_default7 = withRunExecutor("Size-Limit Performance Test Executor",
|
|
|
2950
2967
|
}
|
|
2951
2968
|
});
|
|
2952
2969
|
|
|
2970
|
+
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
2971
|
+
init_esm_shims();
|
|
2972
|
+
|
|
2953
2973
|
// ../tsdown/src/build.ts
|
|
2954
|
-
|
|
2974
|
+
init_esm_shims();
|
|
2975
|
+
import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph3, writeJsonFile as writeJsonFile2 } from "@nx/devkit";
|
|
2955
2976
|
import defu5 from "defu";
|
|
2956
2977
|
import { existsSync as existsSync8 } from "node:fs";
|
|
2957
2978
|
import hf2 from "node:fs/promises";
|
|
@@ -2959,6 +2980,7 @@ import { findWorkspaceRoot as findWorkspaceRoot3 } from "nx/src/utils/find-works
|
|
|
2959
2980
|
import { build as tsdown } from "tsdown";
|
|
2960
2981
|
|
|
2961
2982
|
// ../tsdown/src/clean.ts
|
|
2983
|
+
init_esm_shims();
|
|
2962
2984
|
import { rm as rm2 } from "node:fs/promises";
|
|
2963
2985
|
async function cleanDirectories2(name = "TSDown", directory, config) {
|
|
2964
2986
|
await rm2(directory, {
|
|
@@ -2969,6 +2991,7 @@ async function cleanDirectories2(name = "TSDown", directory, config) {
|
|
|
2969
2991
|
__name(cleanDirectories2, "cleanDirectories");
|
|
2970
2992
|
|
|
2971
2993
|
// ../tsdown/src/config.ts
|
|
2994
|
+
init_esm_shims();
|
|
2972
2995
|
var DEFAULT_BUILD_OPTIONS2 = {
|
|
2973
2996
|
platform: "node",
|
|
2974
2997
|
target: "node22",
|
|
@@ -3010,7 +3033,7 @@ var resolveOptions2 = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
3010
3033
|
const projectJsonFile = await hf2.readFile(projectJsonPath, "utf8");
|
|
3011
3034
|
const projectJson = JSON.parse(projectJsonFile);
|
|
3012
3035
|
const projectName = projectJson.name;
|
|
3013
|
-
const projectConfigurations =
|
|
3036
|
+
const projectConfigurations = readProjectsConfigurationFromProjectGraph3(projectGraph);
|
|
3014
3037
|
if (!projectConfigurations?.projects?.[projectName]) {
|
|
3015
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.");
|
|
3016
3039
|
}
|
|
@@ -3226,6 +3249,7 @@ var executor_default8 = withRunExecutor("Storm TSDown build executor", tsdownExe
|
|
|
3226
3249
|
});
|
|
3227
3250
|
|
|
3228
3251
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
3252
|
+
init_esm_shims();
|
|
3229
3253
|
import { removeSync } from "fs-extra";
|
|
3230
3254
|
import { TypiaProgrammer } from "typia/lib/programmers/TypiaProgrammer.js";
|
|
3231
3255
|
async function typiaExecutorFn(options, _, config) {
|
|
@@ -3262,6 +3286,7 @@ var executor_default9 = withRunExecutor("Typia runtime validation generator", ty
|
|
|
3262
3286
|
});
|
|
3263
3287
|
|
|
3264
3288
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
3289
|
+
init_esm_shims();
|
|
3265
3290
|
import { defu as defu6 } from "defu";
|
|
3266
3291
|
import { createJiti } from "jiti";
|
|
3267
3292
|
async function unbuildExecutorFn(options, context2, config) {
|
|
@@ -3329,10 +3354,15 @@ var executor_default10 = withRunExecutor("TypeScript Unbuild build", unbuildExec
|
|
|
3329
3354
|
}
|
|
3330
3355
|
});
|
|
3331
3356
|
|
|
3357
|
+
// ../workspace-tools/generators.ts
|
|
3358
|
+
init_esm_shims();
|
|
3359
|
+
|
|
3332
3360
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3361
|
+
init_esm_shims();
|
|
3333
3362
|
import { formatFiles as formatFiles2, generateFiles, names as names2, offsetFromRoot as offsetFromRoot2 } from "@nx/devkit";
|
|
3334
3363
|
|
|
3335
3364
|
// ../workspace-tools/src/base/base-generator.ts
|
|
3365
|
+
init_esm_shims();
|
|
3336
3366
|
var withRunGenerator = /* @__PURE__ */ __name((name, generatorFn, generatorOptions = {
|
|
3337
3367
|
skipReadingConfig: false
|
|
3338
3368
|
}) => async (tree, _options) => {
|
|
@@ -3397,6 +3427,7 @@ ${Object.keys(options ?? {}).map((key) => ` - ${key}=${JSON.stringify(options[ke
|
|
|
3397
3427
|
}, "withRunGenerator");
|
|
3398
3428
|
|
|
3399
3429
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
3430
|
+
init_esm_shims();
|
|
3400
3431
|
import { addDependenciesToPackageJson, addProjectConfiguration, ensurePackage, formatFiles, names, offsetFromRoot, readJson, updateJson, writeJson } from "@nx/devkit";
|
|
3401
3432
|
import { determineProjectNameAndRootOptions } from "@nx/devkit/src/generators/project-name-and-root-utils";
|
|
3402
3433
|
import { addTsConfigPath, getRelativePathToRootTsConfig, tsConfigBaseOptions } from "@nx/js";
|
|
@@ -3404,6 +3435,7 @@ import jsInitGenerator from "@nx/js/src/generators/init/init";
|
|
|
3404
3435
|
import setupVerdaccio from "@nx/js/src/generators/setup-verdaccio/generator";
|
|
3405
3436
|
|
|
3406
3437
|
// ../workspace-tools/src/utils/project-tags.ts
|
|
3438
|
+
init_esm_shims();
|
|
3407
3439
|
var ProjectTagConstants = {
|
|
3408
3440
|
Language: {
|
|
3409
3441
|
TAG_ID: "language",
|
|
@@ -3460,6 +3492,7 @@ var addProjectTag = /* @__PURE__ */ __name((project, variant, value, options = {
|
|
|
3460
3492
|
}, "addProjectTag");
|
|
3461
3493
|
|
|
3462
3494
|
// ../workspace-tools/src/utils/versions.ts
|
|
3495
|
+
init_esm_shims();
|
|
3463
3496
|
var typesNodeVersion = "20.9.0";
|
|
3464
3497
|
var nxVersion = "^18.0.4";
|
|
3465
3498
|
var nodeVersion = "20.11.0";
|
|
@@ -3746,7 +3779,8 @@ async function normalizeOptions(tree, options, config) {
|
|
|
3746
3779
|
projectRoot,
|
|
3747
3780
|
parsedTags: options.tags ? options.tags.split(",").map((s) => s.trim()) : [],
|
|
3748
3781
|
importPath: normalizedImportPath,
|
|
3749
|
-
rootProject
|
|
3782
|
+
rootProject,
|
|
3783
|
+
shouldUseSwcJest: false
|
|
3750
3784
|
};
|
|
3751
3785
|
}
|
|
3752
3786
|
__name(normalizeOptions, "normalizeOptions");
|
|
@@ -3822,11 +3856,12 @@ var generator_default = withRunGenerator("TypeScript Library Creator (Browser Pl
|
|
|
3822
3856
|
});
|
|
3823
3857
|
|
|
3824
3858
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
3859
|
+
init_esm_shims();
|
|
3825
3860
|
import { formatFiles as formatFiles3, writeJson as writeJson2 } from "@nx/devkit";
|
|
3826
3861
|
import { zodToJsonSchema } from "zod-to-json-schema";
|
|
3827
3862
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
3828
|
-
writeInfo("\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
|
|
3829
|
-
writeTrace(`Determining the Storm Configuration JSON Schema...`, config);
|
|
3863
|
+
writeInfo("\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
|
|
3864
|
+
writeTrace(`Determining the Storm Workspace Configuration JSON Schema...`, config);
|
|
3830
3865
|
const jsonSchema = zodToJsonSchema(StormConfigSchema, {
|
|
3831
3866
|
name: "StormWorkspaceConfiguration"
|
|
3832
3867
|
});
|
|
@@ -3853,6 +3888,7 @@ var generator_default2 = withRunGenerator("Configuration Schema Creator", config
|
|
|
3853
3888
|
});
|
|
3854
3889
|
|
|
3855
3890
|
// ../workspace-tools/src/generators/init/init.ts
|
|
3891
|
+
init_esm_shims();
|
|
3856
3892
|
import { addDependenciesToPackageJson as addDependenciesToPackageJson2, formatFiles as formatFiles4 } from "@nx/devkit";
|
|
3857
3893
|
async function initGenerator(tree, schema) {
|
|
3858
3894
|
const task = addDependenciesToPackageJson2(tree, {
|
|
@@ -3874,6 +3910,7 @@ async function initGenerator(tree, schema) {
|
|
|
3874
3910
|
__name(initGenerator, "initGenerator");
|
|
3875
3911
|
|
|
3876
3912
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
3913
|
+
init_esm_shims();
|
|
3877
3914
|
import { formatFiles as formatFiles5, generateFiles as generateFiles2, names as names3, offsetFromRoot as offsetFromRoot3 } from "@nx/devkit";
|
|
3878
3915
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
3879
3916
|
const filesDir = joinPaths(__dirname, "src", "generators", "neutral-library", "files");
|
|
@@ -3917,6 +3954,7 @@ var generator_default3 = withRunGenerator("TypeScript Library Creator (Neutral P
|
|
|
3917
3954
|
});
|
|
3918
3955
|
|
|
3919
3956
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
3957
|
+
init_esm_shims();
|
|
3920
3958
|
import { formatFiles as formatFiles6, generateFiles as generateFiles3, names as names4, offsetFromRoot as offsetFromRoot4 } from "@nx/devkit";
|
|
3921
3959
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
3922
3960
|
const filesDir = joinPaths(__dirname, "src", "generators", "node-library", "files");
|
|
@@ -3964,6 +4002,7 @@ var generator_default4 = withRunGenerator("TypeScript Library Creator (NodeJs Pl
|
|
|
3964
4002
|
});
|
|
3965
4003
|
|
|
3966
4004
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
4005
|
+
init_esm_shims();
|
|
3967
4006
|
import { addDependenciesToPackageJson as addDependenciesToPackageJson3, addProjectConfiguration as addProjectConfiguration2, formatFiles as formatFiles7, generateFiles as generateFiles4, joinPathFragments as joinPathFragments4, updateJson as updateJson2 } from "@nx/devkit";
|
|
3968
4007
|
import * as path6 from "node:path";
|
|
3969
4008
|
async function presetGeneratorFn(tree, options) {
|
|
@@ -4189,11 +4228,19 @@ __name(presetGeneratorFn, "presetGeneratorFn");
|
|
|
4189
4228
|
var generator_default5 = withRunGenerator("Storm Workspace Preset Generator", presetGeneratorFn);
|
|
4190
4229
|
|
|
4191
4230
|
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
4231
|
+
init_esm_shims();
|
|
4192
4232
|
import { formatFiles as formatFiles8, joinPathFragments as joinPathFragments5, output, readJson as readJson2, updateJson as updateJson3, writeJson as writeJson3 } from "@nx/devkit";
|
|
4193
4233
|
import { resolveLocalPackageDependencies as resolveLocalPackageJsonDependencies } from "@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies";
|
|
4194
4234
|
import { updateLockFile } from "@nx/js/src/generators/release-version/utils/update-lock-file";
|
|
4195
4235
|
|
|
4236
|
+
// ../git-tools/src/index.ts
|
|
4237
|
+
init_esm_shims();
|
|
4238
|
+
|
|
4239
|
+
// ../git-tools/src/commit/config.ts
|
|
4240
|
+
init_esm_shims();
|
|
4241
|
+
|
|
4196
4242
|
// ../git-tools/src/types.ts
|
|
4243
|
+
init_esm_shims();
|
|
4197
4244
|
var RuleConfigSeverity;
|
|
4198
4245
|
(function(RuleConfigSeverity2) {
|
|
4199
4246
|
RuleConfigSeverity2[RuleConfigSeverity2["Disabled"] = 0] = "Disabled";
|
|
@@ -4202,8 +4249,12 @@ var RuleConfigSeverity;
|
|
|
4202
4249
|
})(RuleConfigSeverity || (RuleConfigSeverity = {}));
|
|
4203
4250
|
|
|
4204
4251
|
// ../git-tools/src/release/changelog-renderer.ts
|
|
4252
|
+
init_esm_shims();
|
|
4205
4253
|
import ChangelogRenderer from "nx/release/changelog-renderer/index";
|
|
4206
4254
|
|
|
4255
|
+
// ../git-tools/src/release/config.ts
|
|
4256
|
+
init_esm_shims();
|
|
4257
|
+
|
|
4207
4258
|
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
4208
4259
|
import { exec as exec2, execSync as execSync5 } from "node:child_process";
|
|
4209
4260
|
import { relative as relative3 } from "node:path";
|
|
@@ -4215,7 +4266,11 @@ import { deriveNewSemverVersion, validReleaseVersionPrefixes } from "nx/src/comm
|
|
|
4215
4266
|
import { interpolate } from "nx/src/tasks-runner/utils";
|
|
4216
4267
|
import { prerelease } from "semver";
|
|
4217
4268
|
|
|
4269
|
+
// ../workspace-tools/src/base/index.ts
|
|
4270
|
+
init_esm_shims();
|
|
4271
|
+
|
|
4218
4272
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
4273
|
+
init_esm_shims();
|
|
4219
4274
|
import { defineUntypedSchema } from "untyped";
|
|
4220
4275
|
var base_executor_untyped_default = defineUntypedSchema({
|
|
4221
4276
|
$schema: {
|
|
@@ -4235,6 +4290,7 @@ var base_executor_untyped_default = defineUntypedSchema({
|
|
|
4235
4290
|
});
|
|
4236
4291
|
|
|
4237
4292
|
// ../workspace-tools/src/base/base-generator.untyped.ts
|
|
4293
|
+
init_esm_shims();
|
|
4238
4294
|
import { defineUntypedSchema as defineUntypedSchema2 } from "untyped";
|
|
4239
4295
|
var base_generator_untyped_default = defineUntypedSchema2({
|
|
4240
4296
|
$schema: {
|
|
@@ -4252,6 +4308,7 @@ var base_generator_untyped_default = defineUntypedSchema2({
|
|
|
4252
4308
|
});
|
|
4253
4309
|
|
|
4254
4310
|
// ../workspace-tools/src/base/cargo-base-executor.untyped.ts
|
|
4311
|
+
init_esm_shims();
|
|
4255
4312
|
import { defineUntypedSchema as defineUntypedSchema3 } from "untyped";
|
|
4256
4313
|
var cargo_base_executor_untyped_default = defineUntypedSchema3({
|
|
4257
4314
|
...base_executor_untyped_default,
|
|
@@ -4338,6 +4395,7 @@ var cargo_base_executor_untyped_default = defineUntypedSchema3({
|
|
|
4338
4395
|
});
|
|
4339
4396
|
|
|
4340
4397
|
// ../workspace-tools/src/base/typescript-build-executor.untyped.ts
|
|
4398
|
+
init_esm_shims();
|
|
4341
4399
|
import { defineUntypedSchema as defineUntypedSchema4 } from "untyped";
|
|
4342
4400
|
var typescript_build_executor_untyped_default = defineUntypedSchema4({
|
|
4343
4401
|
...base_executor_untyped_default,
|
|
@@ -4507,6 +4565,7 @@ var typescript_build_executor_untyped_default = defineUntypedSchema4({
|
|
|
4507
4565
|
});
|
|
4508
4566
|
|
|
4509
4567
|
// ../workspace-tools/src/base/typescript-library-generator.untyped.ts
|
|
4568
|
+
init_esm_shims();
|
|
4510
4569
|
import { defineUntypedSchema as defineUntypedSchema5 } from "untyped";
|
|
4511
4570
|
var typescript_library_generator_untyped_default = defineUntypedSchema5({
|
|
4512
4571
|
...base_generator_untyped_default,
|
|
@@ -4626,13 +4685,25 @@ var typescript_library_generator_untyped_default = defineUntypedSchema5({
|
|
|
4626
4685
|
}
|
|
4627
4686
|
});
|
|
4628
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
|
+
|
|
4629
4697
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
4698
|
+
init_esm_shims();
|
|
4630
4699
|
import { names as names5 } from "@nx/devkit";
|
|
4631
4700
|
|
|
4632
4701
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
4702
|
+
init_esm_shims();
|
|
4633
4703
|
import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/project-graph/utils/retrieve-workspace-files";
|
|
4634
4704
|
|
|
4635
4705
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
4706
|
+
init_esm_shims();
|
|
4636
4707
|
import { output as output2, readJsonFile, workspaceRoot as workspaceRoot2 } from "@nx/devkit";
|
|
4637
4708
|
import { existsSync as existsSync9 } from "node:fs";
|
|
4638
4709
|
import { join as join4 } from "node:path";
|
|
@@ -4647,16 +4718,19 @@ var NPM_LOCK_PATH = join4(workspaceRoot2, NPM_LOCK_FILE);
|
|
|
4647
4718
|
var PNPM_LOCK_PATH = join4(workspaceRoot2, PNPM_LOCK_FILE);
|
|
4648
4719
|
|
|
4649
4720
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
4721
|
+
init_esm_shims();
|
|
4650
4722
|
import { joinPathFragments as joinPathFragments6, readJsonFile as readJsonFile2 } from "@nx/devkit";
|
|
4651
4723
|
import { existsSync as existsSync10 } from "node:fs";
|
|
4652
4724
|
|
|
4653
4725
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
4726
|
+
init_esm_shims();
|
|
4654
4727
|
import { readJsonFile as readJsonFile3 } from "@nx/devkit";
|
|
4655
4728
|
import defu7 from "defu";
|
|
4656
4729
|
import { existsSync as existsSync11 } from "node:fs";
|
|
4657
4730
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
4658
4731
|
|
|
4659
4732
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
4733
|
+
init_esm_shims();
|
|
4660
4734
|
import transform2 from "typia/lib/transform";
|
|
4661
4735
|
|
|
4662
4736
|
// src/generators/init/generator.ts
|