@powerlines/nx 0.11.269 → 0.11.270

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 (204) hide show
  1. package/README.md +29 -31
  2. package/dist/src/base/base-executor.d.mts +1 -1
  3. package/dist/src/base/base-executor.d.ts +1 -1
  4. package/dist/src/base/base-executor.js +78 -3
  5. package/dist/src/base/base-executor.mjs +75 -3
  6. package/dist/src/base/base-executor.mjs.map +1 -0
  7. package/dist/src/base/base-executor.schema.d.mts +117 -2
  8. package/dist/src/base/base-executor.schema.d.mts.map +1 -0
  9. package/dist/src/base/base-executor.schema.d.ts +117 -2
  10. package/dist/src/base/base-executor.schema.d.ts.map +1 -0
  11. package/dist/src/base/base-executor.untyped.d.mts +1 -1
  12. package/dist/src/base/base-executor.untyped.d.ts +1 -1
  13. package/dist/src/base/base-executor.untyped.js +135 -2
  14. package/dist/src/base/base-executor.untyped.mjs +135 -2
  15. package/dist/src/base/base-executor.untyped.mjs.map +1 -0
  16. package/dist/src/base/index.d.mts +1 -3
  17. package/dist/src/base/index.d.ts +1 -1
  18. package/dist/src/base/index.js +4 -5
  19. package/dist/src/base/index.mjs +2 -4
  20. package/dist/src/base-executor-Bj63x9OE.d.ts +28 -0
  21. package/dist/src/base-executor-Bj63x9OE.d.ts.map +1 -0
  22. package/dist/src/base-executor-D6POztG2.d.mts +28 -0
  23. package/dist/src/base-executor-D6POztG2.d.mts.map +1 -0
  24. package/dist/src/base-executor.untyped-D4R6pki2.d.ts +7 -0
  25. package/dist/src/base-executor.untyped-D4R6pki2.d.ts.map +1 -0
  26. package/dist/src/base-executor.untyped-hmlG6oyC.d.mts +7 -0
  27. package/dist/src/base-executor.untyped-hmlG6oyC.d.mts.map +1 -0
  28. package/dist/src/chunk-BE-pF4vm.js +34 -0
  29. package/dist/src/{constants-BvODbBl8.d.ts → constants-CbG11Mby.d.ts} +1 -1
  30. package/dist/src/constants-CbG11Mby.d.ts.map +1 -0
  31. package/dist/src/{constants-ByputsG8.d.mts → constants-VDvVnoLC.d.mts} +1 -1
  32. package/dist/src/constants-VDvVnoLC.d.mts.map +1 -0
  33. package/dist/src/executors/build/executor.d.mts +2 -16
  34. package/dist/src/executors/build/executor.d.mts.map +1 -1
  35. package/dist/src/executors/build/executor.d.ts +2 -16
  36. package/dist/src/executors/build/executor.d.ts.map +1 -1
  37. package/dist/src/executors/build/executor.js +6 -7
  38. package/dist/src/executors/build/executor.mjs +4 -6
  39. package/dist/src/executors/build/executor.mjs.map +1 -1
  40. package/dist/src/executors/build/untyped.d.mts +2 -2
  41. package/dist/src/executors/build/untyped.d.mts.map +1 -1
  42. package/dist/src/executors/build/untyped.d.ts +2 -2
  43. package/dist/src/executors/build/untyped.d.ts.map +1 -1
  44. package/dist/src/executors/build/untyped.js +3 -4
  45. package/dist/src/executors/build/untyped.mjs +1 -2
  46. package/dist/src/executors/build/untyped.mjs.map +1 -1
  47. package/dist/src/executors/clean/executor.d.mts +2 -13
  48. package/dist/src/executors/clean/executor.d.mts.map +1 -1
  49. package/dist/src/executors/clean/executor.d.ts +2 -13
  50. package/dist/src/executors/clean/executor.d.ts.map +1 -1
  51. package/dist/src/executors/clean/executor.js +4 -6
  52. package/dist/src/executors/clean/executor.mjs +2 -4
  53. package/dist/src/executors/clean/executor.mjs.map +1 -1
  54. package/dist/src/executors/clean/untyped.d.mts +2 -2
  55. package/dist/src/executors/clean/untyped.d.mts.map +1 -1
  56. package/dist/src/executors/clean/untyped.d.ts +2 -2
  57. package/dist/src/executors/clean/untyped.d.ts.map +1 -1
  58. package/dist/src/executors/clean/untyped.js +3 -3
  59. package/dist/src/executors/clean/untyped.mjs +1 -1
  60. package/dist/src/executors/docs/executor.d.mts +2 -15
  61. package/dist/src/executors/docs/executor.d.mts.map +1 -1
  62. package/dist/src/executors/docs/executor.d.ts +2 -15
  63. package/dist/src/executors/docs/executor.d.ts.map +1 -1
  64. package/dist/src/executors/docs/executor.js +4 -6
  65. package/dist/src/executors/docs/executor.mjs +2 -4
  66. package/dist/src/executors/docs/executor.mjs.map +1 -1
  67. package/dist/src/executors/docs/untyped.d.mts +2 -2
  68. package/dist/src/executors/docs/untyped.d.mts.map +1 -1
  69. package/dist/src/executors/docs/untyped.d.ts +2 -2
  70. package/dist/src/executors/docs/untyped.d.ts.map +1 -1
  71. package/dist/src/executors/docs/untyped.js +3 -4
  72. package/dist/src/executors/docs/untyped.mjs +1 -2
  73. package/dist/src/executors/docs/untyped.mjs.map +1 -1
  74. package/dist/src/executors/lint/executor.d.mts +2 -15
  75. package/dist/src/executors/lint/executor.d.mts.map +1 -1
  76. package/dist/src/executors/lint/executor.d.ts +2 -15
  77. package/dist/src/executors/lint/executor.d.ts.map +1 -1
  78. package/dist/src/executors/lint/executor.js +4 -6
  79. package/dist/src/executors/lint/executor.mjs +2 -4
  80. package/dist/src/executors/lint/executor.mjs.map +1 -1
  81. package/dist/src/executors/lint/untyped.d.mts +2 -2
  82. package/dist/src/executors/lint/untyped.d.mts.map +1 -1
  83. package/dist/src/executors/lint/untyped.d.ts +2 -2
  84. package/dist/src/executors/lint/untyped.d.ts.map +1 -1
  85. package/dist/src/executors/lint/untyped.js +3 -4
  86. package/dist/src/executors/lint/untyped.mjs +1 -2
  87. package/dist/src/executors/lint/untyped.mjs.map +1 -1
  88. package/dist/src/executors/prepare/executor.d.mts +2 -15
  89. package/dist/src/executors/prepare/executor.d.mts.map +1 -1
  90. package/dist/src/executors/prepare/executor.d.ts +2 -15
  91. package/dist/src/executors/prepare/executor.d.ts.map +1 -1
  92. package/dist/src/executors/prepare/executor.js +6 -7
  93. package/dist/src/executors/prepare/executor.mjs +4 -6
  94. package/dist/src/executors/prepare/executor.mjs.map +1 -1
  95. package/dist/src/executors/prepare/untyped.d.mts +2 -2
  96. package/dist/src/executors/prepare/untyped.d.mts.map +1 -1
  97. package/dist/src/executors/prepare/untyped.d.ts +2 -2
  98. package/dist/src/executors/prepare/untyped.d.ts.map +1 -1
  99. package/dist/src/executors/prepare/untyped.js +26 -3
  100. package/dist/src/executors/prepare/untyped.mjs +26 -3
  101. package/dist/src/executors/prepare/untyped.mjs.map +1 -0
  102. package/dist/src/generators/sync/generator.d.mts.map +1 -1
  103. package/dist/src/generators/sync/generator.d.ts.map +1 -1
  104. package/dist/src/generators/sync/generator.js +5 -6
  105. package/dist/src/generators/sync/generator.mjs +1 -2
  106. package/dist/src/generators/sync/generator.mjs.map +1 -1
  107. package/dist/src/generators/sync/untyped.d.mts +2 -2
  108. package/dist/src/generators/sync/untyped.d.mts.map +1 -1
  109. package/dist/src/generators/sync/untyped.d.ts +2 -2
  110. package/dist/src/generators/sync/untyped.d.ts.map +1 -1
  111. package/dist/src/generators/sync/untyped.js +1 -1
  112. package/dist/src/helpers/constants.d.mts +1 -1
  113. package/dist/src/helpers/constants.d.ts +1 -1
  114. package/dist/src/helpers/constants.js +34 -2
  115. package/dist/src/helpers/constants.mjs +33 -2
  116. package/dist/src/helpers/constants.mjs.map +1 -0
  117. package/dist/src/helpers/index.d.mts +2 -3
  118. package/dist/src/helpers/index.d.ts +2 -2
  119. package/dist/src/helpers/index.js +7 -8
  120. package/dist/src/helpers/index.mjs +2 -4
  121. package/dist/src/helpers/plugin-utilities.d.mts +1 -1
  122. package/dist/src/helpers/plugin-utilities.d.ts +1 -1
  123. package/dist/src/helpers/plugin-utilities.js +274 -5
  124. package/dist/src/helpers/plugin-utilities.mjs +270 -3
  125. package/dist/src/helpers/plugin-utilities.mjs.map +1 -0
  126. package/dist/src/index.d.mts +4 -7
  127. package/dist/src/index.d.ts +4 -4
  128. package/dist/src/index.js +11 -12
  129. package/dist/src/index.mjs +5 -7
  130. package/dist/src/plugin/index.d.mts +1 -1
  131. package/dist/src/plugin/index.d.mts.map +1 -1
  132. package/dist/src/plugin/index.d.ts +1 -1
  133. package/dist/src/plugin/index.d.ts.map +1 -1
  134. package/dist/src/plugin/index.js +3 -3
  135. package/dist/src/plugin/index.mjs +1 -2
  136. package/dist/src/plugin/index.mjs.map +1 -1
  137. package/dist/src/{plugin-DIj3oU64.d.mts → plugin-B_ZGdX7U.d.mts} +1 -1
  138. package/dist/src/plugin-B_ZGdX7U.d.mts.map +1 -0
  139. package/dist/src/{plugin-DN475itb.d.ts → plugin-DpyutMl2.d.ts} +1 -1
  140. package/dist/src/plugin-DpyutMl2.d.ts.map +1 -0
  141. package/dist/src/{plugin-utilities-Bz3Muyag.d.mts → plugin-utilities-Cg-Ccp4C.d.mts} +2 -3
  142. package/dist/src/plugin-utilities-Cg-Ccp4C.d.mts.map +1 -0
  143. package/dist/src/{plugin-utilities-CeMy-9YQ.d.ts → plugin-utilities-CmfuC3TZ.d.ts} +2 -3
  144. package/dist/src/plugin-utilities-CmfuC3TZ.d.ts.map +1 -0
  145. package/dist/src/types/index.d.mts +1 -1
  146. package/dist/src/types/index.d.ts +1 -1
  147. package/dist/src/types/plugin.d.mts +1 -1
  148. package/dist/src/types/plugin.d.ts +1 -1
  149. package/package.json +4 -4
  150. package/dist/src/base-B7jekb-W.js +0 -0
  151. package/dist/src/base-BRSa-clf.mjs +0 -1
  152. package/dist/src/base-executor-CWToCKgJ.d.ts +0 -2195
  153. package/dist/src/base-executor-CWToCKgJ.d.ts.map +0 -1
  154. package/dist/src/base-executor-Cc27ehGx.js +0 -4881
  155. package/dist/src/base-executor-DPB5qlkm.mjs +0 -4863
  156. package/dist/src/base-executor-DPB5qlkm.mjs.map +0 -1
  157. package/dist/src/base-executor-PhChSWwR.mjs +0 -4863
  158. package/dist/src/base-executor-PhChSWwR.mjs.map +0 -1
  159. package/dist/src/base-executor-tG-B1UsT.js +0 -4881
  160. package/dist/src/base-executor-xsZuLKpp.d.mts +0 -2197
  161. package/dist/src/base-executor-xsZuLKpp.d.mts.map +0 -1
  162. package/dist/src/base-executor.schema-BaaDD_VU.d.ts +0 -130
  163. package/dist/src/base-executor.schema-BaaDD_VU.d.ts.map +0 -1
  164. package/dist/src/base-executor.schema-CYPLsYvI.d.mts +0 -130
  165. package/dist/src/base-executor.schema-CYPLsYvI.d.mts.map +0 -1
  166. package/dist/src/base-executor.untyped-7SvGKXcO.d.mts +0 -7
  167. package/dist/src/base-executor.untyped-7SvGKXcO.d.mts.map +0 -1
  168. package/dist/src/base-executor.untyped-C1pQETnQ.mjs +0 -136
  169. package/dist/src/base-executor.untyped-C1pQETnQ.mjs.map +0 -1
  170. package/dist/src/base-executor.untyped-Cz1Zw_02.js +0 -141
  171. package/dist/src/base-executor.untyped-DBccuF6E.d.ts +0 -7
  172. package/dist/src/base-executor.untyped-DBccuF6E.d.ts.map +0 -1
  173. package/dist/src/base-executor.untyped-DCiPQvRf.d.ts +0 -7
  174. package/dist/src/base-executor.untyped-DCiPQvRf.d.ts.map +0 -1
  175. package/dist/src/base-executor.untyped-imww7Gm9.d.mts +0 -7
  176. package/dist/src/base-executor.untyped-imww7Gm9.d.mts.map +0 -1
  177. package/dist/src/config-CGQhS8tm.js +0 -239
  178. package/dist/src/config-LoR-NIJg.mjs +0 -147
  179. package/dist/src/config-LoR-NIJg.mjs.map +0 -1
  180. package/dist/src/constants-BvODbBl8.d.ts.map +0 -1
  181. package/dist/src/constants-ByputsG8.d.mts.map +0 -1
  182. package/dist/src/constants-CKuImMYn.js +0 -39
  183. package/dist/src/constants-DzvoYj5w.mjs +0 -34
  184. package/dist/src/constants-DzvoYj5w.mjs.map +0 -1
  185. package/dist/src/helpers-B78f0Oey.js +0 -0
  186. package/dist/src/helpers-j01T2doK.mjs +0 -1
  187. package/dist/src/index-7rWKHdox.d.mts +0 -1
  188. package/dist/src/index-CB5PSF-Q.d.ts +0 -1
  189. package/dist/src/index-CDDzqahH.d.ts +0 -1
  190. package/dist/src/index-CsuikFeJ.d.mts +0 -1
  191. package/dist/src/index-LhFpnU-f.d.mts +0 -1
  192. package/dist/src/index-g0mugXoV.d.ts +0 -1
  193. package/dist/src/plugin-BnaFlFmT.js +0 -0
  194. package/dist/src/plugin-DIj3oU64.d.mts.map +0 -1
  195. package/dist/src/plugin-DN475itb.d.ts.map +0 -1
  196. package/dist/src/plugin-DRjpXVSI.mjs +0 -1
  197. package/dist/src/plugin-utilities-ByTgFCEW.js +0 -287
  198. package/dist/src/plugin-utilities-Bz3Muyag.d.mts.map +0 -1
  199. package/dist/src/plugin-utilities-CeMy-9YQ.d.ts.map +0 -1
  200. package/dist/src/plugin-utilities-DamtoOxO.mjs +0 -270
  201. package/dist/src/plugin-utilities-DamtoOxO.mjs.map +0 -1
  202. package/dist/src/untyped-BzuygGwJ.mjs +0 -27
  203. package/dist/src/untyped-BzuygGwJ.mjs.map +0 -1
  204. package/dist/src/untyped-CB-jtwm-.js +0 -32
@@ -1,239 +0,0 @@
1
- //#region rolldown:runtime
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
- key = keys[i];
12
- if (!__hasOwnProp.call(to, key) && key !== except) {
13
- __defProp(to, key, {
14
- get: ((k) => from[k]).bind(null, key),
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- }
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
- value: mod,
24
- enumerable: true
25
- }) : target, mod));
26
-
27
- //#endregion
28
- let defu = require("defu");
29
- defu = __toESM(defu);
30
- let __stryke_path_append = require("@stryke/path/append");
31
- let __stryke_path_join_paths = require("@stryke/path/join-paths");
32
- let __stryke_path_replace = require("@stryke/path/replace");
33
- let __stryke_type_checks_is_function = require("@stryke/type-checks/is-function");
34
- let __stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
35
- let __stryke_fs_exists = require("@stryke/fs/exists");
36
- let __storm_software_config_tools_get_config = require("@storm-software/config-tools/get-config");
37
- let __stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
38
- let c12 = require("c12");
39
-
40
- //#region ../core/src/constants/commands.ts
41
- const SUPPORTED_COMMANDS = [
42
- "new",
43
- "clean",
44
- "prepare",
45
- "lint",
46
- "test",
47
- "build",
48
- "docs",
49
- "deploy",
50
- "finalize"
51
- ];
52
-
53
- //#endregion
54
- //#region ../core/src/constants/plugin.ts
55
- const UNPLUGIN_BUILDER_VARIANTS = [
56
- "rollup",
57
- "webpack",
58
- "rspack",
59
- "vite",
60
- "esbuild",
61
- "farm",
62
- "unloader",
63
- "rolldown",
64
- "bun"
65
- ];
66
- const BUILDER_VARIANTS = [
67
- ...UNPLUGIN_BUILDER_VARIANTS,
68
- "tsup",
69
- "tsdown",
70
- "unbuild"
71
- ];
72
- const PLUGIN_NON_HOOK_FIELDS = [
73
- "name",
74
- "api",
75
- "enforce",
76
- "dedupe",
77
- "applyToEnvironment"
78
- ];
79
- const PLUGIN_HOOKS_FIELDS = [
80
- ...SUPPORTED_COMMANDS,
81
- "config",
82
- "configEnvironment",
83
- "configResolved",
84
- "types",
85
- "buildStart",
86
- "buildEnd",
87
- "transform",
88
- "load",
89
- "resolveId",
90
- "writeBundle"
91
- ];
92
- const KNOWN_PLUGIN_FIELDS = [
93
- ...PLUGIN_NON_HOOK_FIELDS,
94
- ...PLUGIN_HOOKS_FIELDS,
95
- ...BUILDER_VARIANTS
96
- ];
97
-
98
- //#endregion
99
- //#region ../core/src/constants/environments.ts
100
- const DEFAULT_ENVIRONMENT = "default";
101
- const GLOBAL_ENVIRONMENT = "__global__";
102
-
103
- //#endregion
104
- //#region ../core/src/constants/meta.ts
105
- const ROOT_HASH_LENGTH = 45;
106
- const CACHE_HASH_LENGTH = 62;
107
-
108
- //#endregion
109
- //#region ../core/src/lib/config.ts
110
- /**
111
- * Loads the workspace configuration.
112
- *
113
- * @param workspaceRoot - The root directory of the workspace.
114
- * @param cwd - The current working directory to start searching from.
115
- * @returns A promise that resolves to the loaded workspace configuration.
116
- */
117
- async function loadWorkspaceConfig(workspaceRoot, cwd) {
118
- return (0, defu.default)({ workspaceRoot }, await (0, __storm_software_config_tools_get_config.getWorkspaceConfig)(true, {
119
- cwd,
120
- workspaceRoot,
121
- useDefault: true
122
- }));
123
- }
124
- /**
125
- * Loads the user configuration file for the project.
126
- *
127
- * @param projectRoot - The root directory of the project.
128
- * @param workspaceRoot - The root directory of the workspace.
129
- * @param jiti - An instance of Jiti to resolve modules from
130
- * @param command - The {@link PowerlinesCommand} string associated with the current running process
131
- * @param mode - The mode in which the project is running (default is "production").
132
- * @param configFile - An optional path to a specific configuration file.
133
- * @param framework - The framework name to use for default configuration file names.
134
- * @returns A promise that resolves to the resolved user configuration.
135
- */
136
- async function loadUserConfigFile(projectRoot, workspaceRoot, jiti, command, mode = "production", configFile, framework = "powerlines") {
137
- let resolvedUserConfig = {};
138
- let resolvedUserConfigFile;
139
- if (configFile) resolvedUserConfigFile = (0, __stryke_fs_exists.existsSync)((0, __stryke_path_replace.replacePath)(configFile, projectRoot)) ? (0, __stryke_path_replace.replacePath)(configFile, projectRoot) : (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), (0, __stryke_path_replace.replacePath)(configFile, projectRoot))) ? (0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), (0, __stryke_path_replace.replacePath)(configFile, projectRoot)) : (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), configFile)) ? (0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), configFile) : void 0;
140
- if (!resolvedUserConfigFile) resolvedUserConfigFile = (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`)) ? (0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`) : (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`)) ? (0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`) : (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`)) ? (0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`) : (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`)) ? (0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`) : (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.config.ts`)) ? (0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.config.ts`) : (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.config.js`)) ? (0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.config.js`) : (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.config.mts`)) ? (0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.config.mts`) : (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.config.mjs`)) ? (0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.config.mjs`) : void 0;
141
- if (resolvedUserConfigFile) {
142
- const resolved = await jiti.import(jiti.esmResolve(resolvedUserConfigFile));
143
- if (resolved) {
144
- let config = {};
145
- if ((0, __stryke_type_checks_is_function.isFunction)(resolved)) config = await Promise.resolve(resolved({
146
- command,
147
- mode,
148
- isSsrBuild: false,
149
- isPreview: false
150
- }));
151
- if ((0, __stryke_type_checks_is_set_object.isSetObject)(config)) resolvedUserConfig = {
152
- ...config,
153
- config,
154
- configFile: resolvedUserConfigFile
155
- };
156
- }
157
- }
158
- const result = await (0, c12.loadConfig)({
159
- cwd: projectRoot,
160
- name: framework,
161
- envName: mode,
162
- globalRc: true,
163
- packageJson: (0, __stryke_string_format_camel_case.camelCase)(framework),
164
- dotenv: true,
165
- jiti
166
- });
167
- return (0, defu.default)(resolvedUserConfig, (0, __stryke_type_checks_is_set_object.isSetObject)(result?.config) ? {
168
- ...result.config,
169
- ...result
170
- } : {});
171
- }
172
-
173
- //#endregion
174
- Object.defineProperty(exports, 'BUILDER_VARIANTS', {
175
- enumerable: true,
176
- get: function () {
177
- return BUILDER_VARIANTS;
178
- }
179
- });
180
- Object.defineProperty(exports, 'CACHE_HASH_LENGTH', {
181
- enumerable: true,
182
- get: function () {
183
- return CACHE_HASH_LENGTH;
184
- }
185
- });
186
- Object.defineProperty(exports, 'DEFAULT_ENVIRONMENT', {
187
- enumerable: true,
188
- get: function () {
189
- return DEFAULT_ENVIRONMENT;
190
- }
191
- });
192
- Object.defineProperty(exports, 'GLOBAL_ENVIRONMENT', {
193
- enumerable: true,
194
- get: function () {
195
- return GLOBAL_ENVIRONMENT;
196
- }
197
- });
198
- Object.defineProperty(exports, 'PLUGIN_HOOKS_FIELDS', {
199
- enumerable: true,
200
- get: function () {
201
- return PLUGIN_HOOKS_FIELDS;
202
- }
203
- });
204
- Object.defineProperty(exports, 'PLUGIN_NON_HOOK_FIELDS', {
205
- enumerable: true,
206
- get: function () {
207
- return PLUGIN_NON_HOOK_FIELDS;
208
- }
209
- });
210
- Object.defineProperty(exports, 'ROOT_HASH_LENGTH', {
211
- enumerable: true,
212
- get: function () {
213
- return ROOT_HASH_LENGTH;
214
- }
215
- });
216
- Object.defineProperty(exports, 'UNPLUGIN_BUILDER_VARIANTS', {
217
- enumerable: true,
218
- get: function () {
219
- return UNPLUGIN_BUILDER_VARIANTS;
220
- }
221
- });
222
- Object.defineProperty(exports, '__toESM', {
223
- enumerable: true,
224
- get: function () {
225
- return __toESM;
226
- }
227
- });
228
- Object.defineProperty(exports, 'loadUserConfigFile', {
229
- enumerable: true,
230
- get: function () {
231
- return loadUserConfigFile;
232
- }
233
- });
234
- Object.defineProperty(exports, 'loadWorkspaceConfig', {
235
- enumerable: true,
236
- get: function () {
237
- return loadWorkspaceConfig;
238
- }
239
- });
@@ -1,147 +0,0 @@
1
- import defu$1 from "defu";
2
- import { appendPath } from "@stryke/path/append";
3
- import { joinPaths } from "@stryke/path/join-paths";
4
- import { replacePath } from "@stryke/path/replace";
5
- import { isFunction } from "@stryke/type-checks/is-function";
6
- import { isSetObject } from "@stryke/type-checks/is-set-object";
7
- import { existsSync } from "@stryke/fs/exists";
8
- import { getWorkspaceConfig } from "@storm-software/config-tools/get-config";
9
- import { camelCase } from "@stryke/string-format/camel-case";
10
- import { loadConfig } from "c12";
11
-
12
- //#region ../core/src/constants/commands.ts
13
- const SUPPORTED_COMMANDS = [
14
- "new",
15
- "clean",
16
- "prepare",
17
- "lint",
18
- "test",
19
- "build",
20
- "docs",
21
- "deploy",
22
- "finalize"
23
- ];
24
-
25
- //#endregion
26
- //#region ../core/src/constants/plugin.ts
27
- const UNPLUGIN_BUILDER_VARIANTS = [
28
- "rollup",
29
- "webpack",
30
- "rspack",
31
- "vite",
32
- "esbuild",
33
- "farm",
34
- "unloader",
35
- "rolldown",
36
- "bun"
37
- ];
38
- const BUILDER_VARIANTS = [
39
- ...UNPLUGIN_BUILDER_VARIANTS,
40
- "tsup",
41
- "tsdown",
42
- "unbuild"
43
- ];
44
- const PLUGIN_NON_HOOK_FIELDS = [
45
- "name",
46
- "api",
47
- "enforce",
48
- "dedupe",
49
- "applyToEnvironment"
50
- ];
51
- const PLUGIN_HOOKS_FIELDS = [
52
- ...SUPPORTED_COMMANDS,
53
- "config",
54
- "configEnvironment",
55
- "configResolved",
56
- "types",
57
- "buildStart",
58
- "buildEnd",
59
- "transform",
60
- "load",
61
- "resolveId",
62
- "writeBundle"
63
- ];
64
- const KNOWN_PLUGIN_FIELDS = [
65
- ...PLUGIN_NON_HOOK_FIELDS,
66
- ...PLUGIN_HOOKS_FIELDS,
67
- ...BUILDER_VARIANTS
68
- ];
69
-
70
- //#endregion
71
- //#region ../core/src/constants/environments.ts
72
- const DEFAULT_ENVIRONMENT = "default";
73
- const GLOBAL_ENVIRONMENT = "__global__";
74
-
75
- //#endregion
76
- //#region ../core/src/constants/meta.ts
77
- const ROOT_HASH_LENGTH = 45;
78
- const CACHE_HASH_LENGTH = 62;
79
-
80
- //#endregion
81
- //#region ../core/src/lib/config.ts
82
- /**
83
- * Loads the workspace configuration.
84
- *
85
- * @param workspaceRoot - The root directory of the workspace.
86
- * @param cwd - The current working directory to start searching from.
87
- * @returns A promise that resolves to the loaded workspace configuration.
88
- */
89
- async function loadWorkspaceConfig(workspaceRoot, cwd) {
90
- return defu$1({ workspaceRoot }, await getWorkspaceConfig(true, {
91
- cwd,
92
- workspaceRoot,
93
- useDefault: true
94
- }));
95
- }
96
- /**
97
- * Loads the user configuration file for the project.
98
- *
99
- * @param projectRoot - The root directory of the project.
100
- * @param workspaceRoot - The root directory of the workspace.
101
- * @param jiti - An instance of Jiti to resolve modules from
102
- * @param command - The {@link PowerlinesCommand} string associated with the current running process
103
- * @param mode - The mode in which the project is running (default is "production").
104
- * @param configFile - An optional path to a specific configuration file.
105
- * @param framework - The framework name to use for default configuration file names.
106
- * @returns A promise that resolves to the resolved user configuration.
107
- */
108
- async function loadUserConfigFile(projectRoot, workspaceRoot, jiti, command, mode = "production", configFile, framework = "powerlines") {
109
- let resolvedUserConfig = {};
110
- let resolvedUserConfigFile;
111
- if (configFile) resolvedUserConfigFile = existsSync(replacePath(configFile, projectRoot)) ? replacePath(configFile, projectRoot) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), replacePath(configFile, projectRoot))) ? joinPaths(appendPath(projectRoot, workspaceRoot), replacePath(configFile, projectRoot)) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), configFile)) ? joinPaths(appendPath(projectRoot, workspaceRoot), configFile) : void 0;
112
- if (!resolvedUserConfigFile) resolvedUserConfigFile = existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.js`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.js`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`) : void 0;
113
- if (resolvedUserConfigFile) {
114
- const resolved = await jiti.import(jiti.esmResolve(resolvedUserConfigFile));
115
- if (resolved) {
116
- let config = {};
117
- if (isFunction(resolved)) config = await Promise.resolve(resolved({
118
- command,
119
- mode,
120
- isSsrBuild: false,
121
- isPreview: false
122
- }));
123
- if (isSetObject(config)) resolvedUserConfig = {
124
- ...config,
125
- config,
126
- configFile: resolvedUserConfigFile
127
- };
128
- }
129
- }
130
- const result = await loadConfig({
131
- cwd: projectRoot,
132
- name: framework,
133
- envName: mode,
134
- globalRc: true,
135
- packageJson: camelCase(framework),
136
- dotenv: true,
137
- jiti
138
- });
139
- return defu$1(resolvedUserConfig, isSetObject(result?.config) ? {
140
- ...result.config,
141
- ...result
142
- } : {});
143
- }
144
-
145
- //#endregion
146
- export { DEFAULT_ENVIRONMENT as a, PLUGIN_HOOKS_FIELDS as c, ROOT_HASH_LENGTH as i, PLUGIN_NON_HOOK_FIELDS as l, loadWorkspaceConfig as n, GLOBAL_ENVIRONMENT as o, CACHE_HASH_LENGTH as r, BUILDER_VARIANTS as s, loadUserConfigFile as t, UNPLUGIN_BUILDER_VARIANTS as u };
147
- //# sourceMappingURL=config-LoR-NIJg.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-LoR-NIJg.mjs","names":["defu","resolvedUserConfig: Partial<ParsedUserConfig>","resolvedUserConfigFile: string | undefined","loadConfigC12"],"sources":["../../../core/src/constants/commands.ts","../../../core/src/constants/plugin.ts","../../../core/src/constants/environments.ts","../../../core/src/constants/meta.ts","../../../core/src/lib/config.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const SUPPORTED_COMMANDS = [\n \"new\",\n \"clean\",\n \"prepare\",\n \"lint\",\n \"test\",\n \"build\",\n \"docs\",\n \"deploy\",\n \"finalize\"\n] as const;\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { SUPPORTED_COMMANDS } from \"./commands\";\n\nexport const UNPLUGIN_BUILDER_VARIANTS = [\n \"rollup\",\n \"webpack\",\n \"rspack\",\n \"vite\",\n \"esbuild\",\n \"farm\",\n \"unloader\",\n \"rolldown\",\n \"bun\"\n] as const;\n\nexport const BUILDER_VARIANTS = [\n ...UNPLUGIN_BUILDER_VARIANTS,\n \"tsup\",\n \"tsdown\",\n \"unbuild\"\n] as const;\n\nexport const PLUGIN_NON_HOOK_FIELDS = [\n \"name\",\n \"api\",\n \"enforce\",\n \"dedupe\",\n \"applyToEnvironment\"\n] as const;\n\nexport const PLUGIN_HOOKS_FIELDS = [\n ...SUPPORTED_COMMANDS,\n \"config\",\n \"configEnvironment\",\n \"configResolved\",\n \"types\",\n \"buildStart\",\n \"buildEnd\",\n \"transform\",\n \"load\",\n \"resolveId\",\n \"writeBundle\"\n] as const;\n\nexport const KNOWN_PLUGIN_FIELDS = [\n ...PLUGIN_NON_HOOK_FIELDS,\n ...PLUGIN_HOOKS_FIELDS,\n ...BUILDER_VARIANTS\n] as const;\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const DEFAULT_ENVIRONMENT = \"default\" as const;\nexport const GLOBAL_ENVIRONMENT = \"__global__\" as const;\n\n// General environment names that can be used in plugins and configurations\nexport const CLIENT_ENVIRONMENT = \"client\" as const;\nexport const SERVER_ENVIRONMENT = \"server\" as const;\nexport const SSR_ENVIRONMENT = \"ssr\" as const;\nexport const RSC_ENVIRONMENT = \"rsc\" as const;\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const ROOT_HASH_LENGTH = 45;\nexport const CACHE_HASH_LENGTH = 62;\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { getWorkspaceConfig } from \"@storm-software/config-tools/get-config\";\nimport { existsSync } from \"@stryke/fs/exists\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport { camelCase } from \"@stryke/string-format/camel-case\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport { loadConfig as loadConfigC12 } from \"c12\";\nimport defu from \"defu\";\nimport type { Jiti } from \"jiti\";\nimport type {\n ParsedUserConfig,\n PowerlinesCommand,\n UserConfig,\n WorkspaceConfig\n} from \"../types/config\";\nimport { AnyUserConfig } from \"../types/config\";\nimport { Context } from \"../types/context\";\n\nexport type PartiallyResolvedContext<TContext extends Context = Context> = Omit<\n TContext,\n \"config\" | \"tsconfig\" | \"entry\" | \"fs\" | \"compiler\" | \"unimport\"\n> &\n Partial<TContext> & {\n config: TContext[\"config\"];\n };\n\n/**\n * Loads the workspace configuration.\n *\n * @param workspaceRoot - The root directory of the workspace.\n * @param cwd - The current working directory to start searching from.\n * @returns A promise that resolves to the loaded workspace configuration.\n */\nexport async function loadWorkspaceConfig(\n workspaceRoot: string,\n cwd: string\n): Promise<WorkspaceConfig> {\n return defu(\n {\n workspaceRoot\n },\n await getWorkspaceConfig(true, {\n cwd,\n workspaceRoot,\n useDefault: true\n })\n );\n}\n\n/**\n * Loads the user configuration file for the project.\n *\n * @param projectRoot - The root directory of the project.\n * @param workspaceRoot - The root directory of the workspace.\n * @param jiti - An instance of Jiti to resolve modules from\n * @param command - The {@link PowerlinesCommand} string associated with the current running process\n * @param mode - The mode in which the project is running (default is \"production\").\n * @param configFile - An optional path to a specific configuration file.\n * @param framework - The framework name to use for default configuration file names.\n * @returns A promise that resolves to the resolved user configuration.\n */\nexport async function loadUserConfigFile(\n projectRoot: string,\n workspaceRoot: string,\n jiti: Jiti,\n command?: PowerlinesCommand,\n mode = \"production\",\n configFile?: string,\n framework = \"powerlines\"\n): Promise<ParsedUserConfig> {\n let resolvedUserConfig: Partial<ParsedUserConfig> = {};\n\n let resolvedUserConfigFile: string | undefined;\n if (configFile) {\n resolvedUserConfigFile = existsSync(replacePath(configFile, projectRoot))\n ? replacePath(configFile, projectRoot)\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n replacePath(configFile, projectRoot)\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n replacePath(configFile, projectRoot)\n )\n : existsSync(\n joinPaths(appendPath(projectRoot, workspaceRoot), configFile)\n )\n ? joinPaths(appendPath(projectRoot, workspaceRoot), configFile)\n : undefined;\n }\n\n if (!resolvedUserConfigFile) {\n resolvedUserConfigFile = existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.ts`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.ts`\n )\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.js`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.js`\n )\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.mts`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.mts`\n )\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.mjs`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.mjs`\n )\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.ts`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.ts`\n )\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.js`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.js`\n )\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.mts`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.mts`\n )\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.mjs`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.mjs`\n )\n : undefined;\n }\n\n if (resolvedUserConfigFile) {\n const resolved = await jiti.import(jiti.esmResolve(resolvedUserConfigFile));\n if (resolved) {\n let config = {};\n if (isFunction(resolved)) {\n config = await Promise.resolve(\n resolved({\n command,\n mode,\n isSsrBuild: false,\n isPreview: false\n })\n );\n }\n\n if (isSetObject(config)) {\n resolvedUserConfig = {\n ...config,\n config: config as UserConfig,\n configFile: resolvedUserConfigFile\n };\n }\n }\n }\n\n const result = await loadConfigC12({\n cwd: projectRoot,\n name: framework,\n envName: mode,\n globalRc: true,\n packageJson: camelCase(framework),\n dotenv: true,\n jiti\n });\n\n return defu(\n resolvedUserConfig,\n isSetObject(result?.config) ? { ...result.config, ...result } : {}\n ) as ParsedUserConfig;\n}\n\n/**\n * A type helper to make it easier to use `powerlines.config.ts` files.\n *\n * @remarks\n * The function accepts a direct {@link AnyUserConfig} object and returns it typed as a {@link UserConfig} object.\n */\nexport function defineConfig(config: AnyUserConfig): UserConfig {\n return config as any;\n}\n"],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants-BvODbBl8.d.ts","names":[],"sources":["../../src/helpers/constants.ts"],"sourcesContent":[],"mappings":";;AAqBA;;cAAa"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants-ByputsG8.d.mts","names":[],"sources":["../../src/helpers/constants.ts"],"sourcesContent":[],"mappings":";;AAqBA;;cAAa"}
@@ -1,39 +0,0 @@
1
-
2
- //#region src/helpers/constants.ts
3
- /**
4
- * A list of Nx input strings that describe the Powerlines configuration file
5
- */
6
- const CONFIG_INPUTS = [
7
- "{projectRoot}/{framework}.json",
8
- "{projectRoot}/{framework}.*.json",
9
- "{projectRoot}/{framework}.jsonc",
10
- "{projectRoot}/{framework}.*.jsonc",
11
- "{projectRoot}/{framework}.json5",
12
- "{projectRoot}/{framework}.*.json5",
13
- "{projectRoot}/{framework}.yaml",
14
- "{projectRoot}/{framework}.*.yaml",
15
- "{projectRoot}/{framework}.yml",
16
- "{projectRoot}/{framework}.*.yml",
17
- "{projectRoot}/{framework}.toml",
18
- "{projectRoot}/{framework}.*.toml",
19
- "{projectRoot}/{framework}.config.js",
20
- "{projectRoot}/{framework}.*.config.js",
21
- "{projectRoot}/{framework}.config.cjs",
22
- "{projectRoot}/{framework}.*.config.cjs",
23
- "{projectRoot}/{framework}.config.mjs",
24
- "{projectRoot}/{framework}.*.config.mjs",
25
- "{projectRoot}/{framework}.config.ts",
26
- "{projectRoot}/{framework}.*.config.ts",
27
- "{projectRoot}/{framework}.config.cts",
28
- "{projectRoot}/{framework}.*.config.cts",
29
- "{projectRoot}/{framework}.config.mts",
30
- "{projectRoot}/{framework}.*.config.mts"
31
- ];
32
-
33
- //#endregion
34
- Object.defineProperty(exports, 'CONFIG_INPUTS', {
35
- enumerable: true,
36
- get: function () {
37
- return CONFIG_INPUTS;
38
- }
39
- });
@@ -1,34 +0,0 @@
1
- //#region src/helpers/constants.ts
2
- /**
3
- * A list of Nx input strings that describe the Powerlines configuration file
4
- */
5
- const CONFIG_INPUTS = [
6
- "{projectRoot}/{framework}.json",
7
- "{projectRoot}/{framework}.*.json",
8
- "{projectRoot}/{framework}.jsonc",
9
- "{projectRoot}/{framework}.*.jsonc",
10
- "{projectRoot}/{framework}.json5",
11
- "{projectRoot}/{framework}.*.json5",
12
- "{projectRoot}/{framework}.yaml",
13
- "{projectRoot}/{framework}.*.yaml",
14
- "{projectRoot}/{framework}.yml",
15
- "{projectRoot}/{framework}.*.yml",
16
- "{projectRoot}/{framework}.toml",
17
- "{projectRoot}/{framework}.*.toml",
18
- "{projectRoot}/{framework}.config.js",
19
- "{projectRoot}/{framework}.*.config.js",
20
- "{projectRoot}/{framework}.config.cjs",
21
- "{projectRoot}/{framework}.*.config.cjs",
22
- "{projectRoot}/{framework}.config.mjs",
23
- "{projectRoot}/{framework}.*.config.mjs",
24
- "{projectRoot}/{framework}.config.ts",
25
- "{projectRoot}/{framework}.*.config.ts",
26
- "{projectRoot}/{framework}.config.cts",
27
- "{projectRoot}/{framework}.*.config.cts",
28
- "{projectRoot}/{framework}.config.mts",
29
- "{projectRoot}/{framework}.*.config.mts"
30
- ];
31
-
32
- //#endregion
33
- export { CONFIG_INPUTS as t };
34
- //# sourceMappingURL=constants-DzvoYj5w.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants-DzvoYj5w.mjs","names":[],"sources":["../../src/helpers/constants.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/**\n * A list of Nx input strings that describe the Powerlines configuration file\n */\nexport const CONFIG_INPUTS = [\n \"{projectRoot}/{framework}.json\",\n \"{projectRoot}/{framework}.*.json\",\n \"{projectRoot}/{framework}.jsonc\",\n \"{projectRoot}/{framework}.*.jsonc\",\n \"{projectRoot}/{framework}.json5\",\n \"{projectRoot}/{framework}.*.json5\",\n \"{projectRoot}/{framework}.yaml\",\n \"{projectRoot}/{framework}.*.yaml\",\n \"{projectRoot}/{framework}.yml\",\n \"{projectRoot}/{framework}.*.yml\",\n \"{projectRoot}/{framework}.toml\",\n \"{projectRoot}/{framework}.*.toml\",\n \"{projectRoot}/{framework}.config.js\",\n \"{projectRoot}/{framework}.*.config.js\",\n \"{projectRoot}/{framework}.config.cjs\",\n \"{projectRoot}/{framework}.*.config.cjs\",\n \"{projectRoot}/{framework}.config.mjs\",\n \"{projectRoot}/{framework}.*.config.mjs\",\n \"{projectRoot}/{framework}.config.ts\",\n \"{projectRoot}/{framework}.*.config.ts\",\n \"{projectRoot}/{framework}.config.cts\",\n \"{projectRoot}/{framework}.*.config.cts\",\n \"{projectRoot}/{framework}.config.mts\",\n \"{projectRoot}/{framework}.*.config.mts\"\n] as const;\n"],"mappings":";;;;AAqBA,MAAa,gBAAgB;CAC3B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD"}
File without changes
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
File without changes
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-DIj3oU64.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";UAkBiB,eAAA;EAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-DN475itb.d.ts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";UAkBiB,eAAA;EAAA"}
@@ -1 +0,0 @@
1
- export { };