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