@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,16 +1,39 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk3HI6WK3Mjs = require('./chunk-3HI6WK3M.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkZH7QZ5EFjs = require('./chunk-ZH7QZ5EF.js');
|
|
5
10
|
|
|
6
11
|
// src/generators/init/generator.ts
|
|
12
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
7
13
|
var _devkit = require('@nx/devkit');
|
|
8
14
|
|
|
15
|
+
// ../workspace-tools/index.ts
|
|
16
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
17
|
+
|
|
18
|
+
// ../workspace-tools/executors.ts
|
|
19
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
20
|
+
|
|
21
|
+
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
22
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
23
|
+
|
|
24
|
+
// ../workspace-tools/src/base/base-executor.ts
|
|
25
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
26
|
+
|
|
9
27
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
28
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
10
29
|
var _c12 = require('c12');
|
|
11
30
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
12
31
|
|
|
32
|
+
// ../config-tools/src/logger/console.ts
|
|
33
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
34
|
+
|
|
13
35
|
// ../config-tools/src/types.ts
|
|
36
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
14
37
|
var LogLevel = {
|
|
15
38
|
SILENT: 0,
|
|
16
39
|
FATAL: 10,
|
|
@@ -34,13 +57,24 @@ var LogLevelLabel = {
|
|
|
34
57
|
ALL: "all"
|
|
35
58
|
};
|
|
36
59
|
|
|
60
|
+
// ../config-tools/src/utilities/get-default-config.ts
|
|
61
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
62
|
+
|
|
63
|
+
// ../config/src/index.ts
|
|
64
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
65
|
+
|
|
37
66
|
// ../config/src/constants.ts
|
|
67
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
38
68
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
39
69
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
40
70
|
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
41
71
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
42
72
|
|
|
73
|
+
// ../config/src/define-config.ts
|
|
74
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
75
|
+
|
|
43
76
|
// ../config/src/schema.ts
|
|
77
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
44
78
|
var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
|
|
45
79
|
var DarkColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
46
80
|
var LightColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
@@ -138,7 +172,7 @@ var WorkspaceDirectoryConfigSchema = _zod2.default.object({
|
|
|
138
172
|
build: _zod2.default.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
139
173
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
140
174
|
var StormConfigSchema = _zod2.default.object({
|
|
141
|
-
$schema: _zod2.default.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"),
|
|
175
|
+
$schema: _zod2.default.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"),
|
|
142
176
|
extends: ExtendsSchema.optional(),
|
|
143
177
|
name: _zod2.default.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
144
178
|
namespace: _zod2.default.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
@@ -180,6 +214,7 @@ var StormConfigSchema = _zod2.default.object({
|
|
|
180
214
|
"trace",
|
|
181
215
|
"all"
|
|
182
216
|
]).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`)."),
|
|
217
|
+
skipConfigLogging: _zod2.default.boolean().optional().describe("Should the logging of the current Storm Workspace configuration be skipped?"),
|
|
183
218
|
registry: RegistryConfigSchema,
|
|
184
219
|
configFile: _zod2.default.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."),
|
|
185
220
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe("Storm theme config values used for styling various package elements"),
|
|
@@ -187,6 +222,7 @@ var StormConfigSchema = _zod2.default.object({
|
|
|
187
222
|
}).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.");
|
|
188
223
|
|
|
189
224
|
// ../config/src/types.ts
|
|
225
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
190
226
|
var COLOR_KEYS = [
|
|
191
227
|
"dark",
|
|
192
228
|
"light",
|
|
@@ -210,164 +246,44 @@ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
|
210
246
|
var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
|
|
211
247
|
var _path = require('path'); var path6 = _interopRequireWildcard(_path);
|
|
212
248
|
|
|
213
|
-
// ../config-tools/src/utilities/
|
|
214
|
-
|
|
215
|
-
function normalizeWindowsPath(input = "") {
|
|
216
|
-
if (!input) {
|
|
217
|
-
return input;
|
|
218
|
-
}
|
|
219
|
-
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
220
|
-
}
|
|
221
|
-
_chunk3GQAWCBQjs.__name.call(void 0, normalizeWindowsPath, "normalizeWindowsPath");
|
|
222
|
-
var _UNC_REGEX = /^[/\\]{2}/;
|
|
223
|
-
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
224
|
-
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
225
|
-
var correctPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, function(path7) {
|
|
226
|
-
if (!path7 || path7.length === 0) {
|
|
227
|
-
return ".";
|
|
228
|
-
}
|
|
229
|
-
path7 = normalizeWindowsPath(path7);
|
|
230
|
-
const isUNCPath = path7.match(_UNC_REGEX);
|
|
231
|
-
const isPathAbsolute = isAbsolute(path7);
|
|
232
|
-
const trailingSeparator = path7[path7.length - 1] === "/";
|
|
233
|
-
path7 = normalizeString(path7, !isPathAbsolute);
|
|
234
|
-
if (path7.length === 0) {
|
|
235
|
-
if (isPathAbsolute) {
|
|
236
|
-
return "/";
|
|
237
|
-
}
|
|
238
|
-
return trailingSeparator ? "./" : ".";
|
|
239
|
-
}
|
|
240
|
-
if (trailingSeparator) {
|
|
241
|
-
path7 += "/";
|
|
242
|
-
}
|
|
243
|
-
if (_DRIVE_LETTER_RE.test(path7)) {
|
|
244
|
-
path7 += "/";
|
|
245
|
-
}
|
|
246
|
-
if (isUNCPath) {
|
|
247
|
-
if (!isPathAbsolute) {
|
|
248
|
-
return `//./${path7}`;
|
|
249
|
-
}
|
|
250
|
-
return `//${path7}`;
|
|
251
|
-
}
|
|
252
|
-
return isPathAbsolute && !isAbsolute(path7) ? `/${path7}` : path7;
|
|
253
|
-
}, "correctPaths");
|
|
254
|
-
var joinPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, function(...segments) {
|
|
255
|
-
let path7 = "";
|
|
256
|
-
for (const seg of segments) {
|
|
257
|
-
if (!seg) {
|
|
258
|
-
continue;
|
|
259
|
-
}
|
|
260
|
-
if (path7.length > 0) {
|
|
261
|
-
const pathTrailing = path7[path7.length - 1] === "/";
|
|
262
|
-
const segLeading = seg[0] === "/";
|
|
263
|
-
const both = pathTrailing && segLeading;
|
|
264
|
-
if (both) {
|
|
265
|
-
path7 += seg.slice(1);
|
|
266
|
-
} else {
|
|
267
|
-
path7 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
268
|
-
}
|
|
269
|
-
} else {
|
|
270
|
-
path7 += seg;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
return correctPaths(path7);
|
|
274
|
-
}, "joinPaths");
|
|
275
|
-
function normalizeString(path7, allowAboveRoot) {
|
|
276
|
-
let res = "";
|
|
277
|
-
let lastSegmentLength = 0;
|
|
278
|
-
let lastSlash = -1;
|
|
279
|
-
let dots = 0;
|
|
280
|
-
let char = null;
|
|
281
|
-
for (let index = 0; index <= path7.length; ++index) {
|
|
282
|
-
if (index < path7.length) {
|
|
283
|
-
char = path7[index];
|
|
284
|
-
} else if (char === "/") {
|
|
285
|
-
break;
|
|
286
|
-
} else {
|
|
287
|
-
char = "/";
|
|
288
|
-
}
|
|
289
|
-
if (char === "/") {
|
|
290
|
-
if (lastSlash === index - 1 || dots === 1) {
|
|
291
|
-
} else if (dots === 2) {
|
|
292
|
-
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
293
|
-
if (res.length > 2) {
|
|
294
|
-
const lastSlashIndex = res.lastIndexOf("/");
|
|
295
|
-
if (lastSlashIndex === -1) {
|
|
296
|
-
res = "";
|
|
297
|
-
lastSegmentLength = 0;
|
|
298
|
-
} else {
|
|
299
|
-
res = res.slice(0, lastSlashIndex);
|
|
300
|
-
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
301
|
-
}
|
|
302
|
-
lastSlash = index;
|
|
303
|
-
dots = 0;
|
|
304
|
-
continue;
|
|
305
|
-
} else if (res.length > 0) {
|
|
306
|
-
res = "";
|
|
307
|
-
lastSegmentLength = 0;
|
|
308
|
-
lastSlash = index;
|
|
309
|
-
dots = 0;
|
|
310
|
-
continue;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
if (allowAboveRoot) {
|
|
314
|
-
res += res.length > 0 ? "/.." : "..";
|
|
315
|
-
lastSegmentLength = 2;
|
|
316
|
-
}
|
|
317
|
-
} else {
|
|
318
|
-
if (res.length > 0) {
|
|
319
|
-
res += `/${path7.slice(lastSlash + 1, index)}`;
|
|
320
|
-
} else {
|
|
321
|
-
res = path7.slice(lastSlash + 1, index);
|
|
322
|
-
}
|
|
323
|
-
lastSegmentLength = index - lastSlash - 1;
|
|
324
|
-
}
|
|
325
|
-
lastSlash = index;
|
|
326
|
-
dots = 0;
|
|
327
|
-
} else if (char === "." && dots !== -1) {
|
|
328
|
-
++dots;
|
|
329
|
-
} else {
|
|
330
|
-
dots = -1;
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
return res;
|
|
334
|
-
}
|
|
335
|
-
_chunk3GQAWCBQjs.__name.call(void 0, normalizeString, "normalizeString");
|
|
336
|
-
var isAbsolute = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, function(p) {
|
|
337
|
-
return _IS_ABSOLUTE_RE.test(p);
|
|
338
|
-
}, "isAbsolute");
|
|
249
|
+
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
250
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
339
251
|
|
|
340
252
|
// ../config-tools/src/utilities/find-up.ts
|
|
253
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
341
254
|
|
|
342
255
|
|
|
343
256
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
344
257
|
var depth = 0;
|
|
345
|
-
function findFolderUp(startPath, endFileNames) {
|
|
258
|
+
function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
346
259
|
const _startPath = _nullishCoalesce(startPath, () => ( process.cwd()));
|
|
260
|
+
if (endDirectoryNames.some((endDirName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endDirName)))) {
|
|
261
|
+
return _startPath;
|
|
262
|
+
}
|
|
347
263
|
if (endFileNames.some((endFileName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endFileName)))) {
|
|
348
264
|
return _startPath;
|
|
349
265
|
}
|
|
350
266
|
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
351
267
|
const parent = _path.join.call(void 0, _startPath, "..");
|
|
352
|
-
return findFolderUp(parent, endFileNames);
|
|
268
|
+
return findFolderUp(parent, endFileNames, endDirectoryNames);
|
|
353
269
|
}
|
|
354
270
|
return void 0;
|
|
355
271
|
}
|
|
356
|
-
|
|
272
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, findFolderUp, "findFolderUp");
|
|
357
273
|
|
|
358
274
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
359
275
|
var rootFiles = [
|
|
360
|
-
"storm.json",
|
|
361
|
-
"storm.json",
|
|
362
|
-
"storm.yaml",
|
|
363
|
-
"storm.yml",
|
|
364
|
-
"storm.js",
|
|
365
|
-
"storm.ts",
|
|
366
|
-
".storm.json",
|
|
367
|
-
".storm.yaml",
|
|
368
|
-
".storm.yml",
|
|
369
|
-
".storm.js",
|
|
370
|
-
".storm.ts",
|
|
276
|
+
"storm-workspace.json",
|
|
277
|
+
"storm-workspace.json",
|
|
278
|
+
"storm-workspace.yaml",
|
|
279
|
+
"storm-workspace.yml",
|
|
280
|
+
"storm-workspace.js",
|
|
281
|
+
"storm-workspace.ts",
|
|
282
|
+
".storm-workspace.json",
|
|
283
|
+
".storm-workspace.yaml",
|
|
284
|
+
".storm-workspace.yml",
|
|
285
|
+
".storm-workspace.js",
|
|
286
|
+
".storm-workspace.ts",
|
|
371
287
|
"lerna.json",
|
|
372
288
|
"nx.json",
|
|
373
289
|
"turbo.json",
|
|
@@ -391,13 +307,20 @@ var rootFiles = [
|
|
|
391
307
|
"pnpm-lock.yml",
|
|
392
308
|
"bun.lockb"
|
|
393
309
|
];
|
|
310
|
+
var rootDirectories = [
|
|
311
|
+
".storm-workspace",
|
|
312
|
+
".nx",
|
|
313
|
+
".github",
|
|
314
|
+
".vscode",
|
|
315
|
+
".verdaccio"
|
|
316
|
+
];
|
|
394
317
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
395
318
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
396
|
-
return correctPaths(_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH)));
|
|
319
|
+
return _chunk3HI6WK3Mjs.correctPaths.call(void 0, _nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH)));
|
|
397
320
|
}
|
|
398
|
-
return correctPaths(findFolderUp(_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())), rootFiles));
|
|
321
|
+
return _chunk3HI6WK3Mjs.correctPaths.call(void 0, findFolderUp(_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())), rootFiles, rootDirectories));
|
|
399
322
|
}
|
|
400
|
-
|
|
323
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, findWorkspaceRootSafe, "findWorkspaceRootSafe");
|
|
401
324
|
function findWorkspaceRoot(pathInsideMonorepo) {
|
|
402
325
|
const result = findWorkspaceRootSafe(pathInsideMonorepo);
|
|
403
326
|
if (!result) {
|
|
@@ -407,7 +330,7 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`);
|
|
|
407
330
|
}
|
|
408
331
|
return result;
|
|
409
332
|
}
|
|
410
|
-
|
|
333
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, findWorkspaceRoot, "findWorkspaceRoot");
|
|
411
334
|
|
|
412
335
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
413
336
|
var DEFAULT_COLOR_CONFIG = {
|
|
@@ -438,7 +361,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
438
361
|
"negative": "#dc2626"
|
|
439
362
|
}
|
|
440
363
|
};
|
|
441
|
-
var getDefaultConfig = /* @__PURE__ */
|
|
364
|
+
var getDefaultConfig = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async (root) => {
|
|
442
365
|
let license = STORM_DEFAULT_LICENSE;
|
|
443
366
|
let homepage = STORM_DEFAULT_HOMEPAGE;
|
|
444
367
|
let name = void 0;
|
|
@@ -446,7 +369,7 @@ var getDefaultConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, asyn
|
|
|
446
369
|
let repository = void 0;
|
|
447
370
|
const workspaceRoot3 = findWorkspaceRoot(root);
|
|
448
371
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot3, "package.json"))) {
|
|
449
|
-
const file = await _promises.readFile.call(void 0, joinPaths(workspaceRoot3, "package.json"), "utf8");
|
|
372
|
+
const file = await _promises.readFile.call(void 0, _chunk3HI6WK3Mjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
|
|
450
373
|
if (file) {
|
|
451
374
|
const packageJson = JSON.parse(file);
|
|
452
375
|
if (packageJson.name) {
|
|
@@ -483,27 +406,28 @@ var getDefaultConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, asyn
|
|
|
483
406
|
}, "getDefaultConfig");
|
|
484
407
|
|
|
485
408
|
// ../config-tools/src/logger/chalk.ts
|
|
409
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
486
410
|
var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
487
411
|
var chalkDefault = {
|
|
488
|
-
hex: /* @__PURE__ */
|
|
489
|
-
bgHex: /* @__PURE__ */
|
|
490
|
-
whiteBright: /* @__PURE__ */
|
|
412
|
+
hex: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (_) => (message) => message, "hex"),
|
|
413
|
+
bgHex: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (_) => ({
|
|
414
|
+
whiteBright: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (message) => message, "whiteBright")
|
|
491
415
|
}), "bgHex"),
|
|
492
|
-
whiteBright: /* @__PURE__ */
|
|
493
|
-
gray: /* @__PURE__ */
|
|
416
|
+
whiteBright: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (message) => message, "whiteBright"),
|
|
417
|
+
gray: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (message) => message, "gray"),
|
|
494
418
|
bold: {
|
|
495
|
-
hex: /* @__PURE__ */
|
|
496
|
-
bgHex: /* @__PURE__ */
|
|
497
|
-
whiteBright: /* @__PURE__ */
|
|
419
|
+
hex: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (_) => (message) => message, "hex"),
|
|
420
|
+
bgHex: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (_) => ({
|
|
421
|
+
whiteBright: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (message) => message, "whiteBright")
|
|
498
422
|
}), "bgHex"),
|
|
499
|
-
whiteBright: /* @__PURE__ */
|
|
423
|
+
whiteBright: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (message) => message, "whiteBright")
|
|
500
424
|
},
|
|
501
425
|
dim: {
|
|
502
|
-
hex: /* @__PURE__ */
|
|
503
|
-
gray: /* @__PURE__ */
|
|
426
|
+
hex: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (_) => (message) => message, "hex"),
|
|
427
|
+
gray: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (message) => message, "gray")
|
|
504
428
|
}
|
|
505
429
|
};
|
|
506
|
-
var getChalk = /* @__PURE__ */
|
|
430
|
+
var getChalk = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, () => {
|
|
507
431
|
let _chalk = _chalk3.default;
|
|
508
432
|
if (!_optionalChain([_chalk, 'optionalAccess', _2 => _2.hex]) || !_optionalChain([_chalk, 'optionalAccess', _3 => _3.bold, 'optionalAccess', _4 => _4.hex]) || !_optionalChain([_chalk, 'optionalAccess', _5 => _5.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _6 => _6.whiteBright])) {
|
|
509
433
|
_chalk = chalkDefault;
|
|
@@ -511,7 +435,11 @@ var getChalk = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
|
|
|
511
435
|
return _chalk;
|
|
512
436
|
}, "getChalk");
|
|
513
437
|
|
|
438
|
+
// ../config-tools/src/logger/console-icons.ts
|
|
439
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
440
|
+
|
|
514
441
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
442
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
515
443
|
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
516
444
|
function isUnicodeSupported() {
|
|
517
445
|
const { env } = _process2.default;
|
|
@@ -524,10 +452,10 @@ function isUnicodeSupported() {
|
|
|
524
452
|
env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
|
|
525
453
|
TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
526
454
|
}
|
|
527
|
-
|
|
455
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, isUnicodeSupported, "isUnicodeSupported");
|
|
528
456
|
|
|
529
457
|
// ../config-tools/src/logger/console-icons.ts
|
|
530
|
-
var useIcon = /* @__PURE__ */
|
|
458
|
+
var useIcon = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (c, fallback) => isUnicodeSupported() ? c : fallback, "useIcon");
|
|
531
459
|
var CONSOLE_ICONS = {
|
|
532
460
|
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
533
461
|
[LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
|
|
@@ -540,12 +468,14 @@ var CONSOLE_ICONS = {
|
|
|
540
468
|
};
|
|
541
469
|
|
|
542
470
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
543
|
-
|
|
471
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
472
|
+
var formatTimestamp = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (date = /* @__PURE__ */ new Date()) => {
|
|
544
473
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
545
474
|
}, "formatTimestamp");
|
|
546
475
|
|
|
547
476
|
// ../config-tools/src/logger/get-log-level.ts
|
|
548
|
-
|
|
477
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
478
|
+
var getLogLevel = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (label) => {
|
|
549
479
|
switch (label) {
|
|
550
480
|
case "all":
|
|
551
481
|
return LogLevel.ALL;
|
|
@@ -567,7 +497,7 @@ var getLogLevel = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (label) =
|
|
|
567
497
|
return LogLevel.INFO;
|
|
568
498
|
}
|
|
569
499
|
}, "getLogLevel");
|
|
570
|
-
var getLogLevelLabel = /* @__PURE__ */
|
|
500
|
+
var getLogLevelLabel = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (logLevel = LogLevel.INFO) => {
|
|
571
501
|
if (logLevel >= LogLevel.ALL) {
|
|
572
502
|
return LogLevelLabel.ALL;
|
|
573
503
|
}
|
|
@@ -594,13 +524,13 @@ var getLogLevelLabel = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (log
|
|
|
594
524
|
}
|
|
595
525
|
return LogLevelLabel.INFO;
|
|
596
526
|
}, "getLogLevelLabel");
|
|
597
|
-
var isVerbose = /* @__PURE__ */
|
|
527
|
+
var isVerbose = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (label = LogLevelLabel.SILENT) => {
|
|
598
528
|
const logLevel = typeof label === "string" ? getLogLevel(label) : label;
|
|
599
529
|
return logLevel >= LogLevel.DEBUG;
|
|
600
530
|
}, "isVerbose");
|
|
601
531
|
|
|
602
532
|
// ../config-tools/src/logger/console.ts
|
|
603
|
-
var getLogFn = /* @__PURE__ */
|
|
533
|
+
var getLogFn = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
604
534
|
const colors = !_optionalChain([config, 'access', _7 => _7.colors, 'optionalAccess', _8 => _8.dark]) && !_optionalChain([config, 'access', _9 => _9.colors, 'optionalAccess', _10 => _10["base"]]) && !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12["base"], 'optionalAccess', _13 => _13.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"], 'optionalAccess', _18 => _18.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _19 => _19.colors, 'optionalAccess', _20 => _20["base"]]) ? _optionalChain([config, 'access', _21 => _21.colors, 'optionalAccess', _22 => _22["base"]]) : DEFAULT_COLOR_CONFIG;
|
|
605
535
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
606
536
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
@@ -662,14 +592,14 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, ()
|
|
|
662
592
|
`);
|
|
663
593
|
};
|
|
664
594
|
}, "getLogFn");
|
|
665
|
-
var writeFatal = /* @__PURE__ */
|
|
666
|
-
var writeError = /* @__PURE__ */
|
|
667
|
-
var writeWarning = /* @__PURE__ */
|
|
668
|
-
var writeInfo = /* @__PURE__ */
|
|
669
|
-
var writeSuccess = /* @__PURE__ */
|
|
670
|
-
var writeDebug = /* @__PURE__ */
|
|
671
|
-
var writeTrace = /* @__PURE__ */
|
|
672
|
-
var getStopwatch = /* @__PURE__ */
|
|
595
|
+
var writeFatal = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.FATAL, config)(message), "writeFatal");
|
|
596
|
+
var writeError = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.ERROR, config)(message), "writeError");
|
|
597
|
+
var writeWarning = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.WARN, config)(message), "writeWarning");
|
|
598
|
+
var writeInfo = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.INFO, config)(message), "writeInfo");
|
|
599
|
+
var writeSuccess = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.SUCCESS, config)(message), "writeSuccess");
|
|
600
|
+
var writeDebug = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.DEBUG, config)(message), "writeDebug");
|
|
601
|
+
var writeTrace = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.TRACE, config)(message), "writeTrace");
|
|
602
|
+
var getStopwatch = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (name) => {
|
|
673
603
|
const start = process.hrtime();
|
|
674
604
|
return () => {
|
|
675
605
|
const end = process.hrtime(start);
|
|
@@ -680,7 +610,7 @@ var getStopwatch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name) =
|
|
|
680
610
|
};
|
|
681
611
|
}, "getStopwatch");
|
|
682
612
|
var MAX_DEPTH = 4;
|
|
683
|
-
var formatLogMessage = /* @__PURE__ */
|
|
613
|
+
var formatLogMessage = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (message, options = {}, depth2 = 0) => {
|
|
684
614
|
if (depth2 > MAX_DEPTH) {
|
|
685
615
|
return "<max depth>";
|
|
686
616
|
}
|
|
@@ -696,7 +626,7 @@ ${Object.keys(message).filter((key) => !skip2.includes(key)).map((key) => ` ${pr
|
|
|
696
626
|
skip: skip2
|
|
697
627
|
}, depth2 + 1) : message[key]}`).join("\n")}` : message;
|
|
698
628
|
}, "formatLogMessage");
|
|
699
|
-
var _isFunction = /* @__PURE__ */
|
|
629
|
+
var _isFunction = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (value) => {
|
|
700
630
|
try {
|
|
701
631
|
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _23 => _23.constructor]) && _optionalChain([value, 'optionalAccess', _24 => _24.call]) && _optionalChain([value, 'optionalAccess', _25 => _25.apply]));
|
|
702
632
|
} catch (e) {
|
|
@@ -705,7 +635,8 @@ var _isFunction = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (value) =
|
|
|
705
635
|
}, "_isFunction");
|
|
706
636
|
|
|
707
637
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
708
|
-
|
|
638
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
639
|
+
var applyWorkspaceBaseTokens = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async (option, tokenParams) => {
|
|
709
640
|
let result = option;
|
|
710
641
|
if (!result) {
|
|
711
642
|
return result;
|
|
@@ -735,10 +666,10 @@ var applyWorkspaceBaseTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void
|
|
|
735
666
|
}
|
|
736
667
|
return result;
|
|
737
668
|
}, "applyWorkspaceBaseTokens");
|
|
738
|
-
var applyWorkspaceProjectTokens = /* @__PURE__ */
|
|
669
|
+
var applyWorkspaceProjectTokens = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (option, tokenParams) => {
|
|
739
670
|
return applyWorkspaceBaseTokens(option, tokenParams);
|
|
740
671
|
}, "applyWorkspaceProjectTokens");
|
|
741
|
-
var applyWorkspaceTokens = /* @__PURE__ */
|
|
672
|
+
var applyWorkspaceTokens = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async (options, tokenParams, tokenizerFn) => {
|
|
742
673
|
if (!options) {
|
|
743
674
|
return {};
|
|
744
675
|
}
|
|
@@ -758,9 +689,10 @@ var applyWorkspaceTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
|
|
|
758
689
|
}, "applyWorkspaceTokens");
|
|
759
690
|
|
|
760
691
|
// ../config-tools/src/utilities/run.ts
|
|
692
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
761
693
|
var _child_process = require('child_process');
|
|
762
694
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
763
|
-
var run = /* @__PURE__ */
|
|
695
|
+
var run = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (config, command, cwd = _nullishCoalesce(config.workspaceRoot, () => ( process.cwd())), stdio = "inherit", env = process.env) => {
|
|
764
696
|
return _child_process.execSync.call(void 0, command, {
|
|
765
697
|
cwd,
|
|
766
698
|
env: {
|
|
@@ -777,7 +709,7 @@ var run = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config, command,
|
|
|
777
709
|
}, "run");
|
|
778
710
|
|
|
779
711
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
780
|
-
var getConfigFileByName = /* @__PURE__ */
|
|
712
|
+
var getConfigFileByName = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
781
713
|
const workspacePath = filePath || findWorkspaceRoot(filePath);
|
|
782
714
|
const configs = await Promise.all([
|
|
783
715
|
_c12.loadConfig.call(void 0, {
|
|
@@ -787,7 +719,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, a
|
|
|
787
719
|
envName: _optionalChain([fileName, 'optionalAccess', _29 => _29.toUpperCase, 'call', _30 => _30()]),
|
|
788
720
|
jitiOptions: {
|
|
789
721
|
debug: false,
|
|
790
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
722
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunk3HI6WK3Mjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
791
723
|
},
|
|
792
724
|
...options
|
|
793
725
|
}),
|
|
@@ -798,7 +730,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, a
|
|
|
798
730
|
envName: _optionalChain([fileName, 'optionalAccess', _31 => _31.toUpperCase, 'call', _32 => _32()]),
|
|
799
731
|
jitiOptions: {
|
|
800
732
|
debug: false,
|
|
801
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
733
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunk3HI6WK3Mjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
802
734
|
},
|
|
803
735
|
configFile: fileName,
|
|
804
736
|
...options
|
|
@@ -806,12 +738,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, a
|
|
|
806
738
|
]);
|
|
807
739
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
808
740
|
}, "getConfigFileByName");
|
|
809
|
-
var getConfigFile = /* @__PURE__ */
|
|
741
|
+
var getConfigFile = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
|
|
810
742
|
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
811
|
-
const result = await getConfigFileByName("storm", workspacePath);
|
|
743
|
+
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
812
744
|
let config = result.config;
|
|
813
745
|
const configFile = result.configFile;
|
|
814
|
-
if (config && configFile && Object.keys(config).length > 0) {
|
|
746
|
+
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
815
747
|
writeTrace(`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
816
748
|
logLevel: "all"
|
|
817
749
|
});
|
|
@@ -820,9 +752,11 @@ var getConfigFile = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (
|
|
|
820
752
|
const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
|
|
821
753
|
for (const result2 of results) {
|
|
822
754
|
if (_optionalChain([result2, 'optionalAccess', _33 => _33.config]) && _optionalChain([result2, 'optionalAccess', _34 => _34.configFile]) && Object.keys(result2.config).length > 0) {
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
755
|
+
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
756
|
+
writeTrace(`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
757
|
+
logLevel: "all"
|
|
758
|
+
});
|
|
759
|
+
}
|
|
826
760
|
config = _defu2.default.call(void 0, _nullishCoalesce(result2.config, () => ( {})), _nullishCoalesce(config, () => ( {})));
|
|
827
761
|
}
|
|
828
762
|
}
|
|
@@ -835,10 +769,12 @@ var getConfigFile = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (
|
|
|
835
769
|
}, "getConfigFile");
|
|
836
770
|
|
|
837
771
|
// ../config-tools/src/create-storm-config.ts
|
|
772
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
838
773
|
|
|
839
774
|
|
|
840
775
|
// ../config-tools/src/env/get-env.ts
|
|
841
|
-
|
|
776
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
777
|
+
var getExtensionEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (extensionName) => {
|
|
842
778
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
843
779
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
844
780
|
const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
|
|
@@ -848,7 +784,7 @@ var getExtensionEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (exte
|
|
|
848
784
|
return ret;
|
|
849
785
|
}, {});
|
|
850
786
|
}, "getExtensionEnv");
|
|
851
|
-
var getConfigEnv = /* @__PURE__ */
|
|
787
|
+
var getConfigEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, () => {
|
|
852
788
|
const prefix = "STORM_";
|
|
853
789
|
let config = {
|
|
854
790
|
extends: process.env[`${prefix}EXTENDS`] || void 0,
|
|
@@ -867,15 +803,15 @@ var getConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
|
|
|
867
803
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
868
804
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
869
805
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
870
|
-
configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
871
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
806
|
+
configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunk3HI6WK3Mjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
807
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunk3HI6WK3Mjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
872
808
|
directories: {
|
|
873
|
-
cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : void 0,
|
|
874
|
-
data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : void 0,
|
|
875
|
-
config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : void 0,
|
|
876
|
-
temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : void 0,
|
|
877
|
-
log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : void 0,
|
|
878
|
-
build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
809
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunk3HI6WK3Mjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
|
|
810
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunk3HI6WK3Mjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
|
|
811
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunk3HI6WK3Mjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
|
|
812
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunk3HI6WK3Mjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
|
|
813
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunk3HI6WK3Mjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
|
|
814
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunk3HI6WK3Mjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
879
815
|
},
|
|
880
816
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
881
817
|
env: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}ENV`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -898,7 +834,8 @@ var getConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
|
|
|
898
834
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
899
835
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
900
836
|
},
|
|
901
|
-
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
|
|
837
|
+
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
|
+
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
902
839
|
};
|
|
903
840
|
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}`)));
|
|
904
841
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
@@ -937,11 +874,11 @@ var getConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
|
|
|
937
874
|
}
|
|
938
875
|
return config;
|
|
939
876
|
}, "getConfigEnv");
|
|
940
|
-
var getThemeColorConfigEnv = /* @__PURE__ */
|
|
877
|
+
var getThemeColorConfigEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (prefix, theme) => {
|
|
941
878
|
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
942
879
|
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
|
|
943
880
|
}, "getThemeColorConfigEnv");
|
|
944
|
-
var getSingleThemeColorConfigEnv = /* @__PURE__ */
|
|
881
|
+
var getSingleThemeColorConfigEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (prefix) => {
|
|
945
882
|
return {
|
|
946
883
|
dark: process.env[`${prefix}DARK`],
|
|
947
884
|
light: process.env[`${prefix}LIGHT`],
|
|
@@ -959,13 +896,13 @@ var getSingleThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(
|
|
|
959
896
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
960
897
|
};
|
|
961
898
|
}, "getSingleThemeColorConfigEnv");
|
|
962
|
-
var getMultiThemeColorConfigEnv = /* @__PURE__ */
|
|
899
|
+
var getMultiThemeColorConfigEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (prefix) => {
|
|
963
900
|
return {
|
|
964
901
|
light: getBaseThemeColorConfigEnv(`${prefix}_LIGHT_`),
|
|
965
902
|
dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
|
|
966
903
|
};
|
|
967
904
|
}, "getMultiThemeColorConfigEnv");
|
|
968
|
-
var getBaseThemeColorConfigEnv = /* @__PURE__ */
|
|
905
|
+
var getBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (prefix) => {
|
|
969
906
|
return {
|
|
970
907
|
foreground: process.env[`${prefix}FOREGROUND`],
|
|
971
908
|
background: process.env[`${prefix}BACKGROUND`],
|
|
@@ -985,7 +922,8 @@ var getBaseThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(vo
|
|
|
985
922
|
}, "getBaseThemeColorConfigEnv");
|
|
986
923
|
|
|
987
924
|
// ../config-tools/src/env/set-env.ts
|
|
988
|
-
|
|
925
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
926
|
+
var setExtensionEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (extensionName, extension) => {
|
|
989
927
|
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
990
928
|
if (extension[key]) {
|
|
991
929
|
const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _35 => _35.replace, 'call', _36 => _36(/([A-Z])+/g, (input) => input ? _optionalChain([input, 'access', _37 => _37[0], 'optionalAccess', _38 => _38.toUpperCase, 'call', _39 => _39()]) + input.slice(1) : ""), 'access', _40 => _40.split, 'call', _41 => _41(/(?=[A-Z])|[.\-\s_]/), 'access', _42 => _42.map, 'call', _43 => _43((x) => x.toLowerCase())]), () => ( []));
|
|
@@ -1004,7 +942,7 @@ var setExtensionEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (exte
|
|
|
1004
942
|
}
|
|
1005
943
|
}
|
|
1006
944
|
}, "setExtensionEnv");
|
|
1007
|
-
var setConfigEnv = /* @__PURE__ */
|
|
945
|
+
var setConfigEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (config) => {
|
|
1008
946
|
const prefix = "STORM_";
|
|
1009
947
|
if (config.extends) {
|
|
1010
948
|
process.env[`${prefix}EXTENDS`] = Array.isArray(config.extends) ? JSON.stringify(config.extends) : config.extends;
|
|
@@ -1052,31 +990,31 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
|
|
|
1052
990
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1053
991
|
}
|
|
1054
992
|
if (config.configFile) {
|
|
1055
|
-
process.env[`${prefix}CONFIG_FILE`] = correctPaths(config.configFile);
|
|
993
|
+
process.env[`${prefix}CONFIG_FILE`] = _chunk3HI6WK3Mjs.correctPaths.call(void 0, config.configFile);
|
|
1056
994
|
}
|
|
1057
995
|
if (config.workspaceRoot) {
|
|
1058
|
-
process.env[`${prefix}WORKSPACE_ROOT`] = correctPaths(config.workspaceRoot);
|
|
1059
|
-
process.env.NX_WORKSPACE_ROOT = correctPaths(config.workspaceRoot);
|
|
1060
|
-
process.env.NX_WORKSPACE_ROOT_PATH = correctPaths(config.workspaceRoot);
|
|
996
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunk3HI6WK3Mjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
997
|
+
process.env.NX_WORKSPACE_ROOT = _chunk3HI6WK3Mjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
998
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunk3HI6WK3Mjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1061
999
|
}
|
|
1062
1000
|
if (config.directories) {
|
|
1063
1001
|
if (!config.skipCache && config.directories.cache) {
|
|
1064
|
-
process.env[`${prefix}CACHE_DIR`] = correctPaths(config.directories.cache);
|
|
1002
|
+
process.env[`${prefix}CACHE_DIR`] = _chunk3HI6WK3Mjs.correctPaths.call(void 0, config.directories.cache);
|
|
1065
1003
|
}
|
|
1066
1004
|
if (config.directories.data) {
|
|
1067
|
-
process.env[`${prefix}DATA_DIR`] = correctPaths(config.directories.data);
|
|
1005
|
+
process.env[`${prefix}DATA_DIR`] = _chunk3HI6WK3Mjs.correctPaths.call(void 0, config.directories.data);
|
|
1068
1006
|
}
|
|
1069
1007
|
if (config.directories.config) {
|
|
1070
|
-
process.env[`${prefix}CONFIG_DIR`] = correctPaths(config.directories.config);
|
|
1008
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunk3HI6WK3Mjs.correctPaths.call(void 0, config.directories.config);
|
|
1071
1009
|
}
|
|
1072
1010
|
if (config.directories.temp) {
|
|
1073
|
-
process.env[`${prefix}TEMP_DIR`] = correctPaths(config.directories.temp);
|
|
1011
|
+
process.env[`${prefix}TEMP_DIR`] = _chunk3HI6WK3Mjs.correctPaths.call(void 0, config.directories.temp);
|
|
1074
1012
|
}
|
|
1075
1013
|
if (config.directories.log) {
|
|
1076
|
-
process.env[`${prefix}LOG_DIR`] = correctPaths(config.directories.log);
|
|
1014
|
+
process.env[`${prefix}LOG_DIR`] = _chunk3HI6WK3Mjs.correctPaths.call(void 0, config.directories.log);
|
|
1077
1015
|
}
|
|
1078
1016
|
if (config.directories.build) {
|
|
1079
|
-
process.env[`${prefix}BUILD_DIR`] = correctPaths(config.directories.build);
|
|
1017
|
+
process.env[`${prefix}BUILD_DIR`] = _chunk3HI6WK3Mjs.correctPaths.call(void 0, config.directories.build);
|
|
1080
1018
|
}
|
|
1081
1019
|
}
|
|
1082
1020
|
if (config.skipCache !== void 0) {
|
|
@@ -1133,15 +1071,18 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
|
|
|
1133
1071
|
process.env.NX_VERBOSE_LOGGING = String(getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false);
|
|
1134
1072
|
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
1135
1073
|
}
|
|
1074
|
+
if (config.skipConfigLogging !== void 0) {
|
|
1075
|
+
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
|
|
1076
|
+
}
|
|
1136
1077
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
1137
1078
|
for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
|
|
1138
1079
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
1139
1080
|
}
|
|
1140
1081
|
}, "setConfigEnv");
|
|
1141
|
-
var setThemeColorConfigEnv = /* @__PURE__ */
|
|
1082
|
+
var setThemeColorConfigEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (prefix, config) => {
|
|
1142
1083
|
return _optionalChain([config, 'optionalAccess', _53 => _53.light, 'optionalAccess', _54 => _54.brand]) || _optionalChain([config, 'optionalAccess', _55 => _55.dark, 'optionalAccess', _56 => _56.brand]) ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
|
|
1143
1084
|
}, "setThemeColorConfigEnv");
|
|
1144
|
-
var setSingleThemeColorConfigEnv = /* @__PURE__ */
|
|
1085
|
+
var setSingleThemeColorConfigEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (prefix, config) => {
|
|
1145
1086
|
if (config.dark) {
|
|
1146
1087
|
process.env[`${prefix}DARK`] = config.dark;
|
|
1147
1088
|
}
|
|
@@ -1185,13 +1126,13 @@ var setSingleThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(
|
|
|
1185
1126
|
process.env[`${prefix}NEGATIVE`] = config.negative;
|
|
1186
1127
|
}
|
|
1187
1128
|
}, "setSingleThemeColorConfigEnv");
|
|
1188
|
-
var setMultiThemeColorConfigEnv = /* @__PURE__ */
|
|
1129
|
+
var setMultiThemeColorConfigEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (prefix, config) => {
|
|
1189
1130
|
return {
|
|
1190
1131
|
light: setBaseThemeColorConfigEnv(`${prefix}LIGHT_`, config.light),
|
|
1191
1132
|
dark: setBaseThemeColorConfigEnv(`${prefix}DARK_`, config.dark)
|
|
1192
1133
|
};
|
|
1193
1134
|
}, "setMultiThemeColorConfigEnv");
|
|
1194
|
-
var setBaseThemeColorConfigEnv = /* @__PURE__ */
|
|
1135
|
+
var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (prefix, config) => {
|
|
1195
1136
|
if (config.foreground) {
|
|
1196
1137
|
process.env[`${prefix}FOREGROUND`] = config.foreground;
|
|
1197
1138
|
}
|
|
@@ -1239,7 +1180,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(vo
|
|
|
1239
1180
|
// ../config-tools/src/create-storm-config.ts
|
|
1240
1181
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
1241
1182
|
var _static_cache = void 0;
|
|
1242
|
-
var createStormConfig = /* @__PURE__ */
|
|
1183
|
+
var createStormConfig = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async (extensionName, schema, workspaceRoot3, skipLogs = false) => {
|
|
1243
1184
|
let result;
|
|
1244
1185
|
if (!_optionalChain([_static_cache, 'optionalAccess', _57 => _57.data]) || !_optionalChain([_static_cache, 'optionalAccess', _58 => _58.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1245
1186
|
let _workspaceRoot = workspaceRoot3;
|
|
@@ -1250,7 +1191,7 @@ var createStormConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, asy
|
|
|
1250
1191
|
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
1251
1192
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
1252
1193
|
if (!configFile && !skipLogs) {
|
|
1253
|
-
writeWarning("No Storm
|
|
1194
|
+
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", {
|
|
1254
1195
|
logLevel: "all"
|
|
1255
1196
|
});
|
|
1256
1197
|
}
|
|
@@ -1271,7 +1212,7 @@ var createStormConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, asy
|
|
|
1271
1212
|
};
|
|
1272
1213
|
return result;
|
|
1273
1214
|
}, "createStormConfig");
|
|
1274
|
-
var createConfigExtension = /* @__PURE__ */
|
|
1215
|
+
var createConfigExtension = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (extensionName, schema) => {
|
|
1275
1216
|
const extension_cache_key = {
|
|
1276
1217
|
extensionName
|
|
1277
1218
|
};
|
|
@@ -1285,24 +1226,25 @@ var createConfigExtension = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
|
|
|
1285
1226
|
_extension_cache.set(extension_cache_key, extension);
|
|
1286
1227
|
return extension;
|
|
1287
1228
|
}, "createConfigExtension");
|
|
1288
|
-
var loadStormConfig = /* @__PURE__ */
|
|
1229
|
+
var loadStormConfig = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async (workspaceRoot3, skipLogs = false) => {
|
|
1289
1230
|
const config = await createStormConfig(void 0, void 0, workspaceRoot3, skipLogs);
|
|
1290
1231
|
setConfigEnv(config);
|
|
1291
|
-
if (!skipLogs) {
|
|
1292
|
-
writeTrace(`\u2699\uFE0F Using Storm configuration:
|
|
1232
|
+
if (!skipLogs && !config.skipConfigLogging) {
|
|
1233
|
+
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1293
1234
|
${formatLogMessage(config)}`, config);
|
|
1294
1235
|
}
|
|
1295
1236
|
return config;
|
|
1296
1237
|
}, "loadStormConfig");
|
|
1297
1238
|
|
|
1298
1239
|
// ../config-tools/src/get-config.ts
|
|
1299
|
-
|
|
1240
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1241
|
+
var getConfig = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (workspaceRoot3, skipLogs = false) => {
|
|
1300
1242
|
return loadStormConfig(workspaceRoot3, skipLogs);
|
|
1301
1243
|
}, "getConfig");
|
|
1302
1244
|
|
|
1303
1245
|
// ../workspace-tools/src/base/base-executor.ts
|
|
1304
1246
|
|
|
1305
|
-
var withRunExecutor = /* @__PURE__ */
|
|
1247
|
+
var withRunExecutor = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context2) => {
|
|
1306
1248
|
const stopwatch = getStopwatch(name);
|
|
1307
1249
|
let options = _options;
|
|
1308
1250
|
let config = {};
|
|
@@ -1387,7 +1329,7 @@ ${formatLogMessage(result)}`, config);
|
|
|
1387
1329
|
stopwatch();
|
|
1388
1330
|
}
|
|
1389
1331
|
}, "withRunExecutor");
|
|
1390
|
-
var _isFunction2 = /* @__PURE__ */
|
|
1332
|
+
var _isFunction2 = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (value) => {
|
|
1391
1333
|
try {
|
|
1392
1334
|
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _77 => _77.constructor]) && _optionalChain([value, 'optionalAccess', _78 => _78.call]) && _optionalChain([value, 'optionalAccess', _79 => _79.apply]));
|
|
1393
1335
|
} catch (e) {
|
|
@@ -1396,6 +1338,7 @@ var _isFunction2 = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (value)
|
|
|
1396
1338
|
}, "_isFunction");
|
|
1397
1339
|
|
|
1398
1340
|
// ../workspace-tools/src/utils/cargo.ts
|
|
1341
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1399
1342
|
|
|
1400
1343
|
|
|
1401
1344
|
|
|
@@ -1407,7 +1350,7 @@ var INVALID_CARGO_ARGS = [
|
|
|
1407
1350
|
"package",
|
|
1408
1351
|
"tsConfig"
|
|
1409
1352
|
];
|
|
1410
|
-
var buildCargoCommand = /* @__PURE__ */
|
|
1353
|
+
var buildCargoCommand = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (baseCommand, options, context2) => {
|
|
1411
1354
|
const args = [];
|
|
1412
1355
|
if (options.toolchain && options.toolchain !== "stable") {
|
|
1413
1356
|
args.push(`+${options.toolchain}`);
|
|
@@ -1451,7 +1394,7 @@ async function cargoCommand(...args) {
|
|
|
1451
1394
|
args.push("--color", "always");
|
|
1452
1395
|
return await Promise.resolve(runProcess("cargo", ...args));
|
|
1453
1396
|
}
|
|
1454
|
-
|
|
1397
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, cargoCommand, "cargoCommand");
|
|
1455
1398
|
function cargoCommandSync(args = "", options) {
|
|
1456
1399
|
const normalizedOptions = {
|
|
1457
1400
|
stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _80 => _80.stdio]), () => ( "inherit")),
|
|
@@ -1478,7 +1421,7 @@ function cargoCommandSync(args = "", options) {
|
|
|
1478
1421
|
};
|
|
1479
1422
|
}
|
|
1480
1423
|
}
|
|
1481
|
-
|
|
1424
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, cargoCommandSync, "cargoCommandSync");
|
|
1482
1425
|
function cargoMetadata() {
|
|
1483
1426
|
const output3 = cargoCommandSync("metadata --format-version=1", {
|
|
1484
1427
|
stdio: "pipe"
|
|
@@ -1489,7 +1432,7 @@ function cargoMetadata() {
|
|
|
1489
1432
|
}
|
|
1490
1433
|
return JSON.parse(output3.output);
|
|
1491
1434
|
}
|
|
1492
|
-
|
|
1435
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, cargoMetadata, "cargoMetadata");
|
|
1493
1436
|
function runProcess(processCmd, ...args) {
|
|
1494
1437
|
const metadata = cargoMetadata();
|
|
1495
1438
|
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _82 => _82.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, _devkit.workspaceRoot, "dist", "cargo")));
|
|
@@ -1519,18 +1462,18 @@ function runProcess(processCmd, ...args) {
|
|
|
1519
1462
|
});
|
|
1520
1463
|
});
|
|
1521
1464
|
}
|
|
1522
|
-
|
|
1465
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, runProcess, "runProcess");
|
|
1523
1466
|
|
|
1524
1467
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
1525
1468
|
async function cargoBuildExecutor(options, context2) {
|
|
1526
1469
|
const command = buildCargoCommand("build", options, context2);
|
|
1527
1470
|
return await cargoCommand(...command);
|
|
1528
1471
|
}
|
|
1529
|
-
|
|
1472
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, cargoBuildExecutor, "cargoBuildExecutor");
|
|
1530
1473
|
var executor_default = withRunExecutor("Cargo Build", cargoBuildExecutor, {
|
|
1531
1474
|
skipReadingConfig: false,
|
|
1532
1475
|
hooks: {
|
|
1533
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
1476
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (options) => {
|
|
1534
1477
|
options.outputPath ??= "dist/target/{projectRoot}";
|
|
1535
1478
|
options.toolchain ??= "stable";
|
|
1536
1479
|
return options;
|
|
@@ -1539,15 +1482,16 @@ var executor_default = withRunExecutor("Cargo Build", cargoBuildExecutor, {
|
|
|
1539
1482
|
});
|
|
1540
1483
|
|
|
1541
1484
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
1485
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1542
1486
|
async function cargoCheckExecutor(options, context2) {
|
|
1543
1487
|
const command = buildCargoCommand("check", options, context2);
|
|
1544
1488
|
return await cargoCommand(...command);
|
|
1545
1489
|
}
|
|
1546
|
-
|
|
1490
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, cargoCheckExecutor, "cargoCheckExecutor");
|
|
1547
1491
|
var executor_default2 = withRunExecutor("Cargo Check", cargoCheckExecutor, {
|
|
1548
1492
|
skipReadingConfig: false,
|
|
1549
1493
|
hooks: {
|
|
1550
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
1494
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (options) => {
|
|
1551
1495
|
options.toolchain ??= "stable";
|
|
1552
1496
|
return options;
|
|
1553
1497
|
}, "applyDefaultOptions")
|
|
@@ -1555,15 +1499,16 @@ var executor_default2 = withRunExecutor("Cargo Check", cargoCheckExecutor, {
|
|
|
1555
1499
|
});
|
|
1556
1500
|
|
|
1557
1501
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
1502
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1558
1503
|
async function cargoClippyExecutor(options, context2) {
|
|
1559
1504
|
const command = buildCargoCommand("clippy", options, context2);
|
|
1560
1505
|
return await cargoCommand(...command);
|
|
1561
1506
|
}
|
|
1562
|
-
|
|
1507
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, cargoClippyExecutor, "cargoClippyExecutor");
|
|
1563
1508
|
var executor_default3 = withRunExecutor("Cargo Clippy", cargoClippyExecutor, {
|
|
1564
1509
|
skipReadingConfig: false,
|
|
1565
1510
|
hooks: {
|
|
1566
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
1511
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (options) => {
|
|
1567
1512
|
options.toolchain ??= "stable";
|
|
1568
1513
|
options.fix ??= false;
|
|
1569
1514
|
return options;
|
|
@@ -1572,6 +1517,7 @@ var executor_default3 = withRunExecutor("Cargo Clippy", cargoClippyExecutor, {
|
|
|
1572
1517
|
});
|
|
1573
1518
|
|
|
1574
1519
|
// ../workspace-tools/src/executors/cargo-doc/executor.ts
|
|
1520
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1575
1521
|
async function cargoDocExecutor(options, context2) {
|
|
1576
1522
|
const opts = {
|
|
1577
1523
|
...options
|
|
@@ -1581,11 +1527,11 @@ async function cargoDocExecutor(options, context2) {
|
|
|
1581
1527
|
const command = buildCargoCommand("doc", options, context2);
|
|
1582
1528
|
return await cargoCommand(...command);
|
|
1583
1529
|
}
|
|
1584
|
-
|
|
1530
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, cargoDocExecutor, "cargoDocExecutor");
|
|
1585
1531
|
var executor_default4 = withRunExecutor("Cargo Doc", cargoDocExecutor, {
|
|
1586
1532
|
skipReadingConfig: false,
|
|
1587
1533
|
hooks: {
|
|
1588
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
1534
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (options) => {
|
|
1589
1535
|
options.outputPath ??= "dist/docs/{projectRoot}";
|
|
1590
1536
|
options.toolchain ??= "stable";
|
|
1591
1537
|
options.release ??= options.profile ? false : true;
|
|
@@ -1600,15 +1546,16 @@ var executor_default4 = withRunExecutor("Cargo Doc", cargoDocExecutor, {
|
|
|
1600
1546
|
});
|
|
1601
1547
|
|
|
1602
1548
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
1549
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1603
1550
|
async function cargoFormatExecutor(options, context2) {
|
|
1604
1551
|
const command = buildCargoCommand("fmt", options, context2);
|
|
1605
1552
|
return await cargoCommand(...command);
|
|
1606
1553
|
}
|
|
1607
|
-
|
|
1554
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, cargoFormatExecutor, "cargoFormatExecutor");
|
|
1608
1555
|
var executor_default5 = withRunExecutor("Cargo Format", cargoFormatExecutor, {
|
|
1609
1556
|
skipReadingConfig: false,
|
|
1610
1557
|
hooks: {
|
|
1611
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
1558
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (options) => {
|
|
1612
1559
|
options.outputPath ??= "dist/target/{projectRoot}";
|
|
1613
1560
|
options.toolchain ??= "stable";
|
|
1614
1561
|
return options;
|
|
@@ -1617,22 +1564,32 @@ var executor_default5 = withRunExecutor("Cargo Format", cargoFormatExecutor, {
|
|
|
1617
1564
|
});
|
|
1618
1565
|
|
|
1619
1566
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
1567
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1620
1568
|
|
|
1621
1569
|
|
|
1622
1570
|
|
|
1623
1571
|
var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
1624
1572
|
|
|
1625
1573
|
// ../workspace-tools/src/utils/toml.ts
|
|
1574
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1626
1575
|
var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
|
|
1627
1576
|
|
|
1628
1577
|
|
|
1629
1578
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
1630
1579
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
1631
1580
|
|
|
1581
|
+
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1582
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1583
|
+
|
|
1632
1584
|
// ../esbuild/src/build.ts
|
|
1585
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1586
|
+
|
|
1633
1587
|
|
|
1588
|
+
// ../build-tools/src/index.ts
|
|
1589
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1634
1590
|
|
|
1635
1591
|
// ../build-tools/src/config.ts
|
|
1592
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1636
1593
|
var DEFAULT_COMPILED_BANNER = `
|
|
1637
1594
|
/**
|
|
1638
1595
|
* \u26A1 Built by Storm Software
|
|
@@ -1643,24 +1600,40 @@ var DEFAULT_ENVIRONMENT = "production";
|
|
|
1643
1600
|
var DEFAULT_TARGET = "esnext";
|
|
1644
1601
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
1645
1602
|
|
|
1603
|
+
// ../build-tools/src/plugins/index.ts
|
|
1604
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1605
|
+
|
|
1606
|
+
// ../build-tools/src/plugins/analyze.ts
|
|
1607
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1608
|
+
|
|
1646
1609
|
// ../build-tools/src/plugins/swc.ts
|
|
1610
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1647
1611
|
var _core = require('@swc/core');
|
|
1648
1612
|
|
|
1649
1613
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
1614
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1650
1615
|
|
|
1651
1616
|
var _module = require('module');
|
|
1652
1617
|
|
|
1653
1618
|
var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
|
|
1654
1619
|
|
|
1655
1620
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
1621
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1622
|
+
|
|
1656
1623
|
|
|
1657
1624
|
|
|
1625
|
+
// ../build-tools/src/types.ts
|
|
1626
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1627
|
+
|
|
1628
|
+
// ../build-tools/src/utilities/index.ts
|
|
1629
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1658
1630
|
|
|
1659
1631
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
1632
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1660
1633
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
1661
1634
|
var _glob = require('glob');
|
|
1662
1635
|
|
|
1663
|
-
var copyAssets = /* @__PURE__ */
|
|
1636
|
+
var copyAssets = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
|
|
1664
1637
|
const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
|
|
1665
1638
|
pendingAssets.push({
|
|
1666
1639
|
input: projectRoot,
|
|
@@ -1687,7 +1660,7 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
|
|
|
1687
1660
|
});
|
|
1688
1661
|
}
|
|
1689
1662
|
writeTrace(`\u{1F4DD} Copying the following assets to the output directory:
|
|
1690
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${joinPaths(outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
1663
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunk3HI6WK3Mjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
1691
1664
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
1692
1665
|
projectDir: projectRoot,
|
|
1693
1666
|
rootDir: config.workspaceRoot,
|
|
@@ -1696,12 +1669,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
1696
1669
|
});
|
|
1697
1670
|
await assetHandler.processAllAssetsOnce();
|
|
1698
1671
|
if (includeSrc === true) {
|
|
1699
|
-
writeDebug(`\u{1F4DD} Adding banner and writing source files: ${joinPaths(outputPath, "src")}`, config);
|
|
1672
|
+
writeDebug(`\u{1F4DD} Adding banner and writing source files: ${_chunk3HI6WK3Mjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
1700
1673
|
const files = await _glob.glob.call(void 0, [
|
|
1701
|
-
joinPaths(config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
1702
|
-
joinPaths(config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
1703
|
-
joinPaths(config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
1704
|
-
joinPaths(config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
1674
|
+
_chunk3HI6WK3Mjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
1675
|
+
_chunk3HI6WK3Mjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
1676
|
+
_chunk3HI6WK3Mjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
1677
|
+
_chunk3HI6WK3Mjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
1705
1678
|
]);
|
|
1706
1679
|
await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
|
|
1707
1680
|
|
|
@@ -1712,18 +1685,20 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
1712
1685
|
}, "copyAssets");
|
|
1713
1686
|
|
|
1714
1687
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
1688
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1715
1689
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
1716
1690
|
|
|
1717
1691
|
|
|
1718
1692
|
|
|
1719
1693
|
var _projectgraph = require('nx/src/project-graph/project-graph');
|
|
1720
|
-
var addPackageDependencies = /* @__PURE__ */
|
|
1721
|
-
const
|
|
1694
|
+
var addPackageDependencies = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async (workspaceRoot3, projectRoot, projectName, packageJson) => {
|
|
1695
|
+
const projectGraph = _projectgraph.readCachedProjectGraph.call(void 0, );
|
|
1696
|
+
const projectDependencies = _buildablelibsutils.calculateProjectBuildableDependencies.call(void 0, void 0, projectGraph, workspaceRoot3, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
1722
1697
|
const localPackages = [];
|
|
1723
1698
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot3)) {
|
|
1724
1699
|
const projectNode = project.node;
|
|
1725
1700
|
if (projectNode.data.root) {
|
|
1726
|
-
const projectPackageJsonPath = joinPaths(workspaceRoot3, projectNode.data.root, "package.json");
|
|
1701
|
+
const projectPackageJsonPath = _chunk3HI6WK3Mjs.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
|
|
1727
1702
|
if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
|
|
1728
1703
|
const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
|
|
1729
1704
|
const projectPackageJson = JSON.parse(projectPackageJsonContent);
|
|
@@ -1735,34 +1710,46 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
1735
1710
|
}
|
|
1736
1711
|
if (localPackages.length > 0) {
|
|
1737
1712
|
writeTrace(`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1713
|
+
const projectJsonFile = await _promises.readFile.call(void 0, _chunk3HI6WK3Mjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
|
|
1714
|
+
const projectJson = JSON.parse(projectJsonFile);
|
|
1715
|
+
const projectName2 = projectJson.name;
|
|
1716
|
+
const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
1717
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _83 => _83.projects, 'optionalAccess', _84 => _84[projectName2]])) {
|
|
1718
|
+
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.");
|
|
1719
|
+
}
|
|
1720
|
+
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _85 => _85.projects, 'optionalAccess', _86 => _86[projectName2], 'access', _87 => _87.implicitDependencies, 'optionalAccess', _88 => _88.reduce, 'call', _89 => _89((ret, dep) => {
|
|
1721
|
+
if (_optionalChain([projectConfigurations, 'access', _90 => _90.projects, 'optionalAccess', _91 => _91[dep]])) {
|
|
1722
|
+
const depPackageJsonPath = _chunk3HI6WK3Mjs.joinPaths.call(void 0, workspaceRoot3, projectConfigurations.projects[dep].root, "package.json");
|
|
1723
|
+
if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
|
|
1724
|
+
const depPackageJsonContent = _fs.readFileSync.call(void 0, depPackageJsonPath, "utf8");
|
|
1725
|
+
const depPackageJson = JSON.parse(depPackageJsonContent);
|
|
1726
|
+
if (depPackageJson.private !== true && !ret.includes(depPackageJson.name)) {
|
|
1727
|
+
ret.push(depPackageJson.name);
|
|
1728
|
+
}
|
|
1729
|
+
}
|
|
1741
1730
|
}
|
|
1742
1731
|
return ret;
|
|
1743
|
-
},
|
|
1744
|
-
packageJson.
|
|
1745
|
-
if (!ret[localPackage.name]) {
|
|
1746
|
-
ret[localPackage.name] = {
|
|
1747
|
-
optional: false
|
|
1748
|
-
};
|
|
1732
|
+
}, [])]);
|
|
1733
|
+
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
1734
|
+
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _92 => _92.includes, 'call', _93 => _93(localPackage.name)])) {
|
|
1735
|
+
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
1749
1736
|
}
|
|
1750
1737
|
return ret;
|
|
1751
|
-
}, _nullishCoalesce(packageJson.
|
|
1738
|
+
}, _nullishCoalesce(packageJson.dependencies, () => ( {})));
|
|
1752
1739
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
1753
|
-
if (!ret[localPackage.name]) {
|
|
1740
|
+
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _94 => _94.includes, 'call', _95 => _95(localPackage.name)])) {
|
|
1754
1741
|
ret[localPackage.name] = localPackage.version || "0.0.1";
|
|
1755
1742
|
}
|
|
1756
1743
|
return ret;
|
|
1757
|
-
}, _nullishCoalesce(packageJson.
|
|
1744
|
+
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
1758
1745
|
} else {
|
|
1759
1746
|
writeTrace("\u{1F4E6} No local packages dependencies to add to package.json");
|
|
1760
1747
|
}
|
|
1761
1748
|
return packageJson;
|
|
1762
1749
|
}, "addPackageDependencies");
|
|
1763
|
-
var addWorkspacePackageJsonFields = /* @__PURE__ */
|
|
1750
|
+
var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
1764
1751
|
const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : findWorkspaceRoot();
|
|
1765
|
-
const workspacePackageJsonContent = await _promises.readFile.call(void 0, joinPaths(workspaceRoot3, "package.json"), "utf8");
|
|
1752
|
+
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunk3HI6WK3Mjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
|
|
1766
1753
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
1767
1754
|
packageJson.type ??= "module";
|
|
1768
1755
|
packageJson.sideEffects ??= false;
|
|
@@ -1771,7 +1758,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call
|
|
|
1771
1758
|
if (distSrc.startsWith("/")) {
|
|
1772
1759
|
distSrc = distSrc.substring(1);
|
|
1773
1760
|
}
|
|
1774
|
-
packageJson.source ??= `${joinPaths(distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
1761
|
+
packageJson.source ??= `${_chunk3HI6WK3Mjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
1775
1762
|
}
|
|
1776
1763
|
packageJson.files ??= [
|
|
1777
1764
|
"dist/**/*"
|
|
@@ -1802,10 +1789,10 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call
|
|
|
1802
1789
|
];
|
|
1803
1790
|
}
|
|
1804
1791
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
1805
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot : joinPaths("packages", projectName);
|
|
1792
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunk3HI6WK3Mjs.joinPaths.call(void 0, "packages", projectName);
|
|
1806
1793
|
return packageJson;
|
|
1807
1794
|
}, "addWorkspacePackageJsonFields");
|
|
1808
|
-
var addPackageJsonExport = /* @__PURE__ */
|
|
1795
|
+
var addPackageJsonExport = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (file, type = "module", sourceRoot) => {
|
|
1809
1796
|
let entry = file.replaceAll("\\", "/");
|
|
1810
1797
|
if (sourceRoot) {
|
|
1811
1798
|
entry = entry.replace(sourceRoot, "");
|
|
@@ -1827,8 +1814,9 @@ var addPackageJsonExport = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
|
|
|
1827
1814
|
}, "addPackageJsonExport");
|
|
1828
1815
|
|
|
1829
1816
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
1817
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1830
1818
|
|
|
1831
|
-
var getEntryPoints = /* @__PURE__ */
|
|
1819
|
+
var getEntryPoints = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
1832
1820
|
const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : findWorkspaceRoot();
|
|
1833
1821
|
const entryPoints = [];
|
|
1834
1822
|
if (entry) {
|
|
@@ -1841,7 +1829,7 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1841
1829
|
}
|
|
1842
1830
|
}
|
|
1843
1831
|
if (emitOnAll) {
|
|
1844
|
-
entryPoints.push(joinPaths(workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
1832
|
+
entryPoints.push(_chunk3HI6WK3Mjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
1845
1833
|
}
|
|
1846
1834
|
const results = [];
|
|
1847
1835
|
for (const entryPoint in entryPoints) {
|
|
@@ -1850,9 +1838,9 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1850
1838
|
withFileTypes: true
|
|
1851
1839
|
});
|
|
1852
1840
|
results.push(...files.reduce((ret, filePath) => {
|
|
1853
|
-
const result = correctPaths(joinPaths(filePath.path, filePath.name).replaceAll(correctPaths(workspaceRoot3), "").replaceAll(correctPaths(projectRoot), ""));
|
|
1841
|
+
const result = _chunk3HI6WK3Mjs.correctPaths.call(void 0, _chunk3HI6WK3Mjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunk3HI6WK3Mjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunk3HI6WK3Mjs.correctPaths.call(void 0, projectRoot), ""));
|
|
1854
1842
|
if (result) {
|
|
1855
|
-
writeDebug(`Trying to add entry point ${result} at "${joinPaths(filePath.path, filePath.name)}"`, config);
|
|
1843
|
+
writeDebug(`Trying to add entry point ${result} at "${_chunk3HI6WK3Mjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
1856
1844
|
if (!results.includes(result)) {
|
|
1857
1845
|
results.push(result);
|
|
1858
1846
|
}
|
|
@@ -1867,7 +1855,8 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1867
1855
|
}, "getEntryPoints");
|
|
1868
1856
|
|
|
1869
1857
|
// ../build-tools/src/utilities/get-env.ts
|
|
1870
|
-
|
|
1858
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1859
|
+
var getEnv = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (builder, options) => {
|
|
1871
1860
|
return {
|
|
1872
1861
|
STORM_BUILD: builder,
|
|
1873
1862
|
STORM_ORG: options.orgName || DEFAULT_ORGANIZATION,
|
|
@@ -1880,7 +1869,11 @@ var getEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (builder, opti
|
|
|
1880
1869
|
};
|
|
1881
1870
|
}, "getEnv");
|
|
1882
1871
|
|
|
1872
|
+
// ../build-tools/src/utilities/get-file-banner.ts
|
|
1873
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1874
|
+
|
|
1883
1875
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
1876
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1884
1877
|
function getOutExtension(format2, pkgType) {
|
|
1885
1878
|
let jsExtension = ".js";
|
|
1886
1879
|
let dtsExtension = ".d.ts";
|
|
@@ -1900,13 +1893,18 @@ function getOutExtension(format2, pkgType) {
|
|
|
1900
1893
|
dts: dtsExtension
|
|
1901
1894
|
};
|
|
1902
1895
|
}
|
|
1903
|
-
|
|
1896
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, getOutExtension, "getOutExtension");
|
|
1897
|
+
|
|
1898
|
+
// ../build-tools/src/utilities/get-project-deps.ts
|
|
1899
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1904
1900
|
|
|
1905
1901
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
1902
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1906
1903
|
|
|
1907
1904
|
|
|
1908
1905
|
|
|
1909
1906
|
// ../build-tools/src/utilities/task-graph.ts
|
|
1907
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1910
1908
|
var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
1911
1909
|
|
|
1912
1910
|
// ../esbuild/src/build.ts
|
|
@@ -1921,13 +1919,15 @@ var _globby = require('globby');
|
|
|
1921
1919
|
var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
1922
1920
|
|
|
1923
1921
|
// ../esbuild/src/base/renderer-engine.ts
|
|
1922
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1924
1923
|
|
|
1925
1924
|
var _sourcemap = require('source-map');
|
|
1926
1925
|
|
|
1927
1926
|
// ../esbuild/src/utilities/output-file.ts
|
|
1927
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
1928
1928
|
|
|
1929
1929
|
|
|
1930
|
-
var outputFile = /* @__PURE__ */
|
|
1930
|
+
var outputFile = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async (filepath, data, options) => {
|
|
1931
1931
|
await _fs2.default.promises.mkdir(path6.default.dirname(filepath), {
|
|
1932
1932
|
recursive: true
|
|
1933
1933
|
});
|
|
@@ -1935,12 +1935,12 @@ var outputFile = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (fil
|
|
|
1935
1935
|
}, "outputFile");
|
|
1936
1936
|
|
|
1937
1937
|
// ../esbuild/src/base/renderer-engine.ts
|
|
1938
|
-
var parseSourceMap = /* @__PURE__ */
|
|
1938
|
+
var parseSourceMap = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (map2) => {
|
|
1939
1939
|
return typeof map2 === "string" ? JSON.parse(map2) : map2;
|
|
1940
1940
|
}, "parseSourceMap");
|
|
1941
|
-
var isJS = /* @__PURE__ */
|
|
1942
|
-
var isCSS = /* @__PURE__ */
|
|
1943
|
-
var getSourcemapComment = /* @__PURE__ */
|
|
1941
|
+
var isJS = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (path7) => /\.(js|mjs|cjs)$/.test(path7), "isJS");
|
|
1942
|
+
var isCSS = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (path7) => /\.css$/.test(path7), "isCSS");
|
|
1943
|
+
var getSourcemapComment = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (inline, map2, filepath, isCssFile) => {
|
|
1944
1944
|
if (!map2) return "";
|
|
1945
1945
|
const prefix = isCssFile ? "/*" : "//";
|
|
1946
1946
|
const suffix = isCssFile ? " */" : "";
|
|
@@ -1949,7 +1949,7 @@ var getSourcemapComment = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (
|
|
|
1949
1949
|
}, "getSourcemapComment");
|
|
1950
1950
|
var RendererEngine = class {
|
|
1951
1951
|
static {
|
|
1952
|
-
|
|
1952
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, this, "RendererEngine");
|
|
1953
1953
|
}
|
|
1954
1954
|
#renderers;
|
|
1955
1955
|
#options;
|
|
@@ -1986,15 +1986,15 @@ var RendererEngine = class {
|
|
|
1986
1986
|
if (!relativePath.startsWith("\\\\?\\")) {
|
|
1987
1987
|
relativePath = relativePath.replace(/\\/g, "/");
|
|
1988
1988
|
}
|
|
1989
|
-
const meta = _optionalChain([metafile, 'optionalAccess',
|
|
1989
|
+
const meta = _optionalChain([metafile, 'optionalAccess', _96 => _96.outputs, 'access', _97 => _97[relativePath]]);
|
|
1990
1990
|
return {
|
|
1991
1991
|
type: "chunk",
|
|
1992
1992
|
path: file.path,
|
|
1993
1993
|
code: file.text,
|
|
1994
|
-
map: _optionalChain([outputFiles, 'access',
|
|
1995
|
-
entryPoint: _optionalChain([meta, 'optionalAccess',
|
|
1996
|
-
exports: _optionalChain([meta, 'optionalAccess',
|
|
1997
|
-
imports: _optionalChain([meta, 'optionalAccess',
|
|
1994
|
+
map: _optionalChain([outputFiles, 'access', _98 => _98.find, 'call', _99 => _99((f) => f.path === `${file.path}.map`), 'optionalAccess', _100 => _100.text]),
|
|
1995
|
+
entryPoint: _optionalChain([meta, 'optionalAccess', _101 => _101.entryPoint]),
|
|
1996
|
+
exports: _optionalChain([meta, 'optionalAccess', _102 => _102.exports]),
|
|
1997
|
+
imports: _optionalChain([meta, 'optionalAccess', _103 => _103.imports])
|
|
1998
1998
|
};
|
|
1999
1999
|
} else {
|
|
2000
2000
|
return {
|
|
@@ -2062,6 +2062,7 @@ var RendererEngine = class {
|
|
|
2062
2062
|
};
|
|
2063
2063
|
|
|
2064
2064
|
// ../esbuild/src/clean.ts
|
|
2065
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
2065
2066
|
|
|
2066
2067
|
async function cleanDirectories(name = "ESBuild", directory, config) {
|
|
2067
2068
|
await _promises.rm.call(void 0, directory, {
|
|
@@ -2069,15 +2070,19 @@ async function cleanDirectories(name = "ESBuild", directory, config) {
|
|
|
2069
2070
|
force: true
|
|
2070
2071
|
});
|
|
2071
2072
|
}
|
|
2072
|
-
|
|
2073
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, cleanDirectories, "cleanDirectories");
|
|
2074
|
+
|
|
2075
|
+
// ../esbuild/src/config.ts
|
|
2076
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
2073
2077
|
|
|
2074
2078
|
// ../esbuild/src/plugins/esm-split-code-to-cjs.ts
|
|
2079
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
2075
2080
|
|
|
2076
|
-
var esmSplitCodeToCjsPlugin = /* @__PURE__ */
|
|
2081
|
+
var esmSplitCodeToCjsPlugin = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
2077
2082
|
name: "storm:esm-split-code-to-cjs",
|
|
2078
2083
|
setup(build5) {
|
|
2079
2084
|
build5.onEnd(async (result) => {
|
|
2080
|
-
const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access',
|
|
2085
|
+
const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access', _104 => _104.metafile, 'optionalAccess', _105 => _105.outputs]), () => ( {})));
|
|
2081
2086
|
const jsFiles = outFiles.filter((f) => f.endsWith("js"));
|
|
2082
2087
|
await esbuild.build({
|
|
2083
2088
|
outdir: resolvedOptions.outdir,
|
|
@@ -2092,29 +2097,31 @@ var esmSplitCodeToCjsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void
|
|
|
2092
2097
|
}), "esmSplitCodeToCjsPlugin");
|
|
2093
2098
|
|
|
2094
2099
|
// ../esbuild/src/plugins/fix-imports.ts
|
|
2095
|
-
|
|
2100
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
2101
|
+
var fixImportsPlugin = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
2096
2102
|
name: "storm:fix-imports",
|
|
2097
2103
|
setup(build5) {
|
|
2098
2104
|
build5.onResolve({
|
|
2099
2105
|
filter: /^spdx-exceptions/
|
|
2100
2106
|
}, () => {
|
|
2101
2107
|
return {
|
|
2102
|
-
path:
|
|
2108
|
+
path: _chunkZH7QZ5EFjs.__require.resolve("spdx-exceptions")
|
|
2103
2109
|
};
|
|
2104
2110
|
});
|
|
2105
2111
|
build5.onResolve({
|
|
2106
2112
|
filter: /^spdx-license-ids/
|
|
2107
2113
|
}, () => {
|
|
2108
2114
|
return {
|
|
2109
|
-
path:
|
|
2115
|
+
path: _chunkZH7QZ5EFjs.__require.resolve("spdx-license-ids")
|
|
2110
2116
|
};
|
|
2111
2117
|
});
|
|
2112
2118
|
}
|
|
2113
2119
|
}), "fixImportsPlugin");
|
|
2114
2120
|
|
|
2115
2121
|
// ../esbuild/src/plugins/native-node-module.ts
|
|
2122
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
2116
2123
|
|
|
2117
|
-
var nativeNodeModulesPlugin = /* @__PURE__ */
|
|
2124
|
+
var nativeNodeModulesPlugin = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (options, resolvedOptions) => {
|
|
2118
2125
|
return {
|
|
2119
2126
|
name: "native-node-modules",
|
|
2120
2127
|
setup(build5) {
|
|
@@ -2122,7 +2129,7 @@ var nativeNodeModulesPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void
|
|
|
2122
2129
|
filter: /\.node$/,
|
|
2123
2130
|
namespace: "file"
|
|
2124
2131
|
}, (args) => {
|
|
2125
|
-
const resolvedId =
|
|
2132
|
+
const resolvedId = _chunkZH7QZ5EFjs.__require.resolve(args.path, {
|
|
2126
2133
|
paths: [
|
|
2127
2134
|
args.resolveDir
|
|
2128
2135
|
]
|
|
@@ -2165,7 +2172,8 @@ var nativeNodeModulesPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void
|
|
|
2165
2172
|
}, "nativeNodeModulesPlugin");
|
|
2166
2173
|
|
|
2167
2174
|
// ../esbuild/src/plugins/node-protocol.ts
|
|
2168
|
-
|
|
2175
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
2176
|
+
var nodeProtocolPlugin = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (options, resolvedOptions) => {
|
|
2169
2177
|
const nodeProtocol = "node:";
|
|
2170
2178
|
return {
|
|
2171
2179
|
name: "node-protocol-plugin",
|
|
@@ -2181,7 +2189,8 @@ var nodeProtocolPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (o
|
|
|
2181
2189
|
}, "nodeProtocolPlugin");
|
|
2182
2190
|
|
|
2183
2191
|
// ../esbuild/src/plugins/on-error.ts
|
|
2184
|
-
|
|
2192
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
2193
|
+
var onErrorPlugin = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
2185
2194
|
name: "storm:on-error",
|
|
2186
2195
|
setup(build5) {
|
|
2187
2196
|
build5.onEnd((result) => {
|
|
@@ -2197,9 +2206,10 @@ ${result.errors.map((error) => error.text).join("\n")}
|
|
|
2197
2206
|
}), "onErrorPlugin");
|
|
2198
2207
|
|
|
2199
2208
|
// ../esbuild/src/plugins/resolve-paths.ts
|
|
2209
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
2200
2210
|
|
|
2201
2211
|
function resolvePathsConfig(options, cwd) {
|
|
2202
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
2212
|
+
if (_optionalChain([options, 'optionalAccess', _106 => _106.compilerOptions, 'optionalAccess', _107 => _107.paths])) {
|
|
2203
2213
|
const paths = Object.entries(options.compilerOptions.paths);
|
|
2204
2214
|
const resolvedPaths = paths.map(([key, paths2]) => {
|
|
2205
2215
|
return [
|
|
@@ -2212,22 +2222,22 @@ function resolvePathsConfig(options, cwd) {
|
|
|
2212
2222
|
if (options.extends) {
|
|
2213
2223
|
const extendsPath = path6.default.resolve(cwd, options.extends);
|
|
2214
2224
|
const extendsDir = path6.default.dirname(extendsPath);
|
|
2215
|
-
const extendsConfig =
|
|
2225
|
+
const extendsConfig = _chunkZH7QZ5EFjs.__require.call(void 0, extendsPath);
|
|
2216
2226
|
return resolvePathsConfig(extendsConfig, extendsDir);
|
|
2217
2227
|
}
|
|
2218
2228
|
return [];
|
|
2219
2229
|
}
|
|
2220
|
-
|
|
2221
|
-
var resolvePathsPlugin = /* @__PURE__ */
|
|
2230
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
|
|
2231
|
+
var resolvePathsPlugin = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
2222
2232
|
name: "storm:resolve-paths",
|
|
2223
2233
|
setup(build5) {
|
|
2224
|
-
const parentTsConfig = build5.initialOptions.tsconfig ?
|
|
2234
|
+
const parentTsConfig = build5.initialOptions.tsconfig ? _chunkZH7QZ5EFjs.__require.call(void 0, _chunk3HI6WK3Mjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build5.initialOptions.tsconfig)) : _chunkZH7QZ5EFjs.__require.call(void 0, _chunk3HI6WK3Mjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
|
|
2225
2235
|
const resolvedTsPaths = resolvePathsConfig(parentTsConfig, options.projectRoot);
|
|
2226
2236
|
const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
|
|
2227
2237
|
build5.onResolve({
|
|
2228
2238
|
filter: packagesRegex
|
|
2229
2239
|
}, (args) => {
|
|
2230
|
-
if (_optionalChain([build5, 'access',
|
|
2240
|
+
if (_optionalChain([build5, 'access', _108 => _108.initialOptions, 'access', _109 => _109.external, 'optionalAccess', _110 => _110.includes, 'call', _111 => _111(args.path)])) {
|
|
2231
2241
|
return {
|
|
2232
2242
|
path: args.path,
|
|
2233
2243
|
external: true
|
|
@@ -2241,11 +2251,12 @@ var resolvePathsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (o
|
|
|
2241
2251
|
}), "resolvePathsPlugin");
|
|
2242
2252
|
|
|
2243
2253
|
// ../esbuild/src/plugins/tsc.ts
|
|
2254
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
2244
2255
|
var _apiextractor = require('@microsoft/api-extractor');
|
|
2245
2256
|
|
|
2246
2257
|
|
|
2247
2258
|
function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
2248
|
-
const { dependencies, peerDependencies, devDependencies } =
|
|
2259
|
+
const { dependencies, peerDependencies, devDependencies } = _chunkZH7QZ5EFjs.__require.call(void 0, _chunk3HI6WK3Mjs.joinPaths.call(void 0, options.projectRoot, "package.json"));
|
|
2249
2260
|
const dependenciesKeys = Object.keys(_nullishCoalesce(dependencies, () => ( {}))).flatMap((p) => [
|
|
2250
2261
|
p,
|
|
2251
2262
|
getTypeDependencyPackageName(p)
|
|
@@ -2281,13 +2292,13 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
2281
2292
|
},
|
|
2282
2293
|
dtsRollup: {
|
|
2283
2294
|
enabled: true,
|
|
2284
|
-
untrimmedFilePath: joinPaths(options.outdir, `${outfile}.d.ts`)
|
|
2295
|
+
untrimmedFilePath: _chunk3HI6WK3Mjs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
|
|
2285
2296
|
},
|
|
2286
2297
|
tsdocMetadata: {
|
|
2287
2298
|
enabled: false
|
|
2288
2299
|
}
|
|
2289
2300
|
},
|
|
2290
|
-
packageJsonFullPath: joinPaths(options.projectRoot, "package.json"),
|
|
2301
|
+
packageJsonFullPath: _chunk3HI6WK3Mjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
|
|
2291
2302
|
configObjectFullPath: void 0
|
|
2292
2303
|
});
|
|
2293
2304
|
const extractorResult = _apiextractor.Extractor.invoke(extractorConfig, {
|
|
@@ -2299,8 +2310,8 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
2299
2310
|
throw new Error("API Extractor completed with errors");
|
|
2300
2311
|
}
|
|
2301
2312
|
}
|
|
2302
|
-
|
|
2303
|
-
var tscPlugin = /* @__PURE__ */
|
|
2313
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, bundleTypeDefinitions, "bundleTypeDefinitions");
|
|
2314
|
+
var tscPlugin = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
2304
2315
|
name: "storm:tsc",
|
|
2305
2316
|
setup(build5) {
|
|
2306
2317
|
if (options.emitTypes === false) {
|
|
@@ -2314,12 +2325,12 @@ var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, r
|
|
|
2314
2325
|
const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
|
|
2315
2326
|
const typeOutDir = resolvedOptions.outdir;
|
|
2316
2327
|
const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
2317
|
-
const bundlePath = joinPaths(resolvedOptions.outdir, entryPoint);
|
|
2328
|
+
const bundlePath = _chunk3HI6WK3Mjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
|
|
2318
2329
|
let dtsPath;
|
|
2319
|
-
if (_fs.existsSync.call(void 0, joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
|
|
2320
|
-
dtsPath = joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
|
|
2321
|
-
} else if (_fs.existsSync.call(void 0, joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
|
|
2322
|
-
dtsPath = joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
|
|
2330
|
+
if (_fs.existsSync.call(void 0, _chunk3HI6WK3Mjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
|
|
2331
|
+
dtsPath = _chunk3HI6WK3Mjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
|
|
2332
|
+
} else if (_fs.existsSync.call(void 0, _chunk3HI6WK3Mjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
|
|
2333
|
+
dtsPath = _chunk3HI6WK3Mjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
|
|
2323
2334
|
}
|
|
2324
2335
|
const ext = resolvedOptions.outExtension.dts || resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
|
|
2325
2336
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
@@ -2336,17 +2347,17 @@ var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, r
|
|
|
2336
2347
|
function getTypeDependencyPackageName(npmPackage) {
|
|
2337
2348
|
if (npmPackage.startsWith("@")) {
|
|
2338
2349
|
const [scope, name] = npmPackage.split("/");
|
|
2339
|
-
return `@types/${_optionalChain([scope, 'optionalAccess',
|
|
2350
|
+
return `@types/${_optionalChain([scope, 'optionalAccess', _112 => _112.slice, 'call', _113 => _113(1)])}__${name}`;
|
|
2340
2351
|
}
|
|
2341
2352
|
return `@types/${npmPackage}`;
|
|
2342
2353
|
}
|
|
2343
|
-
|
|
2354
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, getTypeDependencyPackageName, "getTypeDependencyPackageName");
|
|
2344
2355
|
|
|
2345
2356
|
// ../esbuild/src/config.ts
|
|
2346
|
-
var getOutputExtensionMap = /* @__PURE__ */
|
|
2357
|
+
var getOutputExtensionMap = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (options, pkgType) => {
|
|
2347
2358
|
return options.outExtension ? options.outExtension(options.format, pkgType) : getOutExtension(options.format, pkgType);
|
|
2348
2359
|
}, "getOutputExtensionMap");
|
|
2349
|
-
var getDefaultBuildPlugins = /* @__PURE__ */
|
|
2360
|
+
var getDefaultBuildPlugins = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (options, resolvedOptions) => [
|
|
2350
2361
|
nodeProtocolPlugin(options, resolvedOptions),
|
|
2351
2362
|
resolvePathsPlugin(options, resolvedOptions),
|
|
2352
2363
|
fixImportsPlugin(options, resolvedOptions),
|
|
@@ -2396,6 +2407,7 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
2396
2407
|
};
|
|
2397
2408
|
|
|
2398
2409
|
// ../esbuild/src/plugins/deps-check.ts
|
|
2410
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
2399
2411
|
|
|
2400
2412
|
|
|
2401
2413
|
var unusedIgnore = [
|
|
@@ -2427,11 +2439,11 @@ var missingIgnore = [
|
|
|
2427
2439
|
"@prisma/client",
|
|
2428
2440
|
"ts-toolbelt"
|
|
2429
2441
|
];
|
|
2430
|
-
var depsCheckPlugin = /* @__PURE__ */
|
|
2442
|
+
var depsCheckPlugin = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (bundle) => ({
|
|
2431
2443
|
name: "storm:deps-check",
|
|
2432
2444
|
setup(build5) {
|
|
2433
2445
|
const pkgJsonPath = path6.default.join(process.cwd(), "package.json");
|
|
2434
|
-
const pkgContents =
|
|
2446
|
+
const pkgContents = _chunkZH7QZ5EFjs.__require.call(void 0, pkgJsonPath);
|
|
2435
2447
|
const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
|
|
2436
2448
|
const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
|
|
2437
2449
|
const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
|
|
@@ -2486,6 +2498,7 @@ ${JSON.stringify(filteredMissingDeps)}
|
|
|
2486
2498
|
}), "depsCheckPlugin");
|
|
2487
2499
|
|
|
2488
2500
|
// ../esbuild/src/renderers/shebang.ts
|
|
2501
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
2489
2502
|
var shebangRenderer = {
|
|
2490
2503
|
name: "shebang",
|
|
2491
2504
|
renderChunk(_, __, info) {
|
|
@@ -2496,6 +2509,7 @@ var shebangRenderer = {
|
|
|
2496
2509
|
};
|
|
2497
2510
|
|
|
2498
2511
|
// ../esbuild/src/utilities/helpers.ts
|
|
2512
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
2499
2513
|
function handleSync(fn) {
|
|
2500
2514
|
try {
|
|
2501
2515
|
return fn();
|
|
@@ -2503,7 +2517,7 @@ function handleSync(fn) {
|
|
|
2503
2517
|
return error_;
|
|
2504
2518
|
}
|
|
2505
2519
|
}
|
|
2506
|
-
|
|
2520
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, handleSync, "handleSync");
|
|
2507
2521
|
async function handleAsync(fn) {
|
|
2508
2522
|
try {
|
|
2509
2523
|
return await fn();
|
|
@@ -2511,7 +2525,7 @@ async function handleAsync(fn) {
|
|
|
2511
2525
|
return error_;
|
|
2512
2526
|
}
|
|
2513
2527
|
}
|
|
2514
|
-
|
|
2528
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, handleAsync, "handleAsync");
|
|
2515
2529
|
var handle = handleSync;
|
|
2516
2530
|
handle.async = handleAsync;
|
|
2517
2531
|
var skip = Symbol("skip");
|
|
@@ -2525,7 +2539,7 @@ function transduceSync(list, transformer) {
|
|
|
2525
2539
|
}
|
|
2526
2540
|
return transduced;
|
|
2527
2541
|
}
|
|
2528
|
-
|
|
2542
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, transduceSync, "transduceSync");
|
|
2529
2543
|
async function transduceAsync(list, transformer) {
|
|
2530
2544
|
const transduced = [];
|
|
2531
2545
|
await Promise.all(list.entries().map(async ([i, element_]) => {
|
|
@@ -2536,34 +2550,34 @@ async function transduceAsync(list, transformer) {
|
|
|
2536
2550
|
}));
|
|
2537
2551
|
return transduced;
|
|
2538
2552
|
}
|
|
2539
|
-
|
|
2553
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, transduceAsync, "transduceAsync");
|
|
2540
2554
|
var transduce = transduceSync;
|
|
2541
2555
|
transduce.async = transduceAsync;
|
|
2542
2556
|
function pipeSync(fn, ...fns) {
|
|
2543
2557
|
return (...args) => {
|
|
2544
2558
|
let result = fn(...args);
|
|
2545
2559
|
for (let i = 0; result !== skip && i < fns.length; ++i) {
|
|
2546
|
-
result = _optionalChain([fns, 'access',
|
|
2560
|
+
result = _optionalChain([fns, 'access', _114 => _114[i], 'optionalCall', _115 => _115(result)]);
|
|
2547
2561
|
}
|
|
2548
2562
|
return result;
|
|
2549
2563
|
};
|
|
2550
2564
|
}
|
|
2551
|
-
|
|
2565
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, pipeSync, "pipeSync");
|
|
2552
2566
|
function pipeAsync(fn, ...fns) {
|
|
2553
2567
|
return async (...args) => {
|
|
2554
2568
|
let result = await fn(...args);
|
|
2555
2569
|
for (let i = 0; result !== skip && i < fns.length; ++i) {
|
|
2556
|
-
result = await _optionalChain([fns, 'access',
|
|
2570
|
+
result = await _optionalChain([fns, 'access', _116 => _116[i], 'optionalCall', _117 => _117(result)]);
|
|
2557
2571
|
}
|
|
2558
2572
|
return result;
|
|
2559
2573
|
};
|
|
2560
2574
|
}
|
|
2561
|
-
|
|
2575
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, pipeAsync, "pipeAsync");
|
|
2562
2576
|
var pipe = pipeSync;
|
|
2563
2577
|
pipe.async = pipeAsync;
|
|
2564
2578
|
|
|
2565
2579
|
// ../esbuild/src/build.ts
|
|
2566
|
-
var resolveOptions = /* @__PURE__ */
|
|
2580
|
+
var resolveOptions = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async (userOptions) => {
|
|
2567
2581
|
const projectRoot = userOptions.projectRoot;
|
|
2568
2582
|
const workspaceRoot3 = _findworkspaceroot.findWorkspaceRoot.call(void 0, projectRoot);
|
|
2569
2583
|
if (!workspaceRoot3) {
|
|
@@ -2575,7 +2589,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
2575
2589
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
2576
2590
|
exitOnError: true
|
|
2577
2591
|
});
|
|
2578
|
-
const projectJsonPath = joinPaths(workspaceRoot3.dir, projectRoot, "project.json");
|
|
2592
|
+
const projectJsonPath = _chunk3HI6WK3Mjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
|
|
2579
2593
|
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
2580
2594
|
throw new Error("Cannot find project.json configuration");
|
|
2581
2595
|
}
|
|
@@ -2583,13 +2597,13 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
2583
2597
|
const projectJson = JSON.parse(projectJsonFile);
|
|
2584
2598
|
const projectName = projectJson.name;
|
|
2585
2599
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
2586
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
2600
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _118 => _118.projects, 'optionalAccess', _119 => _119[projectName]])) {
|
|
2587
2601
|
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.");
|
|
2588
2602
|
}
|
|
2589
2603
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2590
2604
|
options.name ??= `${projectName}-${options.format}`;
|
|
2591
2605
|
options.target ??= DEFAULT_TARGET;
|
|
2592
|
-
const packageJsonPath = joinPaths(workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
2606
|
+
const packageJsonPath = _chunk3HI6WK3Mjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
2593
2607
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
2594
2608
|
throw new Error("Cannot find package.json configuration");
|
|
2595
2609
|
}
|
|
@@ -2614,18 +2628,18 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
2614
2628
|
".node"
|
|
2615
2629
|
],
|
|
2616
2630
|
...userOptions,
|
|
2617
|
-
tsconfig: joinPaths(projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
2631
|
+
tsconfig: _chunk3HI6WK3Mjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
2618
2632
|
format: options.format || "cjs",
|
|
2619
2633
|
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
2620
2634
|
"./src/index.ts"
|
|
2621
2635
|
], userOptions.emitOnAll),
|
|
2622
|
-
outdir: userOptions.outputPath || joinPaths("dist", projectRoot),
|
|
2636
|
+
outdir: userOptions.outputPath || _chunk3HI6WK3Mjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
2623
2637
|
plugins: [],
|
|
2624
2638
|
name: userOptions.name || projectName,
|
|
2625
2639
|
projectConfigurations,
|
|
2626
2640
|
projectName,
|
|
2627
2641
|
projectGraph,
|
|
2628
|
-
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || joinPaths(projectRoot, "src"),
|
|
2642
|
+
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunk3HI6WK3Mjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
2629
2643
|
minify: userOptions.minify || !userOptions.debug,
|
|
2630
2644
|
verbose: userOptions.verbose || isVerbose() || userOptions.debug === true,
|
|
2631
2645
|
includeSrc: userOptions.includeSrc === true,
|
|
@@ -2663,8 +2677,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
2663
2677
|
}, {})
|
|
2664
2678
|
},
|
|
2665
2679
|
inject: [
|
|
2666
|
-
options.format === "cjs" && options.injectShims ? joinPaths(__dirname, "../assets/cjs_shims.js") : "",
|
|
2667
|
-
options.format === "esm" && options.injectShims && options.platform === "node" ? joinPaths(__dirname, "../assets/esm_shims.js") : "",
|
|
2680
|
+
options.format === "cjs" && options.injectShims ? _chunk3HI6WK3Mjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
|
|
2681
|
+
options.format === "esm" && options.injectShims && options.platform === "node" ? _chunk3HI6WK3Mjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : "",
|
|
2668
2682
|
..._nullishCoalesce(options.inject, () => ( []))
|
|
2669
2683
|
].filter(Boolean)
|
|
2670
2684
|
};
|
|
@@ -2673,14 +2687,14 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
2673
2687
|
return result;
|
|
2674
2688
|
}, "resolveOptions");
|
|
2675
2689
|
async function generatePackageJson(context2) {
|
|
2676
|
-
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, joinPaths(context2.options.projectRoot, "package.json"))) {
|
|
2690
|
+
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunk3HI6WK3Mjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
2677
2691
|
writeDebug(" \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
2678
2692
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2679
|
-
const packageJsonPath = joinPaths(context2.options.projectRoot, "project.json");
|
|
2693
|
+
const packageJsonPath = _chunk3HI6WK3Mjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
2680
2694
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
2681
2695
|
throw new Error("Cannot find package.json configuration");
|
|
2682
2696
|
}
|
|
2683
|
-
const packageJsonFile = await _promises2.default.readFile(joinPaths(context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
|
|
2697
|
+
const packageJsonFile = await _promises2.default.readFile(_chunk3HI6WK3Mjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
|
|
2684
2698
|
let packageJson = JSON.parse(packageJsonFile);
|
|
2685
2699
|
if (!packageJson) {
|
|
2686
2700
|
throw new Error("Cannot find package.json configuration file");
|
|
@@ -2719,19 +2733,19 @@ async function generatePackageJson(context2) {
|
|
|
2719
2733
|
}
|
|
2720
2734
|
return ret;
|
|
2721
2735
|
}, packageJson.exports);
|
|
2722
|
-
await _devkit.writeJsonFile.call(void 0, joinPaths(context2.options.outdir, "package.json"), packageJson);
|
|
2736
|
+
await _devkit.writeJsonFile.call(void 0, _chunk3HI6WK3Mjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
|
|
2723
2737
|
stopwatch();
|
|
2724
2738
|
}
|
|
2725
2739
|
return context2;
|
|
2726
2740
|
}
|
|
2727
|
-
|
|
2741
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
|
|
2728
2742
|
async function createOptions(options) {
|
|
2729
2743
|
return _estoolkit.flatten.call(void 0, await Promise.all(_compat.map.call(void 0, options, (opt) => [
|
|
2730
2744
|
// we defer it so that we don't trigger glob immediately
|
|
2731
2745
|
() => resolveOptions(opt)
|
|
2732
2746
|
])));
|
|
2733
2747
|
}
|
|
2734
|
-
|
|
2748
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, createOptions, "createOptions");
|
|
2735
2749
|
async function generateContext(getOptions) {
|
|
2736
2750
|
const options = await getOptions();
|
|
2737
2751
|
const rendererEngine = new RendererEngine([
|
|
@@ -2743,7 +2757,7 @@ async function generateContext(getOptions) {
|
|
|
2743
2757
|
rendererEngine
|
|
2744
2758
|
};
|
|
2745
2759
|
}
|
|
2746
|
-
|
|
2760
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, generateContext, "generateContext");
|
|
2747
2761
|
async function executeEsBuild(context2) {
|
|
2748
2762
|
writeDebug(` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
|
|
2749
2763
|
const stopwatch = getStopwatch(`${context2.options.name} build`);
|
|
@@ -2759,9 +2773,9 @@ async function executeEsBuild(context2) {
|
|
|
2759
2773
|
stopwatch();
|
|
2760
2774
|
return context2;
|
|
2761
2775
|
}
|
|
2762
|
-
|
|
2776
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
2763
2777
|
async function copyBuildAssets(context2) {
|
|
2764
|
-
if (_optionalChain([context2, 'access',
|
|
2778
|
+
if (_optionalChain([context2, 'access', _120 => _120.result, 'optionalAccess', _121 => _121.errors, 'access', _122 => _122.length]) === 0) {
|
|
2765
2779
|
writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
2766
2780
|
const stopwatch = getStopwatch(`${context2.options.name} asset copy`);
|
|
2767
2781
|
await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
@@ -2769,16 +2783,16 @@ async function copyBuildAssets(context2) {
|
|
|
2769
2783
|
}
|
|
2770
2784
|
return context2;
|
|
2771
2785
|
}
|
|
2772
|
-
|
|
2786
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
2773
2787
|
async function reportResults(context2) {
|
|
2774
|
-
if (_optionalChain([context2, 'access',
|
|
2788
|
+
if (_optionalChain([context2, 'access', _123 => _123.result, 'optionalAccess', _124 => _124.errors, 'access', _125 => _125.length]) === 0) {
|
|
2775
2789
|
if (context2.result.warnings.length > 0) {
|
|
2776
2790
|
writeWarning(` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
|
|
2777
2791
|
}
|
|
2778
2792
|
writeSuccess(` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
2779
2793
|
}
|
|
2780
2794
|
}
|
|
2781
|
-
|
|
2795
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, reportResults, "reportResults");
|
|
2782
2796
|
async function dependencyCheck(options) {
|
|
2783
2797
|
if (process.env.DEV === "true") {
|
|
2784
2798
|
return void 0;
|
|
@@ -2808,7 +2822,7 @@ async function dependencyCheck(options) {
|
|
|
2808
2822
|
});
|
|
2809
2823
|
return void 0;
|
|
2810
2824
|
}
|
|
2811
|
-
|
|
2825
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
2812
2826
|
async function cleanOutputPath(context2) {
|
|
2813
2827
|
if (context2.options.clean !== false && context2.options.outdir) {
|
|
2814
2828
|
writeDebug(` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
|
|
@@ -2818,7 +2832,7 @@ async function cleanOutputPath(context2) {
|
|
|
2818
2832
|
}
|
|
2819
2833
|
return context2;
|
|
2820
2834
|
}
|
|
2821
|
-
|
|
2835
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
2822
2836
|
async function build3(options) {
|
|
2823
2837
|
writeDebug(` \u26A1 Executing Storm ESBuild pipeline`);
|
|
2824
2838
|
const stopwatch = getStopwatch("ESBuild pipeline");
|
|
@@ -2839,8 +2853,8 @@ async function build3(options) {
|
|
|
2839
2853
|
stopwatch();
|
|
2840
2854
|
}
|
|
2841
2855
|
}
|
|
2842
|
-
|
|
2843
|
-
var watch = /* @__PURE__ */
|
|
2856
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, build3, "build");
|
|
2857
|
+
var watch = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (context2, options) => {
|
|
2844
2858
|
if (!options.watch) {
|
|
2845
2859
|
return context2;
|
|
2846
2860
|
}
|
|
@@ -2872,14 +2886,14 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
2872
2886
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
2873
2887
|
async function esbuildExecutorFn(options, context2, config) {
|
|
2874
2888
|
writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
2875
|
-
if (!_optionalChain([context2, 'access',
|
|
2889
|
+
if (!_optionalChain([context2, 'access', _126 => _126.projectsConfigurations, 'optionalAccess', _127 => _127.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _128 => _128.projectsConfigurations, 'access', _129 => _129.projects, 'access', _130 => _130[context2.projectName], 'optionalAccess', _131 => _131.root])) {
|
|
2876
2890
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
2877
2891
|
}
|
|
2878
2892
|
await build3({
|
|
2879
2893
|
...options,
|
|
2880
|
-
projectRoot: _optionalChain([context2, 'access',
|
|
2894
|
+
projectRoot: _optionalChain([context2, 'access', _132 => _132.projectsConfigurations, 'access', _133 => _133.projects, 'optionalAccess', _134 => _134[context2.projectName], 'access', _135 => _135.root]),
|
|
2881
2895
|
projectName: context2.projectName,
|
|
2882
|
-
sourceRoot: _optionalChain([context2, 'access',
|
|
2896
|
+
sourceRoot: _optionalChain([context2, 'access', _136 => _136.projectsConfigurations, 'access', _137 => _137.projects, 'optionalAccess', _138 => _138[context2.projectName], 'optionalAccess', _139 => _139.sourceRoot]),
|
|
2883
2897
|
format: options.format,
|
|
2884
2898
|
platform: options.format
|
|
2885
2899
|
});
|
|
@@ -2887,11 +2901,11 @@ async function esbuildExecutorFn(options, context2, config) {
|
|
|
2887
2901
|
success: true
|
|
2888
2902
|
};
|
|
2889
2903
|
}
|
|
2890
|
-
|
|
2904
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, esbuildExecutorFn, "esbuildExecutorFn");
|
|
2891
2905
|
var executor_default6 = withRunExecutor("Storm ESBuild build", esbuildExecutorFn, {
|
|
2892
2906
|
skipReadingConfig: false,
|
|
2893
2907
|
hooks: {
|
|
2894
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
2908
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async (options, config) => {
|
|
2895
2909
|
options.entry ??= [
|
|
2896
2910
|
"src/index.ts"
|
|
2897
2911
|
];
|
|
@@ -2903,10 +2917,12 @@ var executor_default6 = withRunExecutor("Storm ESBuild build", esbuildExecutorFn
|
|
|
2903
2917
|
});
|
|
2904
2918
|
|
|
2905
2919
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
2920
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
2906
2921
|
|
|
2907
2922
|
|
|
2908
2923
|
|
|
2909
2924
|
// ../workspace-tools/src/utils/pnpm-deps-update.ts
|
|
2925
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
2910
2926
|
|
|
2911
2927
|
|
|
2912
2928
|
var _prettier = require('prettier');
|
|
@@ -2916,13 +2932,14 @@ var _readyamlfile = require('read-yaml-file'); var _readyamlfile2 = _interopRequ
|
|
|
2916
2932
|
var LARGE_BUFFER3 = 1024 * 1e6;
|
|
2917
2933
|
|
|
2918
2934
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
2935
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
2919
2936
|
|
|
2920
2937
|
var _esbuild2 = require('@size-limit/esbuild'); var _esbuild3 = _interopRequireDefault(_esbuild2);
|
|
2921
2938
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
2922
2939
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
2923
2940
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
2924
2941
|
async function sizeLimitExecutorFn(options, context2, config) {
|
|
2925
|
-
if (!_optionalChain([context2, 'optionalAccess',
|
|
2942
|
+
if (!_optionalChain([context2, 'optionalAccess', _140 => _140.projectName]) || !_optionalChain([context2, 'access', _141 => _141.projectsConfigurations, 'optionalAccess', _142 => _142.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
2926
2943
|
throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
|
|
2927
2944
|
}
|
|
2928
2945
|
writeInfo(`\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
|
|
@@ -2931,7 +2948,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
2931
2948
|
_esbuild3.default,
|
|
2932
2949
|
_esbuildwhy2.default
|
|
2933
2950
|
], {
|
|
2934
|
-
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access',
|
|
2951
|
+
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _143 => _143.projectsConfigurations, 'access', _144 => _144.projects, 'access', _145 => _145[context2.projectName], 'optionalAccess', _146 => _146.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _147 => _147.projectsConfigurations, 'access', _148 => _148.projects, 'access', _149 => _149[context2.projectName], 'optionalAccess', _150 => _150.root]), () => ( "./")), "src")))
|
|
2935
2952
|
}).then((result) => {
|
|
2936
2953
|
writeInfo(`\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
|
|
2937
2954
|
});
|
|
@@ -2939,17 +2956,21 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
2939
2956
|
success: true
|
|
2940
2957
|
};
|
|
2941
2958
|
}
|
|
2942
|
-
|
|
2959
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, sizeLimitExecutorFn, "sizeLimitExecutorFn");
|
|
2943
2960
|
var executor_default7 = withRunExecutor("Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
|
|
2944
2961
|
skipReadingConfig: false,
|
|
2945
2962
|
hooks: {
|
|
2946
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
2963
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (options) => {
|
|
2947
2964
|
return options;
|
|
2948
2965
|
}, "applyDefaultOptions")
|
|
2949
2966
|
}
|
|
2950
2967
|
});
|
|
2951
2968
|
|
|
2969
|
+
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
2970
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
2971
|
+
|
|
2952
2972
|
// ../tsdown/src/build.ts
|
|
2973
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
2953
2974
|
|
|
2954
2975
|
|
|
2955
2976
|
|
|
@@ -2958,6 +2979,7 @@ var executor_default7 = withRunExecutor("Size-Limit Performance Test Executor",
|
|
|
2958
2979
|
var _tsdown = require('tsdown');
|
|
2959
2980
|
|
|
2960
2981
|
// ../tsdown/src/clean.ts
|
|
2982
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
2961
2983
|
|
|
2962
2984
|
async function cleanDirectories2(name = "TSDown", directory, config) {
|
|
2963
2985
|
await _promises.rm.call(void 0, directory, {
|
|
@@ -2965,9 +2987,10 @@ async function cleanDirectories2(name = "TSDown", directory, config) {
|
|
|
2965
2987
|
force: true
|
|
2966
2988
|
});
|
|
2967
2989
|
}
|
|
2968
|
-
|
|
2990
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, cleanDirectories2, "cleanDirectories");
|
|
2969
2991
|
|
|
2970
2992
|
// ../tsdown/src/config.ts
|
|
2993
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
2971
2994
|
var DEFAULT_BUILD_OPTIONS2 = {
|
|
2972
2995
|
platform: "node",
|
|
2973
2996
|
target: "node22",
|
|
@@ -2990,7 +3013,7 @@ var DEFAULT_BUILD_OPTIONS2 = {
|
|
|
2990
3013
|
};
|
|
2991
3014
|
|
|
2992
3015
|
// ../tsdown/src/build.ts
|
|
2993
|
-
var resolveOptions2 = /* @__PURE__ */
|
|
3016
|
+
var resolveOptions2 = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async (userOptions) => {
|
|
2994
3017
|
const projectRoot = userOptions.projectRoot;
|
|
2995
3018
|
const workspaceRoot3 = _findworkspaceroot.findWorkspaceRoot.call(void 0, projectRoot);
|
|
2996
3019
|
if (!workspaceRoot3) {
|
|
@@ -3002,7 +3025,7 @@ var resolveOptions2 = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
3002
3025
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
3003
3026
|
exitOnError: true
|
|
3004
3027
|
});
|
|
3005
|
-
const projectJsonPath = joinPaths(workspaceRoot3.dir, projectRoot, "project.json");
|
|
3028
|
+
const projectJsonPath = _chunk3HI6WK3Mjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
|
|
3006
3029
|
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
3007
3030
|
throw new Error("Cannot find project.json configuration");
|
|
3008
3031
|
}
|
|
@@ -3010,13 +3033,13 @@ var resolveOptions2 = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
3010
3033
|
const projectJson = JSON.parse(projectJsonFile);
|
|
3011
3034
|
const projectName = projectJson.name;
|
|
3012
3035
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
3013
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
3036
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _151 => _151.projects, 'optionalAccess', _152 => _152[projectName]])) {
|
|
3014
3037
|
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.");
|
|
3015
3038
|
}
|
|
3016
3039
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS2);
|
|
3017
3040
|
options.name ??= `${projectName}-${options.format}`;
|
|
3018
3041
|
options.target ??= DEFAULT_TARGET;
|
|
3019
|
-
const packageJsonPath = joinPaths(workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
3042
|
+
const packageJsonPath = _chunk3HI6WK3Mjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
3020
3043
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
3021
3044
|
throw new Error("Cannot find package.json configuration");
|
|
3022
3045
|
}
|
|
@@ -3025,18 +3048,18 @@ var resolveOptions2 = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
3025
3048
|
...options,
|
|
3026
3049
|
config,
|
|
3027
3050
|
...userOptions,
|
|
3028
|
-
tsconfig: joinPaths(projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
3051
|
+
tsconfig: _chunk3HI6WK3Mjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
3029
3052
|
format: options.format || "cjs",
|
|
3030
3053
|
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
3031
3054
|
"./src/index.ts"
|
|
3032
3055
|
], userOptions.emitOnAll),
|
|
3033
|
-
outdir: userOptions.outputPath || joinPaths("dist", projectRoot),
|
|
3056
|
+
outdir: userOptions.outputPath || _chunk3HI6WK3Mjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
3034
3057
|
plugins: [],
|
|
3035
3058
|
name: userOptions.name || projectName,
|
|
3036
3059
|
projectConfigurations,
|
|
3037
3060
|
projectName,
|
|
3038
3061
|
projectGraph,
|
|
3039
|
-
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || joinPaths(projectRoot, "src"),
|
|
3062
|
+
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunk3HI6WK3Mjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
3040
3063
|
minify: userOptions.minify || !userOptions.debug,
|
|
3041
3064
|
verbose: userOptions.verbose || isVerbose() || userOptions.debug === true,
|
|
3042
3065
|
includeSrc: userOptions.includeSrc === true,
|
|
@@ -3072,14 +3095,14 @@ var resolveOptions2 = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
3072
3095
|
return result;
|
|
3073
3096
|
}, "resolveOptions");
|
|
3074
3097
|
async function generatePackageJson2(options) {
|
|
3075
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, joinPaths(options.projectRoot, "package.json"))) {
|
|
3098
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunk3HI6WK3Mjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
3076
3099
|
writeDebug(" \u270D\uFE0F Writing package.json file", options.config);
|
|
3077
3100
|
const stopwatch = getStopwatch("Write package.json file");
|
|
3078
|
-
const packageJsonPath = joinPaths(options.projectRoot, "project.json");
|
|
3101
|
+
const packageJsonPath = _chunk3HI6WK3Mjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
3079
3102
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
3080
3103
|
throw new Error("Cannot find package.json configuration");
|
|
3081
3104
|
}
|
|
3082
|
-
const packageJsonFile = await _promises2.default.readFile(joinPaths(options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
|
|
3105
|
+
const packageJsonFile = await _promises2.default.readFile(_chunk3HI6WK3Mjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
|
|
3083
3106
|
if (!packageJsonFile) {
|
|
3084
3107
|
throw new Error("Cannot find package.json configuration file");
|
|
3085
3108
|
}
|
|
@@ -3118,12 +3141,12 @@ async function generatePackageJson2(options) {
|
|
|
3118
3141
|
}
|
|
3119
3142
|
return ret;
|
|
3120
3143
|
}, packageJson.exports);
|
|
3121
|
-
await _devkit.writeJsonFile.call(void 0, joinPaths(options.outdir, "package.json"), packageJson);
|
|
3144
|
+
await _devkit.writeJsonFile.call(void 0, _chunk3HI6WK3Mjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
|
|
3122
3145
|
stopwatch();
|
|
3123
3146
|
}
|
|
3124
3147
|
return options;
|
|
3125
3148
|
}
|
|
3126
|
-
|
|
3149
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, generatePackageJson2, "generatePackageJson");
|
|
3127
3150
|
async function executeTSDown(options) {
|
|
3128
3151
|
writeDebug(` \u{1F680} Running ${options.name} build`, options.config);
|
|
3129
3152
|
const stopwatch = getStopwatch(`${options.name} build`);
|
|
@@ -3136,7 +3159,7 @@ async function executeTSDown(options) {
|
|
|
3136
3159
|
stopwatch();
|
|
3137
3160
|
return options;
|
|
3138
3161
|
}
|
|
3139
|
-
|
|
3162
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, executeTSDown, "executeTSDown");
|
|
3140
3163
|
async function copyBuildAssets2(options) {
|
|
3141
3164
|
writeDebug(` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
|
|
3142
3165
|
const stopwatch = getStopwatch(`${options.name} asset copy`);
|
|
@@ -3144,11 +3167,11 @@ async function copyBuildAssets2(options) {
|
|
|
3144
3167
|
stopwatch();
|
|
3145
3168
|
return options;
|
|
3146
3169
|
}
|
|
3147
|
-
|
|
3170
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, copyBuildAssets2, "copyBuildAssets");
|
|
3148
3171
|
async function reportResults2(options) {
|
|
3149
3172
|
writeSuccess(` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
|
|
3150
3173
|
}
|
|
3151
|
-
|
|
3174
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, reportResults2, "reportResults");
|
|
3152
3175
|
async function cleanOutputPath2(options) {
|
|
3153
3176
|
if (options.clean !== false && options.outdir) {
|
|
3154
3177
|
writeDebug(` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
|
|
@@ -3158,7 +3181,7 @@ async function cleanOutputPath2(options) {
|
|
|
3158
3181
|
}
|
|
3159
3182
|
return options;
|
|
3160
3183
|
}
|
|
3161
|
-
|
|
3184
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, cleanOutputPath2, "cleanOutputPath");
|
|
3162
3185
|
async function build4(options) {
|
|
3163
3186
|
writeDebug(` \u26A1 Executing Storm TSDown pipeline`);
|
|
3164
3187
|
const stopwatch = getStopwatch("TSDown pipeline");
|
|
@@ -3189,19 +3212,19 @@ async function build4(options) {
|
|
|
3189
3212
|
stopwatch();
|
|
3190
3213
|
}
|
|
3191
3214
|
}
|
|
3192
|
-
|
|
3215
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, build4, "build");
|
|
3193
3216
|
|
|
3194
3217
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
3195
3218
|
async function tsdownExecutorFn(options, context2, config) {
|
|
3196
3219
|
writeInfo("\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
|
|
3197
|
-
if (!_optionalChain([context2, 'access',
|
|
3220
|
+
if (!_optionalChain([context2, 'access', _153 => _153.projectsConfigurations, 'optionalAccess', _154 => _154.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _155 => _155.projectsConfigurations, 'access', _156 => _156.projects, 'access', _157 => _157[context2.projectName], 'optionalAccess', _158 => _158.root])) {
|
|
3198
3221
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
3199
3222
|
}
|
|
3200
3223
|
await build4({
|
|
3201
3224
|
...options,
|
|
3202
|
-
projectRoot: _optionalChain([context2, 'access',
|
|
3225
|
+
projectRoot: _optionalChain([context2, 'access', _159 => _159.projectsConfigurations, 'access', _160 => _160.projects, 'optionalAccess', _161 => _161[context2.projectName], 'access', _162 => _162.root]),
|
|
3203
3226
|
projectName: context2.projectName,
|
|
3204
|
-
sourceRoot: _optionalChain([context2, 'access',
|
|
3227
|
+
sourceRoot: _optionalChain([context2, 'access', _163 => _163.projectsConfigurations, 'access', _164 => _164.projects, 'optionalAccess', _165 => _165[context2.projectName], 'optionalAccess', _166 => _166.sourceRoot]),
|
|
3205
3228
|
format: options.format,
|
|
3206
3229
|
platform: options.platform
|
|
3207
3230
|
});
|
|
@@ -3209,11 +3232,11 @@ async function tsdownExecutorFn(options, context2, config) {
|
|
|
3209
3232
|
success: true
|
|
3210
3233
|
};
|
|
3211
3234
|
}
|
|
3212
|
-
|
|
3235
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, tsdownExecutorFn, "tsdownExecutorFn");
|
|
3213
3236
|
var executor_default8 = withRunExecutor("Storm TSDown build executor", tsdownExecutorFn, {
|
|
3214
3237
|
skipReadingConfig: false,
|
|
3215
3238
|
hooks: {
|
|
3216
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3239
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async (options, config) => {
|
|
3217
3240
|
options.entry ??= [
|
|
3218
3241
|
"src/index.ts"
|
|
3219
3242
|
];
|
|
@@ -3225,6 +3248,7 @@ var executor_default8 = withRunExecutor("Storm TSDown build executor", tsdownExe
|
|
|
3225
3248
|
});
|
|
3226
3249
|
|
|
3227
3250
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
3251
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
3228
3252
|
var _fsextra = require('fs-extra');
|
|
3229
3253
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
3230
3254
|
async function typiaExecutorFn(options, _, config) {
|
|
@@ -3244,11 +3268,11 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
3244
3268
|
success: true
|
|
3245
3269
|
};
|
|
3246
3270
|
}
|
|
3247
|
-
|
|
3271
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, typiaExecutorFn, "typiaExecutorFn");
|
|
3248
3272
|
var executor_default9 = withRunExecutor("Typia runtime validation generator", typiaExecutorFn, {
|
|
3249
3273
|
skipReadingConfig: false,
|
|
3250
3274
|
hooks: {
|
|
3251
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3275
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (options) => {
|
|
3252
3276
|
options.entry ??= [
|
|
3253
3277
|
"{sourceRoot}/index.ts"
|
|
3254
3278
|
];
|
|
@@ -3261,11 +3285,12 @@ var executor_default9 = withRunExecutor("Typia runtime validation generator", ty
|
|
|
3261
3285
|
});
|
|
3262
3286
|
|
|
3263
3287
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
3288
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
3264
3289
|
|
|
3265
3290
|
var _jiti = require('jiti');
|
|
3266
3291
|
async function unbuildExecutorFn(options, context2, config) {
|
|
3267
3292
|
writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
3268
|
-
if (!_optionalChain([context2, 'access',
|
|
3293
|
+
if (!_optionalChain([context2, 'access', _167 => _167.projectsConfigurations, 'optionalAccess', _168 => _168.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
3269
3294
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
3270
3295
|
}
|
|
3271
3296
|
if (!context2.projectsConfigurations.projects[context2.projectName].root) {
|
|
@@ -3275,7 +3300,7 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
3275
3300
|
throw new Error("The Build process failed because the project's source root is not valid. Please run this command from a workspace root directory.");
|
|
3276
3301
|
}
|
|
3277
3302
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3278
|
-
fsCache: config.skipCache ? false : joinPaths(config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
|
|
3303
|
+
fsCache: config.skipCache ? false : _chunk3HI6WK3Mjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
|
|
3279
3304
|
interopDefault: true
|
|
3280
3305
|
});
|
|
3281
3306
|
const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
|
|
@@ -3288,7 +3313,7 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
3288
3313
|
}, {
|
|
3289
3314
|
stubOptions: {
|
|
3290
3315
|
jiti: {
|
|
3291
|
-
fsCache: config.skipCache ? false : joinPaths(config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
|
|
3316
|
+
fsCache: config.skipCache ? false : _chunk3HI6WK3Mjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
|
|
3292
3317
|
}
|
|
3293
3318
|
},
|
|
3294
3319
|
rollup: {
|
|
@@ -3311,11 +3336,11 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
3311
3336
|
success: true
|
|
3312
3337
|
};
|
|
3313
3338
|
}
|
|
3314
|
-
|
|
3339
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
|
|
3315
3340
|
var executor_default10 = withRunExecutor("TypeScript Unbuild build", unbuildExecutorFn, {
|
|
3316
3341
|
skipReadingConfig: false,
|
|
3317
3342
|
hooks: {
|
|
3318
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3343
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, async (options, config) => {
|
|
3319
3344
|
options.debug ??= false;
|
|
3320
3345
|
options.treeShaking ??= true;
|
|
3321
3346
|
options.platform ??= "neutral";
|
|
@@ -3328,11 +3353,16 @@ var executor_default10 = withRunExecutor("TypeScript Unbuild build", unbuildExec
|
|
|
3328
3353
|
}
|
|
3329
3354
|
});
|
|
3330
3355
|
|
|
3356
|
+
// ../workspace-tools/generators.ts
|
|
3357
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
3358
|
+
|
|
3331
3359
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3360
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
3332
3361
|
|
|
3333
3362
|
|
|
3334
3363
|
// ../workspace-tools/src/base/base-generator.ts
|
|
3335
|
-
|
|
3364
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
3365
|
+
var withRunGenerator = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (name, generatorFn, generatorOptions = {
|
|
3336
3366
|
skipReadingConfig: false
|
|
3337
3367
|
}) => async (tree, _options) => {
|
|
3338
3368
|
const stopwatch = getStopwatch(name);
|
|
@@ -3348,7 +3378,7 @@ var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (nam
|
|
|
3348
3378
|
- workspaceRoot: ${workspaceRoot3}`, config);
|
|
3349
3379
|
config = await getConfig(workspaceRoot3);
|
|
3350
3380
|
}
|
|
3351
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
3381
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _169 => _169.hooks, 'optionalAccess', _170 => _170.applyDefaultOptions])) {
|
|
3352
3382
|
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
3353
3383
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
3354
3384
|
writeDebug("Completed the applyDefaultOptions hook", config);
|
|
@@ -3359,22 +3389,22 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
3359
3389
|
workspaceRoot: tree.root,
|
|
3360
3390
|
config
|
|
3361
3391
|
}, applyWorkspaceBaseTokens);
|
|
3362
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
3392
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _171 => _171.hooks, 'optionalAccess', _172 => _172.preProcess])) {
|
|
3363
3393
|
writeDebug("Running the preProcess hook...", config);
|
|
3364
3394
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
3365
3395
|
writeDebug("Completed the preProcess hook", config);
|
|
3366
3396
|
}
|
|
3367
3397
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
3368
3398
|
if (result) {
|
|
3369
|
-
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess',
|
|
3399
|
+
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _173 => _173.error, 'optionalAccess', _174 => _174.message]) && typeof _optionalChain([result, 'optionalAccess', _175 => _175.error, 'optionalAccess', _176 => _176.message]) === "string" && _optionalChain([result, 'optionalAccess', _177 => _177.error, 'optionalAccess', _178 => _178.name]) && typeof _optionalChain([result, 'optionalAccess', _179 => _179.error, 'optionalAccess', _180 => _180.name]) === "string") {
|
|
3370
3400
|
throw new Error(`The ${name} generator failed to run`, {
|
|
3371
|
-
cause: _optionalChain([result, 'optionalAccess',
|
|
3401
|
+
cause: _optionalChain([result, 'optionalAccess', _181 => _181.error])
|
|
3372
3402
|
});
|
|
3373
3403
|
} else if (result.success && result.data) {
|
|
3374
3404
|
return result;
|
|
3375
3405
|
}
|
|
3376
3406
|
}
|
|
3377
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
3407
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _182 => _182.hooks, 'optionalAccess', _183 => _183.postProcess])) {
|
|
3378
3408
|
writeDebug("Running the postProcess hook...", config);
|
|
3379
3409
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
3380
3410
|
writeDebug("Completed the postProcess hook", config);
|
|
@@ -3396,6 +3426,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
3396
3426
|
}, "withRunGenerator");
|
|
3397
3427
|
|
|
3398
3428
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
3429
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
3399
3430
|
|
|
3400
3431
|
var _projectnameandrootutils = require('@nx/devkit/src/generators/project-name-and-root-utils');
|
|
3401
3432
|
var _js = require('@nx/js');
|
|
@@ -3403,6 +3434,7 @@ var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopReq
|
|
|
3403
3434
|
var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
|
|
3404
3435
|
|
|
3405
3436
|
// ../workspace-tools/src/utils/project-tags.ts
|
|
3437
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
3406
3438
|
var ProjectTagConstants = {
|
|
3407
3439
|
Language: {
|
|
3408
3440
|
TAG_ID: "language",
|
|
@@ -3440,15 +3472,15 @@ var ProjectTagConstants = {
|
|
|
3440
3472
|
TAG_ID: "plugin"
|
|
3441
3473
|
}
|
|
3442
3474
|
};
|
|
3443
|
-
var formatProjectTag = /* @__PURE__ */
|
|
3475
|
+
var formatProjectTag = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (variant, value) => {
|
|
3444
3476
|
return `${variant}:${value}`;
|
|
3445
3477
|
}, "formatProjectTag");
|
|
3446
|
-
var hasProjectTag = /* @__PURE__ */
|
|
3478
|
+
var hasProjectTag = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (project, variant) => {
|
|
3447
3479
|
project.tags = _nullishCoalesce(project.tags, () => ( []));
|
|
3448
3480
|
const prefix = formatProjectTag(variant, "");
|
|
3449
3481
|
return project.tags.some((tag) => tag.startsWith(prefix) && tag.length > prefix.length);
|
|
3450
3482
|
}, "hasProjectTag");
|
|
3451
|
-
var addProjectTag = /* @__PURE__ */
|
|
3483
|
+
var addProjectTag = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (project, variant, value, options = {
|
|
3452
3484
|
overwrite: false
|
|
3453
3485
|
}) => {
|
|
3454
3486
|
project.tags = _nullishCoalesce(project.tags, () => ( []));
|
|
@@ -3459,6 +3491,7 @@ var addProjectTag = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (projec
|
|
|
3459
3491
|
}, "addProjectTag");
|
|
3460
3492
|
|
|
3461
3493
|
// ../workspace-tools/src/utils/versions.ts
|
|
3494
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
3462
3495
|
var typesNodeVersion = "20.9.0";
|
|
3463
3496
|
var nxVersion = "^18.0.4";
|
|
3464
3497
|
var nodeVersion = "20.11.0";
|
|
@@ -3488,7 +3521,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3488
3521
|
const projectConfig = {
|
|
3489
3522
|
root: normalized.directory,
|
|
3490
3523
|
projectType: "library",
|
|
3491
|
-
sourceRoot: joinPaths(_nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
3524
|
+
sourceRoot: _chunk3HI6WK3Mjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
3492
3525
|
targets: {
|
|
3493
3526
|
build: {
|
|
3494
3527
|
executor: options.buildExecutor,
|
|
@@ -3497,11 +3530,11 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3497
3530
|
],
|
|
3498
3531
|
options: {
|
|
3499
3532
|
entry: [
|
|
3500
|
-
joinPaths(normalized.projectRoot, "src", "index.ts")
|
|
3533
|
+
_chunk3HI6WK3Mjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
|
|
3501
3534
|
],
|
|
3502
3535
|
outputPath: getOutputPath(normalized),
|
|
3503
|
-
tsconfig: joinPaths(normalized.projectRoot, "tsconfig.json"),
|
|
3504
|
-
project: joinPaths(normalized.projectRoot, "package.json"),
|
|
3536
|
+
tsconfig: _chunk3HI6WK3Mjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
3537
|
+
project: _chunk3HI6WK3Mjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
3505
3538
|
defaultConfiguration: "production",
|
|
3506
3539
|
platform: "neutral",
|
|
3507
3540
|
assets: [
|
|
@@ -3540,22 +3573,22 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3540
3573
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
3541
3574
|
let repository = {
|
|
3542
3575
|
type: "github",
|
|
3543
|
-
url: _optionalChain([config, 'optionalAccess',
|
|
3576
|
+
url: _optionalChain([config, 'optionalAccess', _184 => _184.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _185 => _185.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _186 => _186.namespace]) || _optionalChain([config, 'optionalAccess', _187 => _187.name]) || "repository"}.git`
|
|
3544
3577
|
};
|
|
3545
3578
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
3546
3579
|
if (tree.exists("package.json")) {
|
|
3547
3580
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
3548
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3581
|
+
if (_optionalChain([packageJson, 'optionalAccess', _188 => _188.repository])) {
|
|
3549
3582
|
repository = packageJson.repository;
|
|
3550
3583
|
}
|
|
3551
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3584
|
+
if (_optionalChain([packageJson, 'optionalAccess', _189 => _189.description])) {
|
|
3552
3585
|
description = packageJson.description;
|
|
3553
3586
|
}
|
|
3554
3587
|
}
|
|
3555
3588
|
if (!normalized.importPath) {
|
|
3556
3589
|
normalized.importPath = normalized.name;
|
|
3557
3590
|
}
|
|
3558
|
-
const packageJsonPath = joinPaths(normalized.projectRoot, "package.json");
|
|
3591
|
+
const packageJsonPath = _chunk3HI6WK3Mjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
3559
3592
|
if (tree.exists(packageJsonPath)) {
|
|
3560
3593
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
3561
3594
|
if (!normalized.importPath) {
|
|
@@ -3603,30 +3636,30 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3603
3636
|
_devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
|
|
3604
3637
|
...json,
|
|
3605
3638
|
pnpm: {
|
|
3606
|
-
..._optionalChain([json, 'optionalAccess',
|
|
3639
|
+
..._optionalChain([json, 'optionalAccess', _190 => _190.pnpm]),
|
|
3607
3640
|
overrides: {
|
|
3608
|
-
..._optionalChain([json, 'optionalAccess',
|
|
3641
|
+
..._optionalChain([json, 'optionalAccess', _191 => _191.pnpm, 'optionalAccess', _192 => _192.overrides]),
|
|
3609
3642
|
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
3610
3643
|
}
|
|
3611
3644
|
}
|
|
3612
3645
|
}));
|
|
3613
3646
|
}
|
|
3614
3647
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
3615
|
-
joinPaths(normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
|
|
3648
|
+
_chunk3HI6WK3Mjs.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
|
|
3616
3649
|
]);
|
|
3617
|
-
_js.addTsConfigPath.call(void 0, tree, joinPaths(normalized.importPath, "/*"), [
|
|
3618
|
-
joinPaths(normalized.projectRoot, "./src", "/*")
|
|
3650
|
+
_js.addTsConfigPath.call(void 0, tree, _chunk3HI6WK3Mjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
3651
|
+
_chunk3HI6WK3Mjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
3619
3652
|
]);
|
|
3620
3653
|
if (tree.exists("package.json")) {
|
|
3621
3654
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
3622
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3655
|
+
if (_optionalChain([packageJson, 'optionalAccess', _193 => _193.repository])) {
|
|
3623
3656
|
repository = packageJson.repository;
|
|
3624
3657
|
}
|
|
3625
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3658
|
+
if (_optionalChain([packageJson, 'optionalAccess', _194 => _194.description])) {
|
|
3626
3659
|
description = packageJson.description;
|
|
3627
3660
|
}
|
|
3628
3661
|
}
|
|
3629
|
-
const tsconfigPath = joinPaths(normalized.projectRoot, "tsconfig.json");
|
|
3662
|
+
const tsconfigPath = _chunk3HI6WK3Mjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
3630
3663
|
if (tree.exists(tsconfigPath)) {
|
|
3631
3664
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
3632
3665
|
json.composite ??= true;
|
|
@@ -3654,7 +3687,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3654
3687
|
await _devkit.formatFiles.call(void 0, tree);
|
|
3655
3688
|
return null;
|
|
3656
3689
|
}
|
|
3657
|
-
|
|
3690
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, typeScriptLibraryGeneratorFn, "typeScriptLibraryGeneratorFn");
|
|
3658
3691
|
function getOutputPath(options) {
|
|
3659
3692
|
const parts = [
|
|
3660
3693
|
"dist"
|
|
@@ -3664,42 +3697,42 @@ function getOutputPath(options) {
|
|
|
3664
3697
|
} else {
|
|
3665
3698
|
parts.push(options.projectRoot);
|
|
3666
3699
|
}
|
|
3667
|
-
return joinPaths(...parts);
|
|
3700
|
+
return _chunk3HI6WK3Mjs.joinPaths.call(void 0, ...parts);
|
|
3668
3701
|
}
|
|
3669
|
-
|
|
3702
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, getOutputPath, "getOutputPath");
|
|
3670
3703
|
function createProjectTsConfigJson(tree, options) {
|
|
3671
3704
|
const tsconfig = {
|
|
3672
3705
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
3673
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3706
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _195 => _195.tsconfigOptions]), () => ( {})),
|
|
3674
3707
|
compilerOptions: {
|
|
3675
3708
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
3676
|
-
outDir: joinPaths(_devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
3709
|
+
outDir: _chunk3HI6WK3Mjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
3677
3710
|
noEmit: true,
|
|
3678
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3711
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _196 => _196.tsconfigOptions, 'optionalAccess', _197 => _197.compilerOptions]), () => ( {}))
|
|
3679
3712
|
},
|
|
3680
3713
|
files: [
|
|
3681
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3714
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _198 => _198.tsconfigOptions, 'optionalAccess', _199 => _199.files]), () => ( []))
|
|
3682
3715
|
],
|
|
3683
3716
|
include: [
|
|
3684
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3717
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _200 => _200.tsconfigOptions, 'optionalAccess', _201 => _201.include]), () => ( [])),
|
|
3685
3718
|
"src/**/*.ts",
|
|
3686
3719
|
"src/**/*.js",
|
|
3687
3720
|
"bin/**/*"
|
|
3688
3721
|
],
|
|
3689
3722
|
exclude: [
|
|
3690
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3723
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _202 => _202.tsconfigOptions, 'optionalAccess', _203 => _203.exclude]), () => ( [])),
|
|
3691
3724
|
"jest.config.ts",
|
|
3692
3725
|
"src/**/*.spec.ts",
|
|
3693
3726
|
"src/**/*.test.ts"
|
|
3694
3727
|
]
|
|
3695
3728
|
};
|
|
3696
|
-
_devkit.writeJson.call(void 0, tree, joinPaths(options.projectRoot, "tsconfig.json"), tsconfig);
|
|
3729
|
+
_devkit.writeJson.call(void 0, tree, _chunk3HI6WK3Mjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
3697
3730
|
}
|
|
3698
|
-
|
|
3731
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
3699
3732
|
async function normalizeOptions(tree, options, config) {
|
|
3700
3733
|
let importPath = options.importPath;
|
|
3701
|
-
if (!importPath && _optionalChain([config, 'optionalAccess',
|
|
3702
|
-
importPath = `@${_optionalChain([config, 'optionalAccess',
|
|
3734
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _204 => _204.namespace])) {
|
|
3735
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _205 => _205.namespace])}/${options.name}`;
|
|
3703
3736
|
}
|
|
3704
3737
|
if (options.publishable) {
|
|
3705
3738
|
if (!importPath) {
|
|
@@ -3745,14 +3778,15 @@ async function normalizeOptions(tree, options, config) {
|
|
|
3745
3778
|
projectRoot,
|
|
3746
3779
|
parsedTags: options.tags ? options.tags.split(",").map((s) => s.trim()) : [],
|
|
3747
3780
|
importPath: normalizedImportPath,
|
|
3748
|
-
rootProject
|
|
3781
|
+
rootProject,
|
|
3782
|
+
shouldUseSwcJest: false
|
|
3749
3783
|
};
|
|
3750
3784
|
}
|
|
3751
|
-
|
|
3785
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, normalizeOptions, "normalizeOptions");
|
|
3752
3786
|
|
|
3753
3787
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3754
3788
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
3755
|
-
const filesDir = joinPaths(__dirname, "src", "generators", "browser-library", "files");
|
|
3789
|
+
const filesDir = _chunk3HI6WK3Mjs.joinPaths.call(void 0, __dirname, "src", "generators", "browser-library", "files");
|
|
3756
3790
|
const tsLibraryGeneratorOptions = {
|
|
3757
3791
|
buildExecutor: "@storm-software/workspace-tools:unbuild",
|
|
3758
3792
|
platform: "browser",
|
|
@@ -3809,10 +3843,10 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
3809
3843
|
await _devkit.formatFiles.call(void 0, tree);
|
|
3810
3844
|
return null;
|
|
3811
3845
|
}
|
|
3812
|
-
|
|
3846
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, browserLibraryGeneratorFn, "browserLibraryGeneratorFn");
|
|
3813
3847
|
var generator_default = withRunGenerator("TypeScript Library Creator (Browser Platform)", browserLibraryGeneratorFn, {
|
|
3814
3848
|
hooks: {
|
|
3815
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3849
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (options) => {
|
|
3816
3850
|
options.description ??= "A library used by Storm Software to support browser applications";
|
|
3817
3851
|
options.platform ??= "browser";
|
|
3818
3852
|
return options;
|
|
@@ -3821,16 +3855,17 @@ var generator_default = withRunGenerator("TypeScript Library Creator (Browser Pl
|
|
|
3821
3855
|
});
|
|
3822
3856
|
|
|
3823
3857
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
3858
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
3824
3859
|
|
|
3825
3860
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
3826
3861
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
3827
|
-
writeInfo("\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
|
|
3828
|
-
writeTrace(`Determining the Storm Configuration JSON Schema...`, config);
|
|
3862
|
+
writeInfo("\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
|
|
3863
|
+
writeTrace(`Determining the Storm Workspace Configuration JSON Schema...`, config);
|
|
3829
3864
|
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, StormConfigSchema, {
|
|
3830
3865
|
name: "StormWorkspaceConfiguration"
|
|
3831
3866
|
});
|
|
3832
3867
|
writeTrace(jsonSchema, config);
|
|
3833
|
-
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
3868
|
+
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _206 => _206.workspaceRoot]), () => ( findWorkspaceRoot())), _optionalChain([options, 'access', _207 => _207.outputFile, 'optionalAccess', _208 => _208.startsWith, 'call', _209 => _209("./")]) ? "" : "./");
|
|
3834
3869
|
writeTrace(`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
3835
3870
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
3836
3871
|
spaces: 2
|
|
@@ -3841,10 +3876,10 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
3841
3876
|
success: true
|
|
3842
3877
|
};
|
|
3843
3878
|
}
|
|
3844
|
-
|
|
3879
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, configSchemaGeneratorFn, "configSchemaGeneratorFn");
|
|
3845
3880
|
var generator_default2 = withRunGenerator("Configuration Schema Creator", configSchemaGeneratorFn, {
|
|
3846
3881
|
hooks: {
|
|
3847
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3882
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (options) => {
|
|
3848
3883
|
options.outputFile ??= "{workspaceRoot}/storm-workspace.schema.json";
|
|
3849
3884
|
return options;
|
|
3850
3885
|
}, "applyDefaultOptions")
|
|
@@ -3852,6 +3887,7 @@ var generator_default2 = withRunGenerator("Configuration Schema Creator", config
|
|
|
3852
3887
|
});
|
|
3853
3888
|
|
|
3854
3889
|
// ../workspace-tools/src/generators/init/init.ts
|
|
3890
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
3855
3891
|
|
|
3856
3892
|
async function initGenerator(tree, schema) {
|
|
3857
3893
|
const task = _devkit.addDependenciesToPackageJson.call(void 0, tree, {
|
|
@@ -3870,12 +3906,13 @@ async function initGenerator(tree, schema) {
|
|
|
3870
3906
|
}
|
|
3871
3907
|
return task;
|
|
3872
3908
|
}
|
|
3873
|
-
|
|
3909
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, initGenerator, "initGenerator");
|
|
3874
3910
|
|
|
3875
3911
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
3912
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
3876
3913
|
|
|
3877
3914
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
3878
|
-
const filesDir = joinPaths(__dirname, "src", "generators", "neutral-library", "files");
|
|
3915
|
+
const filesDir = _chunk3HI6WK3Mjs.joinPaths.call(void 0, __dirname, "src", "generators", "neutral-library", "files");
|
|
3879
3916
|
const tsLibraryGeneratorOptions = {
|
|
3880
3917
|
...schema,
|
|
3881
3918
|
platform: "neutral",
|
|
@@ -3904,10 +3941,10 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
3904
3941
|
await _devkit.formatFiles.call(void 0, tree);
|
|
3905
3942
|
return null;
|
|
3906
3943
|
}
|
|
3907
|
-
|
|
3944
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, neutralLibraryGeneratorFn, "neutralLibraryGeneratorFn");
|
|
3908
3945
|
var generator_default3 = withRunGenerator("TypeScript Library Creator (Neutral Platform)", neutralLibraryGeneratorFn, {
|
|
3909
3946
|
hooks: {
|
|
3910
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3947
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (options) => {
|
|
3911
3948
|
options.description ??= "A library used by Storm Software to support either browser or NodeJs applications";
|
|
3912
3949
|
options.platform = "neutral";
|
|
3913
3950
|
return options;
|
|
@@ -3916,9 +3953,10 @@ var generator_default3 = withRunGenerator("TypeScript Library Creator (Neutral P
|
|
|
3916
3953
|
});
|
|
3917
3954
|
|
|
3918
3955
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
3956
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
3919
3957
|
|
|
3920
3958
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
3921
|
-
const filesDir = joinPaths(__dirname, "src", "generators", "node-library", "files");
|
|
3959
|
+
const filesDir = _chunk3HI6WK3Mjs.joinPaths.call(void 0, __dirname, "src", "generators", "node-library", "files");
|
|
3922
3960
|
const tsLibraryGeneratorOptions = {
|
|
3923
3961
|
platform: "node",
|
|
3924
3962
|
devDependencies: {
|
|
@@ -3951,10 +3989,10 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
|
3951
3989
|
await _devkit.formatFiles.call(void 0, tree);
|
|
3952
3990
|
return null;
|
|
3953
3991
|
}
|
|
3954
|
-
|
|
3992
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, nodeLibraryGeneratorFn, "nodeLibraryGeneratorFn");
|
|
3955
3993
|
var generator_default4 = withRunGenerator("TypeScript Library Creator (NodeJs Platform)", nodeLibraryGeneratorFn, {
|
|
3956
3994
|
hooks: {
|
|
3957
|
-
applyDefaultOptions: /* @__PURE__ */
|
|
3995
|
+
applyDefaultOptions: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (options) => {
|
|
3958
3996
|
options.description ??= "A library used by Storm Software to support NodeJs applications";
|
|
3959
3997
|
options.platform ??= "node";
|
|
3960
3998
|
return options;
|
|
@@ -3963,6 +4001,7 @@ var generator_default4 = withRunGenerator("TypeScript Library Creator (NodeJs Pl
|
|
|
3963
4001
|
});
|
|
3964
4002
|
|
|
3965
4003
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
4004
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
3966
4005
|
|
|
3967
4006
|
|
|
3968
4007
|
async function presetGeneratorFn(tree, options) {
|
|
@@ -4184,15 +4223,23 @@ async function presetGeneratorFn(tree, options) {
|
|
|
4184
4223
|
await Promise.resolve(_devkit.addDependenciesToPackageJson.call(void 0, tree, dependencies, {}, _devkit.joinPathFragments.call(void 0, projectRoot, "package.json")));
|
|
4185
4224
|
return null;
|
|
4186
4225
|
}
|
|
4187
|
-
|
|
4226
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, presetGeneratorFn, "presetGeneratorFn");
|
|
4188
4227
|
var generator_default5 = withRunGenerator("Storm Workspace Preset Generator", presetGeneratorFn);
|
|
4189
4228
|
|
|
4190
4229
|
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
4230
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
4191
4231
|
|
|
4192
4232
|
var _resolvelocalpackagedependencies = require('@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies');
|
|
4193
4233
|
var _updatelockfile = require('@nx/js/src/generators/release-version/utils/update-lock-file');
|
|
4194
4234
|
|
|
4235
|
+
// ../git-tools/src/index.ts
|
|
4236
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
4237
|
+
|
|
4238
|
+
// ../git-tools/src/commit/config.ts
|
|
4239
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
4240
|
+
|
|
4195
4241
|
// ../git-tools/src/types.ts
|
|
4242
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
4196
4243
|
var RuleConfigSeverity;
|
|
4197
4244
|
(function(RuleConfigSeverity2) {
|
|
4198
4245
|
RuleConfigSeverity2[RuleConfigSeverity2["Disabled"] = 0] = "Disabled";
|
|
@@ -4201,8 +4248,12 @@ var RuleConfigSeverity;
|
|
|
4201
4248
|
})(RuleConfigSeverity || (RuleConfigSeverity = {}));
|
|
4202
4249
|
|
|
4203
4250
|
// ../git-tools/src/release/changelog-renderer.ts
|
|
4251
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
4204
4252
|
var _index = require('nx/release/changelog-renderer/index'); var _index2 = _interopRequireDefault(_index);
|
|
4205
4253
|
|
|
4254
|
+
// ../git-tools/src/release/config.ts
|
|
4255
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
4256
|
+
|
|
4206
4257
|
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
4207
4258
|
|
|
4208
4259
|
|
|
@@ -4214,7 +4265,11 @@ var _version = require('nx/src/command-line/release/version');
|
|
|
4214
4265
|
var _utils = require('nx/src/tasks-runner/utils');
|
|
4215
4266
|
var _semver3 = require('semver');
|
|
4216
4267
|
|
|
4268
|
+
// ../workspace-tools/src/base/index.ts
|
|
4269
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
4270
|
+
|
|
4217
4271
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
4272
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
4218
4273
|
var _untyped = require('untyped');
|
|
4219
4274
|
var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4220
4275
|
$schema: {
|
|
@@ -4234,6 +4289,7 @@ var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4234
4289
|
});
|
|
4235
4290
|
|
|
4236
4291
|
// ../workspace-tools/src/base/base-generator.untyped.ts
|
|
4292
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
4237
4293
|
|
|
4238
4294
|
var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4239
4295
|
$schema: {
|
|
@@ -4251,6 +4307,7 @@ var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
|
4251
4307
|
});
|
|
4252
4308
|
|
|
4253
4309
|
// ../workspace-tools/src/base/cargo-base-executor.untyped.ts
|
|
4310
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
4254
4311
|
|
|
4255
4312
|
var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4256
4313
|
...base_executor_untyped_default,
|
|
@@ -4337,6 +4394,7 @@ var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void
|
|
|
4337
4394
|
});
|
|
4338
4395
|
|
|
4339
4396
|
// ../workspace-tools/src/base/typescript-build-executor.untyped.ts
|
|
4397
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
4340
4398
|
|
|
4341
4399
|
var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4342
4400
|
...base_executor_untyped_default,
|
|
@@ -4441,7 +4499,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
4441
4499
|
]
|
|
4442
4500
|
},
|
|
4443
4501
|
$default: "esnext",
|
|
4444
|
-
$resolve: /* @__PURE__ */
|
|
4502
|
+
$resolve: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (val = "esnext") => val.toLowerCase(), "$resolve")
|
|
4445
4503
|
},
|
|
4446
4504
|
format: {
|
|
4447
4505
|
$schema: {
|
|
@@ -4457,7 +4515,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
4457
4515
|
]
|
|
4458
4516
|
}
|
|
4459
4517
|
},
|
|
4460
|
-
$resolve: /* @__PURE__ */
|
|
4518
|
+
$resolve: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (val = [
|
|
4461
4519
|
"cjs",
|
|
4462
4520
|
"esm"
|
|
4463
4521
|
]) => [].concat(val), "$resolve")
|
|
@@ -4481,7 +4539,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
4481
4539
|
type: "array",
|
|
4482
4540
|
description: "The external dependencies"
|
|
4483
4541
|
},
|
|
4484
|
-
$resolve: /* @__PURE__ */
|
|
4542
|
+
$resolve: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (val = []) => [].concat(val), "$resolve")
|
|
4485
4543
|
},
|
|
4486
4544
|
define: {
|
|
4487
4545
|
$schema: {
|
|
@@ -4490,7 +4548,7 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
4490
4548
|
tsType: "Record<string, string>",
|
|
4491
4549
|
description: "The define values"
|
|
4492
4550
|
},
|
|
4493
|
-
$resolve: /* @__PURE__ */
|
|
4551
|
+
$resolve: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (val = {}) => val, "$resolve"),
|
|
4494
4552
|
$default: {}
|
|
4495
4553
|
},
|
|
4496
4554
|
env: {
|
|
@@ -4500,12 +4558,13 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
|
|
|
4500
4558
|
tsType: "Record<string, string>",
|
|
4501
4559
|
description: "The environment variable values"
|
|
4502
4560
|
},
|
|
4503
|
-
$resolve: /* @__PURE__ */
|
|
4561
|
+
$resolve: /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, (val = {}) => val, "$resolve"),
|
|
4504
4562
|
$default: {}
|
|
4505
4563
|
}
|
|
4506
4564
|
});
|
|
4507
4565
|
|
|
4508
4566
|
// ../workspace-tools/src/base/typescript-library-generator.untyped.ts
|
|
4567
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
4509
4568
|
|
|
4510
4569
|
var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4511
4570
|
...base_generator_untyped_default,
|
|
@@ -4625,13 +4684,25 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
|
|
|
4625
4684
|
}
|
|
4626
4685
|
});
|
|
4627
4686
|
|
|
4687
|
+
// ../workspace-tools/src/types.ts
|
|
4688
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
4689
|
+
|
|
4690
|
+
// ../workspace-tools/src/utils/index.ts
|
|
4691
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
4692
|
+
|
|
4693
|
+
// ../workspace-tools/src/utils/apply-workspace-tokens.ts
|
|
4694
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
4695
|
+
|
|
4628
4696
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
4697
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
4629
4698
|
|
|
4630
4699
|
|
|
4631
4700
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
4701
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
4632
4702
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
4633
4703
|
|
|
4634
4704
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
4705
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
4635
4706
|
|
|
4636
4707
|
|
|
4637
4708
|
|
|
@@ -4646,16 +4717,19 @@ var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE
|
|
|
4646
4717
|
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
4647
4718
|
|
|
4648
4719
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
4720
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
4649
4721
|
|
|
4650
4722
|
|
|
4651
4723
|
|
|
4652
4724
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
4725
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
4653
4726
|
|
|
4654
4727
|
|
|
4655
4728
|
|
|
4656
4729
|
|
|
4657
4730
|
|
|
4658
4731
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
4732
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
4659
4733
|
var _transform = require('typia/lib/transform'); var _transform2 = _interopRequireDefault(_transform);
|
|
4660
4734
|
|
|
4661
4735
|
// src/generators/init/generator.ts
|
|
@@ -4667,7 +4741,7 @@ async function initGeneratorFn(tree, options, config) {
|
|
|
4667
4741
|
}
|
|
4668
4742
|
return task;
|
|
4669
4743
|
}
|
|
4670
|
-
|
|
4744
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, initGeneratorFn, "initGeneratorFn");
|
|
4671
4745
|
var generator_default6 = withRunGenerator("Initialize Storm Projen workspace", initGeneratorFn);
|
|
4672
4746
|
function addProjenDeps(tree, options) {
|
|
4673
4747
|
return () => {
|
|
@@ -4678,7 +4752,7 @@ function addProjenDeps(tree, options) {
|
|
|
4678
4752
|
}
|
|
4679
4753
|
};
|
|
4680
4754
|
}
|
|
4681
|
-
|
|
4755
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, addProjenDeps, "addProjenDeps");
|
|
4682
4756
|
|
|
4683
4757
|
|
|
4684
4758
|
|