@shell-shock/nx 0.0.82 → 0.0.84

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.
Files changed (76) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/base/base-executor.schema.d.ts +9 -0
  3. package/dist/base/base-executor.schema.json +8 -0
  4. package/dist/base-executor-B48XZipC.js +27 -0
  5. package/dist/base-executor-ChtjGl_i.mjs +23 -0
  6. package/dist/base-executor-ChtjGl_i.mjs.map +1 -0
  7. package/dist/chunk-C_NdSu1c.js +34 -0
  8. package/dist/executors/build/executor.d.mts +8 -0
  9. package/dist/executors/build/executor.d.mts.map +1 -1
  10. package/dist/executors/build/executor.d.ts +8 -0
  11. package/dist/executors/build/executor.d.ts.map +1 -1
  12. package/dist/executors/build/executor.js +4 -4
  13. package/dist/executors/build/executor.mjs +2 -3
  14. package/dist/executors/build/executor.mjs.map +1 -1
  15. package/dist/executors/build/schema.d.ts +9 -0
  16. package/dist/executors/build/schema.json +8 -0
  17. package/dist/executors/clean/executor.d.mts +8 -0
  18. package/dist/executors/clean/executor.d.mts.map +1 -1
  19. package/dist/executors/clean/executor.d.ts +8 -0
  20. package/dist/executors/clean/executor.d.ts.map +1 -1
  21. package/dist/executors/clean/executor.js +2 -3
  22. package/dist/executors/clean/executor.mjs +2 -3
  23. package/dist/executors/clean/executor.mjs.map +1 -1
  24. package/dist/executors/clean/schema.d.ts +9 -0
  25. package/dist/executors/clean/schema.json +8 -0
  26. package/dist/executors/docs/executor.d.mts +8 -0
  27. package/dist/executors/docs/executor.d.mts.map +1 -1
  28. package/dist/executors/docs/executor.d.ts +8 -0
  29. package/dist/executors/docs/executor.d.ts.map +1 -1
  30. package/dist/executors/docs/executor.js +2 -4
  31. package/dist/executors/docs/executor.mjs +2 -3
  32. package/dist/executors/docs/executor.mjs.map +1 -1
  33. package/dist/executors/docs/schema.d.ts +9 -0
  34. package/dist/executors/docs/schema.json +8 -0
  35. package/dist/executors/lint/executor.d.mts +8 -0
  36. package/dist/executors/lint/executor.d.mts.map +1 -1
  37. package/dist/executors/lint/executor.d.ts +8 -0
  38. package/dist/executors/lint/executor.d.ts.map +1 -1
  39. package/dist/executors/lint/executor.js +2 -4
  40. package/dist/executors/lint/executor.mjs +2 -3
  41. package/dist/executors/lint/executor.mjs.map +1 -1
  42. package/dist/executors/lint/schema.d.ts +9 -0
  43. package/dist/executors/lint/schema.json +8 -0
  44. package/dist/executors/prepare/executor.d.mts +8 -0
  45. package/dist/executors/prepare/executor.d.mts.map +1 -1
  46. package/dist/executors/prepare/executor.d.ts +8 -0
  47. package/dist/executors/prepare/executor.d.ts.map +1 -1
  48. package/dist/executors/prepare/executor.js +4 -4
  49. package/dist/executors/prepare/executor.mjs +2 -3
  50. package/dist/executors/prepare/executor.mjs.map +1 -1
  51. package/dist/executors/prepare/schema.d.ts +9 -0
  52. package/dist/executors/prepare/schema.json +8 -0
  53. package/dist/index.d.mts +16 -20
  54. package/dist/index.d.mts.map +1 -1
  55. package/dist/index.d.ts +17 -20
  56. package/dist/index.d.ts.map +1 -1
  57. package/dist/index.js +3 -2
  58. package/dist/index.mjs +1 -1
  59. package/dist/index.mjs.map +1 -1
  60. package/dist/plugin/index.d.mts +2 -287
  61. package/dist/plugin/index.d.mts.map +1 -1
  62. package/dist/plugin/index.d.ts +2 -287
  63. package/dist/plugin/index.d.ts.map +1 -1
  64. package/dist/plugin/index.js +55 -892
  65. package/dist/plugin/index.mjs +55 -892
  66. package/dist/plugin/index.mjs.map +1 -1
  67. package/docs/api/base-executor.schema.md +10 -0
  68. package/docs/api/build/schema.md +10 -0
  69. package/docs/api/clean/schema.md +10 -0
  70. package/docs/api/docs/schema.md +10 -0
  71. package/docs/api/lint/schema.md +10 -0
  72. package/docs/api/prepare/schema.md +10 -0
  73. package/package.json +22 -23
  74. package/dist/base-executor-BKs5qTWJ.js +0 -117
  75. package/dist/base-executor-DUy51uSh.mjs +0 -79
  76. package/dist/base-executor-DUy51uSh.mjs.map +0 -1
@@ -1,25 +1,22 @@
1
+ import { kebabCase } from "@stryke/string-format/kebab-case";
2
+ import { titleCase } from "@stryke/string-format/title-case";
1
3
  import { isError } from "@stryke/type-checks/is-error";
4
+ import { isSetObject } from "@stryke/type-checks/is-set-object";
2
5
  import defu from "defu";
3
- import { createJiti } from "jiti";
4
6
  import { createNodesFromFiles } from "@nx/devkit";
5
7
  import { withNamedInputs } from "@storm-software/workspace-tools/utils/nx-json";
6
8
  import { getProjectConfigFromProjectRoot, getProjectRoot, getRoot } from "@storm-software/workspace-tools/utils/plugin-helpers";
7
9
  import { addProjectTag, setDefaultProjectTags } from "@storm-software/workspace-tools/utils/project-tags";
10
+ import { joinPaths } from "@stryke/path/join-paths";
8
11
  import os from "node:os";
9
12
  import path from "node:path";
10
13
  import { existsSync } from "node:fs";
11
14
  import { readFile } from "node:fs/promises";
12
- import { murmurhash } from "@stryke/hash";
13
- import { joinPaths } from "@stryke/path/join-paths";
14
- import { camelCase } from "@stryke/string-format/camel-case";
15
- import { kebabCase } from "@stryke/string-format/kebab-case";
16
- import { titleCase } from "@stryke/string-format/title-case";
17
- import { isSetObject } from "@stryke/type-checks/is-set-object";
18
15
  import { isSetString } from "@stryke/type-checks/is-set-string";
19
16
  import { readNxJson } from "nx/src/config/nx-json.js";
20
17
  import { readTargetsFromPackageJson } from "nx/src/utils/package-json.js";
21
18
 
22
- //#region ../../node_modules/.pnpm/@powerlines+nx@0.13.39_fc99eff9622fa5d3f6bd2e5db9585b9b/node_modules/@powerlines/nx/dist/src/helpers/constants.mjs
19
+ //#region ../../node_modules/.pnpm/@powerlines+nx@0.13.163_9456f17d791dfffcdb67c022b29fb589/node_modules/@powerlines/nx/dist/src/helpers/constants.mjs
23
20
  /**
24
21
  * A list of Nx input strings that describe the Powerlines configuration file
25
22
  */
@@ -51,7 +48,7 @@ const CONFIG_INPUTS = [
51
48
  ];
52
49
 
53
50
  //#endregion
54
- //#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/ci-checks.mjs
51
+ //#region ../../node_modules/.pnpm/@stryke+env@0.20.102_@nx+jest@22.7.5_@babel+traverse@7.29.7_@swc-node+register@1.11.1_@_506406da618bb04e125369d0dfadeb01/node_modules/@stryke/env/dist/ci-checks.mjs
55
52
  /**
56
53
  * Returns true if the current environment is a CI environment.
57
54
  *
@@ -62,7 +59,7 @@ const isCI = (env = process.env) => {
62
59
  };
63
60
 
64
61
  //#endregion
65
- //#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/environment-checks.mjs
62
+ //#region ../../node_modules/.pnpm/@stryke+env@0.20.102_@nx+jest@22.7.5_@babel+traverse@7.29.7_@swc-node+register@1.11.1_@_506406da618bb04e125369d0dfadeb01/node_modules/@stryke/env/dist/environment-checks.mjs
66
63
  /** Value of process.platform */
67
64
  const platform = process?.platform || "";
68
65
  /** Detect if stdout.TTY is available */
@@ -83,7 +80,7 @@ const isStaging = [
83
80
  * @param mode - The mode string to check.
84
81
  * @returns Whether the environment is production
85
82
  */
86
- function isProductionMode(mode$1) {
83
+ function isProductionMode(mode) {
87
84
  return [
88
85
  "prd",
89
86
  "prod",
@@ -91,7 +88,7 @@ function isProductionMode(mode$1) {
91
88
  "preprod",
92
89
  "preproduction",
93
90
  "uat"
94
- ].includes(mode$1?.toLowerCase()?.replace(/[\s\-_]/g, ""));
91
+ ].includes(mode?.toLowerCase()?.replace(/[\s\-_]/g, ""));
95
92
  }
96
93
  /** Detect if `NODE_ENV` environment variable is `production` */
97
94
  const isProduction = isProductionMode(mode);
@@ -101,7 +98,7 @@ const isProduction = isProductionMode(mode);
101
98
  * @param mode - The mode string to check.
102
99
  * @returns Whether the environment is test
103
100
  */
104
- function isTestMode(mode$1) {
101
+ function isTestMode(mode) {
105
102
  return [
106
103
  "tst",
107
104
  "test",
@@ -111,7 +108,7 @@ function isTestMode(mode$1) {
111
108
  "staging",
112
109
  "qa",
113
110
  "qualityassurance"
114
- ].includes(mode$1?.toLowerCase()?.replace(/[\s\-_]/g, ""));
111
+ ].includes(mode?.toLowerCase()?.replace(/[\s\-_]/g, ""));
115
112
  }
116
113
  /** Detect if `NODE_ENV` environment variable is `test` */
117
114
  const isTest = isTestMode(mode) || isStaging || Boolean(process.env.TEST);
@@ -121,13 +118,13 @@ const isTest = isTestMode(mode) || isStaging || Boolean(process.env.TEST);
121
118
  * @param mode - The mode string to check.
122
119
  * @returns Whether the environment is development
123
120
  */
124
- function isDevelopmentMode(mode$1) {
121
+ function isDevelopmentMode(mode) {
125
122
  return [
126
123
  "dev",
127
124
  "development",
128
125
  "int",
129
126
  "integration"
130
- ].includes(mode$1?.toLowerCase()?.replace(/[\s\-_]/g, ""));
127
+ ].includes(mode?.toLowerCase()?.replace(/[\s\-_]/g, ""));
131
128
  }
132
129
  /** Detect if `NODE_ENV` environment variable is `dev` or `development` */
133
130
  const isDevelopment = isDevelopmentMode(mode) || isDebug;
@@ -146,846 +143,39 @@ const nodeVersion = (process?.versions?.node || "").replace(/^v/, "") || null;
146
143
  const nodeMajorVersion = Number(nodeVersion?.split(".")[0]) || null;
147
144
 
148
145
  //#endregion
149
- //#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/path/src/regex.mjs
150
- const DRIVE_LETTER_START_REGEX = /^[A-Z]:\//i;
151
- const DRIVE_LETTER_REGEX = /^[A-Z]:$/i;
152
- const UNC_REGEX = /^[/\\]{2}/;
153
- const ABSOLUTE_PATH_REGEX = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^~[/\\]|^[A-Z]:[/\\]/i;
154
-
155
- //#endregion
156
- //#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/path/src/slash.mjs
157
- /**
158
- * Replace backslash to slash
159
- *
160
- * @param path - The string to replace
161
- * @returns The string with replaced backslashes
162
- */
163
- function slash(path) {
164
- if (path.startsWith("\\\\?\\")) return path;
165
- return path.replace(/\\/g, "/");
166
- }
167
-
168
- //#endregion
169
- //#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/path/src/is-type.mjs
170
- /**
171
- * Check if the path is an absolute path.
172
- *
173
- * @param path - The path to check
174
- * @returns An indicator specifying if the path is an absolute path
175
- */
176
- function isAbsolutePath(path) {
177
- return ABSOLUTE_PATH_REGEX.test(slash(path));
178
- }
179
- /**
180
- * Check if the path is an absolute path.
181
- *
182
- * @remarks
183
- * This is an alias for {@link isAbsolutePath}.
184
- *
185
- * @param path - The path to check
186
- * @returns An indicator specifying if the path is an absolute path
187
- */
188
- function isAbsolute(path) {
189
- return isAbsolutePath(path);
190
- }
191
-
192
- //#endregion
193
- //#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/path/src/join-paths.mjs
194
- function normalizeWindowsPath(input = "") {
195
- if (!input) return input;
196
- return input.replace(/\\/g, "/").replace(DRIVE_LETTER_START_REGEX, (r) => r.toUpperCase());
197
- }
198
- function correctPaths(path) {
199
- if (!path || path.length === 0) return ".";
200
- path = normalizeWindowsPath(path);
201
- const isUNCPath = path.match(UNC_REGEX);
202
- const isPathAbsolute = isAbsolute(path);
203
- const trailingSeparator = path[path.length - 1] === "/";
204
- path = normalizeString(path, !isPathAbsolute);
205
- if (path.length === 0) {
206
- if (isPathAbsolute) return "/";
207
- return trailingSeparator ? "./" : ".";
208
- }
209
- if (trailingSeparator) path += "/";
210
- if (DRIVE_LETTER_REGEX.test(path)) path += "/";
211
- if (isUNCPath) {
212
- if (!isPathAbsolute) return `//./${path}`;
213
- return `//${path}`;
214
- }
215
- return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
216
- }
217
- /**
218
- * Joins all given path segments together using the platform-specific separator as a delimiter.
219
- *
220
- * @remarks
221
- * Multiple segments can be provided as separate arguments. The resulting path is normalized to remove any redundant or unnecessary segments.
222
- *
223
- * @example
224
- * ```ts
225
- * import { joinPaths } from 'stryke/path';
226
- *
227
- * const fullPath = joinPaths('folder1', 'folder2', '..', 'folder3', 'file.txt');
228
- * console.log(fullPath); // Output: 'folder1/folder3/file.txt'
229
- *
230
- * const absolutePath = joinPaths('/root', 'folder', '.', 'subfolder', 'file.txt');
231
- * console.log(absolutePath); // Output: '/root/folder/subfolder/file.txt'
232
- *
233
- * const windowsPath = joinPaths('C:\\', 'Users', 'Public', '..', 'Documents', 'file.txt');
234
- * console.log(windowsPath); // Output: 'C:/Users/Documents/file.txt'
235
- *
236
- * const uncPath = joinPaths('\\\\Server\\Share', 'Folder', 'File.txt');
237
- * console.log(uncPath); // Output: '//Server/Share/Folder/File.txt'
238
- * ```
239
- *
240
- * @param segments - The path segments to join.
241
- * @returns The joined and normalized path string.
242
- */
243
- function joinPaths$1(...segments) {
244
- let result = "";
245
- for (const segment of segments) if (segment && slash(segment).replaceAll(/\//g, "") !== ".") {
246
- if (result) if (slash(segment).replaceAll(/\//g, "") === "..") result = slash(result).replace(/\/+$/, "").replace(/\/*[^/]+$/, "");
247
- else result = `${slash(result).replace(/\/+$/, "")}/${slash(segment).replace(/^\/+/, "")}`;
248
- else if (slash(segment).replaceAll(/\//g, "") !== "..") result = segment;
249
- }
250
- return correctPaths(result);
251
- }
252
- /**
253
- * Resolves a string path, resolving '.' and '.' segments and allowing paths above the root.
254
- *
255
- * @param path - The path to normalize.
256
- * @param allowAboveRoot - Whether to allow the resulting path to be above the root directory.
257
- * @returns the normalized path string.
258
- */
259
- function normalizeString(path, allowAboveRoot) {
260
- let res = "";
261
- let lastSegmentLength = 0;
262
- let lastSlash = -1;
263
- let dots = 0;
264
- let char = null;
265
- for (let index = 0; index <= path.length; ++index) {
266
- if (index < path.length) char = path[index];
267
- else if (char === "/") break;
268
- else char = "/";
269
- if (char === "/") {
270
- if (lastSlash === index - 1 || dots === 1) {} else if (dots === 2) {
271
- if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
272
- if (res.length > 2) {
273
- const lastSlashIndex = res.lastIndexOf("/");
274
- if (lastSlashIndex === -1) {
275
- res = "";
276
- lastSegmentLength = 0;
277
- } else {
278
- res = res.slice(0, lastSlashIndex);
279
- lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
280
- }
281
- lastSlash = index;
282
- dots = 0;
283
- continue;
284
- } else if (res.length > 0) {
285
- res = "";
286
- lastSegmentLength = 0;
287
- lastSlash = index;
288
- dots = 0;
289
- continue;
290
- }
291
- }
292
- if (allowAboveRoot) {
293
- res += res.length > 0 ? "/.." : "..";
294
- lastSegmentLength = 2;
295
- }
296
- } else {
297
- if (res.length > 0) res += `/${path.slice(lastSlash + 1, index)}`;
298
- else res = path.slice(lastSlash + 1, index);
299
- lastSegmentLength = index - lastSlash - 1;
300
- }
301
- lastSlash = index;
302
- dots = 0;
303
- } else if (char === "." && dots !== -1) ++dots;
304
- else dots = -1;
305
- }
306
- return res;
307
- }
308
-
309
- //#endregion
310
- //#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/string-format/src/acronyms.mjs
311
- /**
312
- * A running list of common acronyms and their meanings.
313
- *
314
- * @remarks
315
- * This list is not exhaustive and may be updated over time.
316
- */
317
- const ACRONYMS = {
318
- "2D": {
319
- description: "Two-Dimensional",
320
- display: "2d"
321
- },
322
- "3D": {
323
- description: "Three-Dimensional",
324
- display: "3d"
325
- },
326
- "4D": {
327
- description: "Four-Dimensional",
328
- display: "4d"
329
- },
330
- "5G": { description: "Fifth Generation (mobile networks)" },
331
- "6G": { description: "Sixth Generation (mobile networks)" },
332
- "7G": { description: "Seventh Generation (mobile networks)" },
333
- "8G": { description: "Eighth Generation (mobile networks)" },
334
- ACID: { description: "Atomicity, Consistency, Isolation, Durability" },
335
- AITA: { description: "Am I The Asshole" },
336
- AES: { description: "Advanced Encryption Standard" },
337
- AI: { description: "Artificial Intelligence" },
338
- AJAX: { description: "Asynchronous JavaScript and XML" },
339
- API: { description: "Application Programming Interface" },
340
- AR: { description: "Augmented Reality" },
341
- ASCII: { description: "American Standard Code for Information Interchange" },
342
- ATF: { description: "Bureau of Alcohol, Tobacco, Firearms and Explosives" },
343
- ATM: { description: "Automated Teller Machine" },
344
- B2B: { description: "Business to Business" },
345
- B2C: { description: "Business to Consumer" },
346
- BATFE: { description: "Bureau of Alcohol, Tobacco, Firearms and Explosives" },
347
- BFF: { description: "Best Friends Forever" },
348
- BFFS: { description: "Best Friends Forever (plural)" },
349
- BI: { description: "Business Intelligence" },
350
- BIOS: { description: "Basic Input/Output System" },
351
- BGP: { description: "Border Gateway Protocol" },
352
- BOM: { description: "Bill of Materials / Byte Order Mark" },
353
- BSON: { description: "Binary JSON" },
354
- BYOD: { description: "Bring Your Own Device" },
355
- C2C: { description: "Consumer to Consumer" },
356
- CAGR: { description: "Compound Annual Growth Rate" },
357
- CAPTCHA: { description: "Completely Automated Public Turing test to tell Computers and Humans Apart" },
358
- CCTV: { description: "Closed-Circuit Television" },
359
- CD: { description: "Continuous Delivery / Compact Disc" },
360
- CDN: { description: "Content Delivery Network" },
361
- CDP: { description: "Customer Data Platform" },
362
- CDT: { description: "Central Daylight Time" },
363
- CIA: { description: "Central Intelligence Agency" },
364
- CI: { description: "Continuous Integration" },
365
- "CI/CD": { description: "Continuous Integration/Continuous Delivery" },
366
- CIAM: { description: "Customer Identity and Access Management" },
367
- CICD: {
368
- description: "Continuous Integration Continuous Delivery",
369
- display: "CI/CD"
370
- },
371
- CLI: { description: "Command Line Interface" },
372
- CMDB: { description: "Configuration Management Database" },
373
- CORS: { description: "Cross-Origin Resource Sharing" },
374
- CPA: { description: "Certified Public Accountant" },
375
- CPU: { description: "Central Processing Unit" },
376
- CRUD: { description: "Create, Read, Update, Delete" },
377
- CSR: { description: "Certificate Signing Request / Corporate Social Responsibility" },
378
- CSS: { description: "Cascading Style Sheets" },
379
- CST: { description: "Central Standard Time" },
380
- CTA: { description: "Call To Action" },
381
- CWD: { description: "Current Working Directory" },
382
- CX: { description: "Customer Experience" },
383
- DAG: { description: "Directed Acyclic Graph" },
384
- DBMS: { description: "Database Management System" },
385
- DDOS: {
386
- description: "Distributed Denial of Service",
387
- display: "DDoS"
388
- },
389
- DEA: { description: "Drug Enforcement Administration" },
390
- DEVENV: {
391
- description: "Devenv",
392
- display: "Devenv"
393
- },
394
- DEVOPS: {
395
- description: "Development Operations",
396
- display: "DevOps"
397
- },
398
- DHS: { description: "Department of Homeland Security" },
399
- DEST: { description: "Destination" },
400
- DESTDIR: { description: "Destination Directory" },
401
- DESTPATH: { description: "Destination Path" },
402
- DIRENV: {
403
- description: "DirEnv",
404
- display: "DirEnv"
405
- },
406
- DNC: { description: "Democratic National Committee / Do Not Call" },
407
- DNS: { description: "Domain Name System" },
408
- DNSSEC: { description: "Domain Name System Security Extensions" },
409
- DOD: {
410
- description: "Department of Defense",
411
- display: "DoD"
412
- },
413
- DOJ: {
414
- description: "Department of Justice",
415
- display: "DoJ"
416
- },
417
- DOM: { description: "Document Object Model" },
418
- DOT: {
419
- description: "Department of Transportation",
420
- display: "DoT"
421
- },
422
- DOTENV: {
423
- description: "Dotenv (.env)",
424
- display: "Dotenv"
425
- },
426
- DR: { description: "Disaster Recovery" },
427
- DRM: { description: "Digital Rights Management" },
428
- DSN: { description: "Data Source Name" },
429
- DWH: { description: "Data Warehouse" },
430
- E2E: { description: "End to End" },
431
- EAI: { description: "Enterprise Application Integration" },
432
- EDT: { description: "Eastern Daylight Time" },
433
- EEA: { description: "European Economic Area" },
434
- EKS: { description: "Elastic Kubernetes Service" },
435
- EOF: { description: "End Of File" },
436
- EOD: { description: "End Of Day / Explosive Ordnance Disposal" },
437
- EPA: { description: "Environmental Protection Agency" },
438
- ER: { description: "Emergency Room / Entity Relationship" },
439
- EST: { description: "Eastern Standard Time" },
440
- ETC: { description: "Et Cetera" },
441
- ETL: { description: "Extract, Transform, Load" },
442
- EULA: { description: "End User License Agreement" },
443
- FAAS: {
444
- description: "Function as a Service",
445
- display: "FaaS"
446
- },
447
- FAQ: {
448
- description: "Frequently Asked Questions",
449
- display: "FAQs"
450
- },
451
- FAQS: { description: "Frequently Asked Questions" },
452
- FBI: { description: "Federal Bureau of Investigation" },
453
- FCC: { description: "Federal Communications Commission" },
454
- FDA: { description: "Food and Drug Administration" },
455
- FIDO: { description: "Fast IDentity Online" },
456
- FLOTUS: { description: "First Lady of the United States" },
457
- FQDN: { description: "Fully Qualified Domain Name" },
458
- FTC: { description: "Federal Trade Commission" },
459
- FTP: { description: "File Transfer Protocol" },
460
- GC: { description: "Garbage Collection" },
461
- GCP: { description: "Google Cloud Platform" },
462
- GDPR: { description: "General Data Protection Regulation" },
463
- GMT: { description: "Greenwich Mean Time" },
464
- GOP: { description: "Grand Old Party" },
465
- GPU: { description: "Graphics Processing Unit" },
466
- GUID: { description: "Globally Unique Identifier" },
467
- GUI: { description: "Graphical User Interface" },
468
- GZIP: { description: "GNU Zip" },
469
- HCI: { description: "Human Computer Interaction / Hyper-Converged Infrastructure" },
470
- HDD: { description: "Hard Disk Drive" },
471
- HDFS: { description: "Hadoop Distributed File System" },
472
- HHS: { description: "Health and Human Services" },
473
- HIPAA: { description: "Health Insurance Portability and Accountability Act" },
474
- HMAC: { description: "Hash-based Message Authentication Code" },
475
- HOTP: { description: "HMAC-based One-Time Password" },
476
- HSM: { description: "Hardware Security Module" },
477
- HTML: { description: "HyperText Markup Language" },
478
- HTTP: { description: "HyperText Transfer Protocol (HTTP)" },
479
- "HTTP/2": { description: "HyperText Transfer Protocol Version 2 (HTTP/2)" },
480
- "HTTP/2.0": {
481
- description: "HyperText Transfer Protocol Version 2 (HTTP/2)",
482
- display: "HTTP2"
483
- },
484
- "HTTP/3": { description: "HyperText Transfer Protocol Version 3 (HTTP/3)" },
485
- "HTTP/3.0": {
486
- description: "HyperText Transfer Protocol Version 3 (HTTP/3)",
487
- display: "HTTP3"
488
- },
489
- HTTP2: {
490
- description: "HyperText Transfer Protocol Version 2 (HTTP/2)",
491
- display: "HTTP2"
492
- },
493
- "HTTP2.0": {
494
- description: "HyperText Transfer Protocol Version 2 (HTTP/2)",
495
- display: "HTTP2"
496
- },
497
- HTTP3: {
498
- description: "HyperText Transfer Protocol Version 3 (HTTP/3)",
499
- display: "HTTP3"
500
- },
501
- "HTTP3.0": {
502
- description: "HyperText Transfer Protocol Version 3 (HTTP/3)",
503
- display: "HTTP3"
504
- },
505
- HTTPS: { description: "HyperText Transfer Protocol Secure (HTTPS)" },
506
- "HTTPS/2": { description: "HyperText Transfer Protocol Secure Version 2 (HTTPS/2)" },
507
- "HTTPS/2.0": {
508
- description: "HyperText Transfer Protocol Secure Version 2 (HTTPS/2)",
509
- display: "HTTPS2"
510
- },
511
- "HTTPS/3": { description: "HyperText Transfer Protocol Secure Version 3 (HTTPS/3)" },
512
- "HTTPS/3.0": {
513
- description: "HyperText Transfer Protocol Secure Version 3 (HTTPS/3)",
514
- display: "HTTPS3"
515
- },
516
- HTTPS2: {
517
- description: "HyperText Transfer Protocol Secure Version 2 (HTTPS/2)",
518
- display: "HTTPS2"
519
- },
520
- "HTTPS2.0": {
521
- description: "HyperText Transfer Protocol Secure Version 2 (HTTPS/2)",
522
- display: "HTTPS2"
523
- },
524
- HTTPS3: {
525
- description: "HyperText Transfer Protocol Secure Version 3 (HTTPS/3)",
526
- display: "HTTPS3"
527
- },
528
- "HTTPS3.0": {
529
- description: "HyperText Transfer Protocol Secure Version 3 (HTTPS/3)",
530
- display: "HTTPS3"
531
- },
532
- IAAS: {
533
- description: "Infrastructure as a Service",
534
- display: "IaaS"
535
- },
536
- IAM: { description: "Identity and Access Management" },
537
- IAMM: { description: "Identity and Access Management and Monitoring" },
538
- IAMT: { description: "Identity and Access Management Tool" },
539
- ID: {
540
- description: "Identifier",
541
- display: "Id"
542
- },
543
- IFTTT: { description: "If This Then That" },
544
- IMAP: { description: "Internet Message Access Protocol" },
545
- IO: { description: "Input/Output" },
546
- IP: { description: "Internet Protocol" },
547
- IPFS: { description: "InterPlanetary File System" },
548
- IPS: { description: "Intrusion Prevention System" },
549
- ISO: { description: "International Organization for Standardization" },
550
- IQ: {
551
- description: "Intelligence Quotient",
552
- display: "IQ"
553
- },
554
- IOT: {
555
- description: "Internet of Things",
556
- display: "IoT"
557
- },
558
- JSON: { description: "JavaScript Object Notation" },
559
- JSONP: { description: "JSON with Padding" },
560
- JWT: { description: "JSON Web Token" },
561
- K8S: {
562
- description: "Kubernetes",
563
- display: "K8s"
564
- },
565
- KMS: { description: "Key Management Service" },
566
- KPI: { description: "Key Performance Indicator" },
567
- KV: { description: "Key Value" },
568
- LAN: { description: "Local Area Network" },
569
- LHS: { description: "Left Hand Side" },
570
- LPGA: { description: "Ladies Professional Golf Association" },
571
- LXC: { description: "Linux Containers" },
572
- MDT: { description: "Mountain Daylight Time" },
573
- MFA: { description: "Multi-Factor Authentication" },
574
- ML: { description: "Machine Learning" },
575
- MLB: { description: "Major League Baseball" },
576
- MLOps: { description: "Machine Learning Operations" },
577
- MPA: { description: "Multi-Page Application" },
578
- MST: { description: "Mountain Standard Time" },
579
- MVC: { description: "Model View Controller" },
580
- MVP: { description: "Minimum Viable Product / Most Valuable Player" },
581
- NAIA: { description: "National Association of Intercollegiate Athletics" },
582
- NAS: { description: "Network Attached Storage" },
583
- NASA: { description: "National Aeronautics and Space Administration" },
584
- NASCAR: { description: "National Association for Stock Car Auto Racing" },
585
- NAT: { description: "Network Address Translation" },
586
- NBA: { description: "National Basketball Association" },
587
- NCAA: { description: "National Collegiate Athletic Association" },
588
- NDA: { description: "Non-Disclosure Agreement" },
589
- NFS: { description: "Network File System" },
590
- NHL: { description: "National Hockey League" },
591
- NIST: { description: "National Institute of Standards and Technology" },
592
- NLP: { description: "Natural Language Processing" },
593
- NPS: { description: "Net Promoter Score" },
594
- NRA: { description: "National Rifle Association" },
595
- NSFW: { description: "Not Safe For Work" },
596
- NX: {
597
- description: "Nx",
598
- display: "Nx"
599
- },
600
- OCR: { description: "Optical Character Recognition" },
601
- OEM: { description: "Original Equipment Manufacturer" },
602
- OKR: { description: "Objectives and Key Results" },
603
- OLAP: { description: "Online Analytical Processing" },
604
- OLTP: { description: "Online Transaction Processing" },
605
- OOP: { description: "Object Oriented Programming" },
606
- ORM: { description: "Object Relational Mapping" },
607
- OS: { description: "Operating System" },
608
- OSINT: { description: "Open Source Intelligence" },
609
- OSS: { description: "Open Source Software" },
610
- OTP: { description: "One-Time Password" },
611
- P2P: { description: "Peer to Peer" },
612
- PAAS: {
613
- description: "Platform as a Service",
614
- display: "PaaS"
615
- },
616
- PCI: { description: "Payment Card Industry" },
617
- PDP: { description: "Policy Decision Point / Product Detail Page" },
618
- PDT: { description: "Pacific Daylight Time" },
619
- PGA: { description: "Professional Golfers' Association" },
620
- POTUS: { description: "President of the United States" },
621
- PP: { description: "Pages / PayPal / Percentage Points" },
622
- PST: { description: "Pacific Standard Time" },
623
- PTO: { description: "Paid Time Off / Power Take-Off" },
624
- PKI: { description: "Public Key Infrastructure" },
625
- PWA: { description: "Progressive Web App" },
626
- PX: { description: "Pixel" },
627
- QA: { description: "Quality Assurance" },
628
- R2: { description: "R2" },
629
- RAID: { description: "Redundant Array of Independent Disks" },
630
- RAM: { description: "Random Access Memory" },
631
- RDS: { description: "Relational Database Service" },
632
- REST: { description: "Representational State Transfer" },
633
- RHS: { description: "Right Hand Side" },
634
- ROI: { description: "Return on Investment" },
635
- RPC: { description: "Remote Procedure Call" },
636
- RPA: { description: "Robotic Process Automation" },
637
- RSC: { description: "React Server Components" },
638
- RSS: { description: "Really Simple Syndication" },
639
- RUM: { description: "Real User Monitoring" },
640
- S3: { description: "Simple Storage Service (S3)" },
641
- SAN: { description: "Storage Area Network" },
642
- SASE: { description: "Secure Access Service Edge" },
643
- SCOTUS: { description: "Supreme Court of the United States" },
644
- SDLC: { description: "Software Development Life Cycle" },
645
- SDK: { description: "Software Development Kit" },
646
- SEC: { description: "Securities and Exchange Commission" },
647
- SEO: { description: "Search Engine Optimization" },
648
- SFTP: { description: "SSH File Transfer Protocol / Secure File Transfer Protocol" },
649
- SIEM: { description: "Security Information and Event Management" },
650
- SLA: { description: "Service Level Agreement" },
651
- SMB: { description: "Server Message Block / Small and Medium Business" },
652
- SMTP: { description: "Simple Mail Transfer Protocol" },
653
- SOAP: { description: "Simple Object Access Protocol" },
654
- SOA: { description: "Service Oriented Architecture" },
655
- SOC: { description: "Security Operations Center / System on Chip" },
656
- SPA: { description: "Single Page Application" },
657
- SPDY: { description: "Speedy (pronounced \"SPeeDY\")" },
658
- SPF: { description: "Sender Policy Framework" },
659
- SQL: { description: "Structured Query Language" },
660
- SRC: { description: "Source" },
661
- SRCDIR: { description: "Source Directory" },
662
- SRCPATH: { description: "Source Path" },
663
- SRV: { description: "Service" },
664
- SRE: { description: "Site Reliability Engineering" },
665
- SSH: { description: "Secure Shell" },
666
- SSDL: { description: "Secure Software Development Lifecycle" },
667
- SSG: { description: "Static Site Generation" },
668
- SSR: { description: "Server Side Rendering" },
669
- SSO: { description: "Single Sign-On" },
670
- SSL: { description: "Secure Sockets Layer" },
671
- TDD: { description: "Test Driven Development" },
672
- TLD: { description: "Top Level Domain" },
673
- TLS: { description: "Transport Layer Security" },
674
- "TLS1.3": { description: "Transport Layer Security 1.3" },
675
- TOR: { description: "The Onion Router" },
676
- TOTP: { description: "Time-based One-Time Password" },
677
- TRPC: { description: "TypeScript Remote Procedure Call" },
678
- TSA: { description: "Transportation Security Administration" },
679
- TSC: { description: "TypeScript Compiler" },
680
- TTL: { description: "Time To Live" },
681
- UDP: { description: "User Datagram Protocol" },
682
- UI: { description: "User Interface" },
683
- UID: { description: "Unique Identifier" },
684
- URI: { description: "Uniform Resource Identifier" },
685
- URL: { description: "Uniform Resource Locator" },
686
- USOPC: { description: "United States Olympic & Paralympic Committee" },
687
- USPS: { description: "United States Postal Service" },
688
- USTA: { description: "United States Tennis Association" },
689
- UTF: { description: "Unicode Transformation Format" },
690
- UTC: { description: "Coordinated Universal Time" },
691
- UUID: { description: "Universally Unique Identifier" },
692
- UX: { description: "User Experience" },
693
- VM: { description: "Virtual Machine" },
694
- VLAN: { description: "Virtual Local Area Network" },
695
- VPN: { description: "Virtual Private Network" },
696
- VPPA: { description: "Video Privacy Protection Act" },
697
- VR: { description: "Virtual Reality" },
698
- WAF: { description: "Web Application Firewall" },
699
- WAN: { description: "Wide Area Network" },
700
- WNBA: { description: "Women's National Basketball Association" },
701
- WLAN: { description: "Wireless Local Area Network" },
702
- WPA: { description: "Wi-Fi Protected Access" },
703
- WPA2: { description: "Wi-Fi Protected Access II" },
704
- WPA3: { description: "Wi-Fi Protected Access III" },
705
- WWW: { description: "World Wide Web" },
706
- WYSIWYG: { description: "What You See Is What You Get" },
707
- XACML: { description: "eXtensible Access Control Markup Language" },
708
- XDG: { description: "Cross-Desktop Group" },
709
- XML: { description: "eXtensible Markup Language" },
710
- XSRF: { description: "Cross-Site Request Forgery" },
711
- XSS: { description: "Cross-Site Scripting" },
712
- XR: { description: "Extended Reality" },
713
- YAML: { description: "YAML Ain't Markup Language" },
714
- YMCA: { description: "Young Men's Christian Association" },
715
- YWCA: { description: "Young Women's Christian Association" },
716
- ZTA: { description: "Zero Trust Architecture" }
717
- };
718
- Object.fromEntries(Object.entries(ACRONYMS).map(([key, value]) => [key, value.display ?? key]));
719
- Object.fromEntries(Object.entries(ACRONYMS).map(([key, value]) => [key, value.description]));
720
-
721
- //#endregion
722
- //#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/string-format/src/combine.mjs
723
- /**
724
- * Combine two strings with a space in between.
725
- *
726
- * @param acc - The accumulated string.
727
- * @param str - The string to add.
728
- * @returns The combined string.
729
- */
730
- function combine(acc, str) {
731
- return `${acc} ${str}`;
732
- }
733
-
734
- //#endregion
735
- //#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/string-format/src/decamelize.mjs
736
- /**
737
- * Convert a camelCase or PascalCase string to a snake_case string.
738
- *
739
- * @param value - The camelCase or PascalCase string to convert.
740
- * @returns The converted snake_case string.
741
- */
742
- function decamelize(value) {
743
- return value.replace(/([a-z\d])([A-Z])/g, "$1_$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g, "$1_$2").toLowerCase();
744
- }
745
-
746
- //#endregion
747
- //#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/string-format/src/articles.mjs
748
- const ARTICLES = [
749
- "a",
750
- "an",
751
- "the"
752
- ];
753
-
754
- //#endregion
755
- //#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/string-format/src/conjunctions.mjs
756
- const CONJUNCTIONS = [
757
- "and",
758
- "that",
759
- "but",
760
- "or",
761
- "as",
762
- "if",
763
- "when",
764
- "than",
765
- "because",
766
- "while",
767
- "where",
768
- "after",
769
- "so",
770
- "though",
771
- "since",
772
- "until",
773
- "whether",
774
- "before",
775
- "although",
776
- "nor",
777
- "like",
778
- "once",
779
- "unless",
780
- "now",
781
- "except"
782
- ];
783
-
784
- //#endregion
785
- //#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/string-format/src/prepositions.mjs
786
- const PREPOSITIONS = [
787
- "about",
788
- "above",
789
- "across",
790
- "after",
791
- "against",
792
- "along",
793
- "among",
794
- "around",
795
- "at",
796
- "because of",
797
- "before",
798
- "behind",
799
- "below",
800
- "beneath",
801
- "beside",
802
- "besides",
803
- "between",
804
- "beyond",
805
- "but",
806
- "by",
807
- "concerning",
808
- "despite",
809
- "down",
810
- "during",
811
- "except",
812
- "excepting",
813
- "for",
814
- "from",
815
- "in",
816
- "in front of",
817
- "inside",
818
- "in spite of",
819
- "instead of",
820
- "into",
821
- "like",
822
- "near",
823
- "of",
824
- "off",
825
- "on",
826
- "onto",
827
- "out",
828
- "outside",
829
- "over",
830
- "past",
831
- "regarding",
832
- "since",
833
- "through",
834
- "throughout",
835
- "to",
836
- "toward",
837
- "under",
838
- "underneath",
839
- "until",
840
- "up",
841
- "upon",
842
- "up to",
843
- "with",
844
- "within",
845
- "without",
846
- "with regard to",
847
- "with respect to"
848
- ];
849
-
850
- //#endregion
851
- //#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/string-format/src/special-cases.mjs
852
- const SPECIAL_CASES = [
853
- "2FA",
854
- "4K",
855
- "5K",
856
- "8K",
857
- "AGI",
858
- "BI",
859
- "ChatGPT",
860
- "CTA",
861
- "DateTime",
862
- "FMS",
863
- "GitHub",
864
- "GPT",
865
- "HD",
866
- "IBMid",
867
- "IDs",
868
- "iMac",
869
- "IMAX",
870
- "iOS",
871
- "iPad",
872
- "iPhone",
873
- "iPod",
874
- "LDAP",
875
- "LinkedIn",
876
- "LLM",
877
- "macOS",
878
- "McDonalds",
879
- "MCP",
880
- "ML",
881
- "MySQL",
882
- "NLG",
883
- "NLP",
884
- "NLU",
885
- "OpenAI",
886
- "PDFs",
887
- "PIM",
888
- "PEFT",
889
- "pH",
890
- "PostgreSQL",
891
- "SEO",
892
- "TTS",
893
- "UHD",
894
- "UUID",
895
- "XSS",
896
- "YouTube",
897
- "CSpell",
898
- "ESLint"
899
- ];
900
-
901
- //#endregion
902
- //#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/string-format/src/format-special-cases.mjs
903
- /**
904
- * Handle special words in a title.
905
- *
906
- * @see https://apastyle.apa.org/style-grammar-guidelines/capitalization/title-case
907
- *
908
- * @param value - The word to handle
909
- * @param index - The index of the word in the title
910
- * @param words - The full title as an array of words
911
- * @returns The formatted word
912
- */
913
- function formatSpecialCases(value, index, words, options) {
914
- const lowercaseStr = value.toLowerCase();
915
- const uppercaseStr = value.toUpperCase();
916
- for (const special of SPECIAL_CASES) if (special.toLowerCase() === lowercaseStr) return special;
917
- if (ACRONYMS[uppercaseStr]) return options?.useDescriptions !== false ? ACRONYMS[uppercaseStr].description : ACRONYMS[uppercaseStr].display || uppercaseStr;
918
- if (index === 0) return value;
919
- if (index === words.length - 1) return value;
920
- if (value.length >= 4) return value;
921
- if (PREPOSITIONS.includes(lowercaseStr)) return lowercaseStr;
922
- if (CONJUNCTIONS.includes(lowercaseStr)) return lowercaseStr;
923
- if (ARTICLES.includes(lowercaseStr)) return lowercaseStr;
924
- return value;
925
- }
926
-
927
- //#endregion
928
- //#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/string-format/src/upper-case-first.mjs
929
- /**
930
- * Upper case the first character of an input string.
931
- *
932
- * @remarks
933
- * "Thisisanexample"
934
- *
935
- * @param input - The input string.
936
- * @returns The capitalized string.
937
- */
938
- function upperCaseFirst(input) {
939
- return input ? input.charAt(0).toUpperCase() + input.slice(1) : input;
940
- }
941
-
942
- //#endregion
943
- //#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/string-format/src/title-case.mjs
944
- /**
945
- * Convert a string to title case.
946
- *
947
- * @param input - The input string to convert.
948
- * @param options - Options for formatting special cases.
949
- * @returns The title cased string.
950
- */
951
- function titleCase$1(input, options) {
952
- return input?.replaceAll(":", " - ")?.replaceAll("+", " + ")?.split(/\s+-\s+/).map((segment) => decamelize(segment).split(/[\s\-_]/).map(upperCaseFirst).map((value) => options?.expandAcronyms ? ACRONYMS[value]?.description || value : value).map((value, index, array) => formatSpecialCases(value, index, array, options)).reduce(combine)).join(" - ");
953
- }
954
-
955
- //#endregion
956
- //#region ../../node_modules/.pnpm/@stryke+env@0.20.87_@types+picomatch@4.0.3_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+_4564df72d1e115c62f6290cda8d9e3bb/node_modules/@stryke/env/dist/get-env-paths.mjs
146
+ //#region ../../node_modules/.pnpm/@stryke+env@0.20.102_@nx+jest@22.7.5_@babel+traverse@7.29.7_@swc-node+register@1.11.1_@_506406da618bb04e125369d0dfadeb01/node_modules/@stryke/env/dist/get-env-paths.mjs
957
147
  const homedir = os.homedir();
958
148
  const tmpdir = os.tmpdir();
959
149
  const macos = (orgId) => {
960
- const library = joinPaths$1(homedir, "Library");
150
+ const library = joinPaths(homedir, "Library");
961
151
  return {
962
- data: joinPaths$1(library, "Application Support", orgId),
963
- config: joinPaths$1(library, "Preferences", orgId),
964
- cache: joinPaths$1(library, "Caches", orgId),
965
- log: joinPaths$1(library, "Logs", orgId),
966
- temp: joinPaths$1(tmpdir, orgId)
152
+ data: joinPaths(library, "Application Support", orgId),
153
+ config: joinPaths(library, "Preferences", orgId),
154
+ cache: joinPaths(library, "Caches", orgId),
155
+ log: joinPaths(library, "Logs", orgId),
156
+ temp: joinPaths(tmpdir, orgId)
967
157
  };
968
158
  };
969
159
  const windows = (orgId) => {
970
- const appData = process.env.APPDATA || joinPaths$1(homedir, "AppData", "Roaming");
971
- const localAppData = process.env.LOCALAPPDATA || joinPaths$1(homedir, "AppData", "Local");
972
- const windowsFormattedOrgId = titleCase$1(orgId).trim().replace(/\s+/g, "");
160
+ const appData = process.env.APPDATA || joinPaths(homedir, "AppData", "Roaming");
161
+ const localAppData = process.env.LOCALAPPDATA || joinPaths(homedir, "AppData", "Local");
162
+ const windowsFormattedOrgId = titleCase(orgId).trim().replace(/\s+/g, "");
973
163
  return {
974
- data: joinPaths$1(localAppData, windowsFormattedOrgId, "Data"),
975
- config: joinPaths$1(appData, windowsFormattedOrgId, "Config"),
976
- cache: joinPaths$1(localAppData, "Cache", orgId),
977
- log: joinPaths$1(localAppData, windowsFormattedOrgId, "Log"),
978
- temp: joinPaths$1(tmpdir, orgId)
164
+ data: joinPaths(localAppData, windowsFormattedOrgId, "Data"),
165
+ config: joinPaths(appData, windowsFormattedOrgId, "Config"),
166
+ cache: joinPaths(localAppData, "Cache", orgId),
167
+ log: joinPaths(localAppData, windowsFormattedOrgId, "Log"),
168
+ temp: joinPaths(tmpdir, orgId)
979
169
  };
980
170
  };
981
171
  const linux = (orgId) => {
982
172
  const username = path.basename(homedir);
983
173
  return {
984
- data: joinPaths$1(process.env.XDG_DATA_HOME || joinPaths$1(homedir, ".local", "share"), orgId),
985
- config: joinPaths$1(process.env.XDG_CONFIG_HOME || joinPaths$1(homedir, ".config"), orgId),
986
- cache: joinPaths$1(process.env.XDG_CACHE_HOME || joinPaths$1(homedir, ".cache"), orgId),
987
- log: joinPaths$1(process.env.XDG_STATE_HOME || joinPaths$1(homedir, ".local", "state"), orgId),
988
- temp: process.env.DEVENV_RUNTIME || process.env.XDG_RUNTIME_DIR ? joinPaths$1(process.env.DEVENV_RUNTIME || process.env.XDG_RUNTIME_DIR, orgId) : joinPaths$1(tmpdir, username, orgId)
174
+ data: joinPaths(process.env.XDG_DATA_HOME || joinPaths(homedir, ".local", "share"), orgId),
175
+ config: joinPaths(process.env.XDG_CONFIG_HOME || joinPaths(homedir, ".config"), orgId),
176
+ cache: joinPaths(process.env.XDG_CACHE_HOME || joinPaths(homedir, ".cache"), orgId),
177
+ log: joinPaths(process.env.XDG_STATE_HOME || joinPaths(homedir, ".local", "state"), orgId),
178
+ temp: process.env.DEVENV_RUNTIME || process.env.XDG_RUNTIME_DIR ? joinPaths(process.env.DEVENV_RUNTIME || process.env.XDG_RUNTIME_DIR, orgId) : joinPaths(tmpdir, username, orgId)
989
179
  };
990
180
  };
991
181
  /**
@@ -1015,23 +205,23 @@ function getEnvPaths(options = {}) {
1015
205
  else if (process.env.STORM_LOG_DIR) result.log = process.env.STORM_LOG_DIR;
1016
206
  else if (process.env.STORM_TEMP_DIR) result.temp = process.env.STORM_TEMP_DIR;
1017
207
  if (options.workspaceRoot) {
1018
- result.cache ??= joinPaths$1(options.workspaceRoot, "node_modules", ".cache", orgId);
1019
- result.temp ??= joinPaths$1(options.workspaceRoot, "tmp", orgId);
1020
- result.log ??= joinPaths$1(result.temp, "logs");
1021
- result.config ??= joinPaths$1(options.workspaceRoot, ".config", orgId);
208
+ result.cache ??= joinPaths(options.workspaceRoot, "node_modules", ".cache", orgId);
209
+ result.temp ??= joinPaths(options.workspaceRoot, "tmp", orgId);
210
+ result.log ??= joinPaths(result.temp, "logs");
211
+ result.config ??= joinPaths(options.workspaceRoot, ".config", orgId);
1022
212
  }
1023
213
  return Object.keys(result).reduce((ret, key) => {
1024
214
  if (result[key]) {
1025
215
  const filePath = result[key];
1026
- ret[key] = options.appId && options.appId !== options.orgId && options.appId !== options.nestedDir ? joinPaths$1(filePath, options.appId) : filePath;
1027
- if (options.nestedDir && options.nestedDir !== options.orgId && options.nestedDir !== options.appId) ret[key] = joinPaths$1(ret[key], options.nestedDir);
216
+ ret[key] = options.appId && options.appId !== options.orgId && options.appId !== options.nestedDir ? joinPaths(filePath, options.appId) : filePath;
217
+ if (options.nestedDir && options.nestedDir !== options.orgId && options.nestedDir !== options.appId) ret[key] = joinPaths(ret[key], options.nestedDir);
1028
218
  }
1029
219
  return ret;
1030
220
  }, {});
1031
221
  }
1032
222
 
1033
223
  //#endregion
1034
- //#region ../../node_modules/.pnpm/@stryke+fs@0.33.70_nx@22.7.1_@swc-node+register@1.11.1_@emnapi+core@1.10.0_@emnapi+runt_bab6a976ece1ecde1bcb30fca36fad37/node_modules/@stryke/fs/dist/exists.mjs
224
+ //#region ../../node_modules/.pnpm/@stryke+fs@0.33.85_@nx+jest@22.7.5_@babel+traverse@7.29.7_@swc-node+register@1.11.1_@sw_877f1a6d15b15de58e6bb8cae69ca90b/node_modules/@stryke/fs/dist/exists.mjs
1035
225
  /**
1036
226
  * Check if a file exists
1037
227
  *
@@ -1043,7 +233,7 @@ function existsSync$1(filePath) {
1043
233
  }
1044
234
 
1045
235
  //#endregion
1046
- //#region ../../node_modules/.pnpm/@powerlines+nx@0.13.39_fc99eff9622fa5d3f6bd2e5db9585b9b/node_modules/@powerlines/nx/dist/src/helpers/plugin-utilities.mjs
236
+ //#region ../../node_modules/.pnpm/@powerlines+nx@0.13.163_9456f17d791dfffcdb67c022b29fb589/node_modules/@powerlines/nx/dist/src/helpers/plugin-utilities.mjs
1047
237
  /**
1048
238
  * Generates Nx input strings for the Powerlines configuration file, replacing the `{framework}` placeholder with the specified framework name.
1049
239
  *
@@ -1069,7 +259,7 @@ function getNxPluginInputs(framework) {
1069
259
  * @returns A CreateNodesV2 function that can be used as an Nx plugin
1070
260
  */
1071
261
  function createNxPlugin(opts) {
1072
- const framework = opts?.framework || "powerlines";
262
+ const framework = kebabCase(opts?.framework) || "powerlines";
1073
263
  const title = `${titleCase(framework)} Nx Plugin`;
1074
264
  try {
1075
265
  const name = opts?.name || `${framework}/nx/plugin`;
@@ -1078,25 +268,12 @@ function createNxPlugin(opts) {
1078
268
  const pluginInputs = getNxPluginInputs(framework);
1079
269
  return [pluginInputs, async (configFiles, options, contextV2) => {
1080
270
  if (options?.verboseOutput) console.debug(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Initializing the ${title} for the following inputs: ${pluginInputs}`);
1081
- const envPaths = getEnvPaths({
271
+ if (!getEnvPaths({
1082
272
  orgId: "storm-software",
1083
273
  appId: framework,
1084
274
  workspaceRoot: contextV2.workspaceRoot
1085
- });
1086
- if (!envPaths.cache) throw new Error("The cache directory could not be determined.");
275
+ }).cache) throw new Error("The cache directory could not be determined.");
1087
276
  const nxJson = readNxJson(contextV2.workspaceRoot);
1088
- const resolver = createJiti(contextV2.workspaceRoot, {
1089
- debug: !!options?.debug,
1090
- interopDefault: true,
1091
- fsCache: joinPaths(envPaths.cache, "nx-plugin", murmurhash(contextV2.workspaceRoot, { maxLength: 45 }), "jiti"),
1092
- moduleCache: true
1093
- });
1094
- let loadUserConfigFile;
1095
- try {
1096
- loadUserConfigFile = await resolver.import(resolver.esmResolve("powerlines/config")).then((mod) => mod?.loadUserConfigFile);
1097
- } catch (error) {
1098
- console.warn(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Failed to load user configuration file function: ${isError(error) ? error.message : "Unknown error"}`);
1099
- }
1100
277
  return createNodesFromFiles(async (configFile, _, context) => {
1101
278
  try {
1102
279
  const projectRoot = getProjectRoot(configFile, contextV2.workspaceRoot);
@@ -1106,21 +283,6 @@ function createNxPlugin(opts) {
1106
283
  }
1107
284
  const root = getRoot(projectRoot, context);
1108
285
  if (options?.verboseOutput) console.debug(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Loading ${framework} user configuration for project in root directory ${projectRoot}.`);
1109
- let userConfig = {};
1110
- try {
1111
- if (loadUserConfigFile) {
1112
- const parsedConfig = await loadUserConfigFile({
1113
- root: projectRoot,
1114
- cwd: contextV2.workspaceRoot,
1115
- mode: isDevelopment ? "development" : isTest ? "test" : "production",
1116
- configFile,
1117
- framework
1118
- }, resolver);
1119
- if (isSetObject(parsedConfig)) userConfig = parsedConfig.config;
1120
- }
1121
- } catch (error) {
1122
- console.warn(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Failed to load user configuration for project in ${projectRoot} - ${isError(error) ? error.message : isSetString(error) ? error : "Unknown error"} \n\nThis error can occur if the project depends on another package in the workspace and the dependent package has not been built yet. To resolve this issue, please ensure that all dependent packages have been built successfully.`);
1123
- }
1124
286
  if (!existsSync$1(joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"))) {
1125
287
  if (options?.verboseOutput) console.warn(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Cannot find \`package.json\` file in the project's root directory (path: "${joinPaths(contextV2.workspaceRoot, projectRoot)}"). Skipping project configuration.`);
1126
288
  return {};
@@ -1131,10 +293,6 @@ function createNxPlugin(opts) {
1131
293
  return {};
1132
294
  }
1133
295
  const packageJson = JSON.parse(packageJsonContent);
1134
- if (!(userConfig && Object.keys(userConfig).length > 0) && !packageJson?.[camelCase(framework)]) {
1135
- if (options?.verboseOutput) console.debug(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Skipping ${projectRoot} - no ${framework} configuration found for project in root directory.`);
1136
- return {};
1137
- }
1138
296
  const projectConfig = getProjectConfigFromProjectRoot(projectRoot, packageJson);
1139
297
  if (!projectConfig) {
1140
298
  if (options?.verboseOutput) console.warn(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - No project configuration found for project in root directory ${projectRoot}`);
@@ -1151,6 +309,7 @@ function createNxPlugin(opts) {
1151
309
  defaultConfiguration: options?.clean?.defaultConfiguration || "production",
1152
310
  options: {
1153
311
  root: projectRoot,
312
+ configFile,
1154
313
  projectType: projectConfig.projectType,
1155
314
  outputPath: `{workspaceRoot}/${projectRoot}/dist`,
1156
315
  copyPath: `{workspaceRoot}/dist/${projectRoot}`
@@ -1169,10 +328,11 @@ function createNxPlugin(opts) {
1169
328
  inputs: Array.isArray(options?.prepare?.inputs) ? options.prepare.inputs : withNamedInputs(targetInputs, [options?.prepare?.inputs || "typescript"]),
1170
329
  outputs: options?.prepare?.outputs ?? [artifactsFolder],
1171
330
  executor: options?.prepare?.executor || `@${framework}/nx:${options?.prepare?.targetName || "prepare"}`,
1172
- dependsOn: options?.prepare?.dependsOn ?? [`^${options?.prepare?.targetName || "build"}`, options?.clean !== false && `${options?.clean?.targetName || "clean"}`].filter(Boolean),
331
+ dependsOn: options?.prepare?.dependsOn ?? [`^${options?.prepare?.targetName || "build"}`].filter(Boolean),
1173
332
  defaultConfiguration: options?.prepare?.defaultConfiguration || "production",
1174
333
  options: {
1175
334
  projectType: projectConfig.projectType,
335
+ configFile,
1176
336
  outputPath: `{workspaceRoot}/${projectRoot}/dist`,
1177
337
  copyPath: `{workspaceRoot}/dist/${projectRoot}`
1178
338
  },
@@ -1190,10 +350,11 @@ function createNxPlugin(opts) {
1190
350
  inputs: Array.isArray(options?.build?.inputs) ? options.build.inputs : withNamedInputs(targetInputs, [options?.build?.inputs || "typescript"]),
1191
351
  outputs: options?.build?.outputs ?? ["{options.outputPath}"],
1192
352
  executor: options?.build?.executor || `@${framework}/nx:${options?.build?.targetName || "build"}`,
1193
- dependsOn: options?.build?.dependsOn ?? [`^${options?.build?.targetName || "build"}`, userConfig.skipCache || isDevelopment ? void 0 : isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"].filter(Boolean),
353
+ dependsOn: options?.build?.dependsOn ?? [`^${options?.build?.targetName || "build"}`, isDevelopment ? void 0 : isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"].filter(Boolean),
1194
354
  defaultConfiguration: options?.build?.defaultConfiguration || "production",
1195
355
  options: {
1196
356
  projectType: projectConfig.projectType,
357
+ configFile,
1197
358
  outputPath: `{workspaceRoot}/${projectRoot}/dist`,
1198
359
  copyPath: `{workspaceRoot}/dist/${projectRoot}`
1199
360
  },
@@ -1211,10 +372,11 @@ function createNxPlugin(opts) {
1211
372
  inputs: Array.isArray(options?.lint?.inputs) ? options.lint.inputs : withNamedInputs([...targetInputs, artifactsFolder], options?.lint?.inputs ? [options.lint.inputs] : ["linting", "typescript"]),
1212
373
  outputs: options?.lint?.outputs ?? ["{options.outputPath}"],
1213
374
  executor: options?.lint?.executor || `@${framework}/nx:${options?.lint?.targetName || "lint"}`,
1214
- dependsOn: options?.lint?.dependsOn ?? [`^${options?.lint?.targetName || "lint"}`, userConfig.skipCache || isDevelopment ? void 0 : isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"].filter(Boolean),
375
+ dependsOn: options?.lint?.dependsOn ?? [`^${options?.lint?.targetName || "lint"}`, isDevelopment ? void 0 : isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"].filter(Boolean),
1215
376
  defaultConfiguration: options?.lint?.defaultConfiguration || "production",
1216
377
  options: {
1217
378
  projectType: projectConfig.projectType,
379
+ configFile,
1218
380
  outputPath: `{workspaceRoot}/${projectRoot}/dist`,
1219
381
  copyPath: `{workspaceRoot}/dist/${projectRoot}`
1220
382
  },
@@ -1235,11 +397,12 @@ function createNxPlugin(opts) {
1235
397
  dependsOn: options?.docs?.dependsOn ?? [
1236
398
  `^${options?.docs?.targetName || "docs"}`,
1237
399
  options?.build !== false && `${options?.build?.targetName || "build"}`,
1238
- userConfig.skipCache || isDevelopment ? void 0 : isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
400
+ isDevelopment ? void 0 : isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
1239
401
  ].filter(Boolean),
1240
402
  defaultConfiguration: options?.docs?.defaultConfiguration || "production",
1241
403
  options: {
1242
404
  projectType: projectConfig.projectType,
405
+ configFile,
1243
406
  outputPath: `{workspaceRoot}/${projectRoot}/dist`,
1244
407
  copyPath: `{workspaceRoot}/dist/${projectRoot}`
1245
408
  },
@@ -1260,11 +423,12 @@ function createNxPlugin(opts) {
1260
423
  dependsOn: options?.deploy?.dependsOn ?? [
1261
424
  `^${options?.deploy?.targetName || "deploy"}`,
1262
425
  options?.build !== false && `${options?.build?.targetName || "build"}`,
1263
- userConfig.skipCache || isDevelopment ? void 0 : isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
426
+ isDevelopment ? void 0 : isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
1264
427
  ].filter(Boolean),
1265
428
  defaultConfiguration: options?.deploy?.defaultConfiguration || "production",
1266
429
  options: {
1267
430
  projectType: projectConfig.projectType,
431
+ configFile,
1268
432
  outputPath: `{workspaceRoot}/${projectRoot}/dist`,
1269
433
  copyPath: `{workspaceRoot}/dist/${projectRoot}`
1270
434
  },
@@ -1281,7 +445,6 @@ function createNxPlugin(opts) {
1281
445
  addProjectTag(projectConfig, framework, projectConfig.projectType || "library", { overwrite: true });
1282
446
  if (options?.verboseOutput) console.debug(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Completed preparing Nx configuration for project in root directory ${projectRoot}.`);
1283
447
  return { projects: { [root]: defu(projectConfig, {
1284
- name: kebabCase(userConfig.name),
1285
448
  projectType: projectConfig.projectType || "library",
1286
449
  root,
1287
450
  sourceRoot: joinPaths(root, "src"),