@powerlines/nx 0.13.232 → 0.13.233

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 (155) hide show
  1. package/dist/src/base/base-executor.schema.d.ts +175 -164
  2. package/package.json +28 -18
  3. package/dist/src/_virtual/_rolldown/runtime.js +0 -28
  4. package/dist/src/base/base-executor.d.mts +0 -60
  5. package/dist/src/base/base-executor.d.mts.map +0 -1
  6. package/dist/src/base/base-executor.d.ts +0 -60
  7. package/dist/src/base/base-executor.d.ts.map +0 -1
  8. package/dist/src/base/base-executor.js +0 -118
  9. package/dist/src/base/base-executor.mjs +0 -116
  10. package/dist/src/base/base-executor.mjs.map +0 -1
  11. package/dist/src/base/base-executor.schema.d.js +0 -0
  12. package/dist/src/base/base-executor.schema.d.mts +0 -167
  13. package/dist/src/base/base-executor.schema.d.mts.map +0 -1
  14. package/dist/src/base/base-executor.schema.d.ts.map +0 -1
  15. package/dist/src/base/base-executor.untyped.d.mts +0 -5
  16. package/dist/src/base/base-executor.untyped.d.mts.map +0 -1
  17. package/dist/src/base/base-executor.untyped.d.ts +0 -4
  18. package/dist/src/base/base-executor.untyped.d.ts.map +0 -1
  19. package/dist/src/base/base-executor.untyped.js +0 -176
  20. package/dist/src/base/base-executor.untyped.mjs +0 -177
  21. package/dist/src/base/base-executor.untyped.mjs.map +0 -1
  22. package/dist/src/base/index.d.mts +0 -2
  23. package/dist/src/base/index.d.ts +0 -2
  24. package/dist/src/base/index.js +0 -5
  25. package/dist/src/base/index.mjs +0 -4
  26. package/dist/src/base-executor-BTwUZeOz.js +0 -122
  27. package/dist/src/base-executor-HCD7M10I.mjs +0 -116
  28. package/dist/src/base-executor-HCD7M10I.mjs.map +0 -1
  29. package/dist/src/base-executor.untyped-B9Vk-kJC.mjs +0 -177
  30. package/dist/src/base-executor.untyped-B9Vk-kJC.mjs.map +0 -1
  31. package/dist/src/base-executor.untyped-DZhWL1zT.js +0 -181
  32. package/dist/src/executors/build/executor.d.mts +0 -194
  33. package/dist/src/executors/build/executor.d.mts.map +0 -1
  34. package/dist/src/executors/build/executor.d.ts +0 -193
  35. package/dist/src/executors/build/executor.d.ts.map +0 -1
  36. package/dist/src/executors/build/executor.js +0 -11
  37. package/dist/src/executors/build/executor.mjs +0 -12
  38. package/dist/src/executors/build/executor.mjs.map +0 -1
  39. package/dist/src/executors/build/untyped.d.mts +0 -5
  40. package/dist/src/executors/build/untyped.d.mts.map +0 -1
  41. package/dist/src/executors/build/untyped.d.ts +0 -4
  42. package/dist/src/executors/build/untyped.d.ts.map +0 -1
  43. package/dist/src/executors/build/untyped.js +0 -24
  44. package/dist/src/executors/build/untyped.mjs +0 -25
  45. package/dist/src/executors/build/untyped.mjs.map +0 -1
  46. package/dist/src/executors/clean/executor.d.mts +0 -171
  47. package/dist/src/executors/clean/executor.d.mts.map +0 -1
  48. package/dist/src/executors/clean/executor.d.ts +0 -170
  49. package/dist/src/executors/clean/executor.d.ts.map +0 -1
  50. package/dist/src/executors/clean/executor.js +0 -11
  51. package/dist/src/executors/clean/executor.mjs +0 -12
  52. package/dist/src/executors/clean/executor.mjs.map +0 -1
  53. package/dist/src/executors/clean/untyped.d.mts +0 -5
  54. package/dist/src/executors/clean/untyped.d.mts.map +0 -1
  55. package/dist/src/executors/clean/untyped.d.ts +0 -4
  56. package/dist/src/executors/clean/untyped.d.ts.map +0 -1
  57. package/dist/src/executors/clean/untyped.js +0 -16
  58. package/dist/src/executors/clean/untyped.mjs +0 -17
  59. package/dist/src/executors/clean/untyped.mjs.map +0 -1
  60. package/dist/src/executors/docs/executor.d.mts +0 -185
  61. package/dist/src/executors/docs/executor.d.mts.map +0 -1
  62. package/dist/src/executors/docs/executor.d.ts +0 -184
  63. package/dist/src/executors/docs/executor.d.ts.map +0 -1
  64. package/dist/src/executors/docs/executor.js +0 -11
  65. package/dist/src/executors/docs/executor.mjs +0 -12
  66. package/dist/src/executors/docs/executor.mjs.map +0 -1
  67. package/dist/src/executors/docs/untyped.d.mts +0 -5
  68. package/dist/src/executors/docs/untyped.d.mts.map +0 -1
  69. package/dist/src/executors/docs/untyped.d.ts +0 -4
  70. package/dist/src/executors/docs/untyped.d.ts.map +0 -1
  71. package/dist/src/executors/docs/untyped.js +0 -16
  72. package/dist/src/executors/docs/untyped.mjs +0 -17
  73. package/dist/src/executors/docs/untyped.mjs.map +0 -1
  74. package/dist/src/executors/lint/executor.d.mts +0 -185
  75. package/dist/src/executors/lint/executor.d.mts.map +0 -1
  76. package/dist/src/executors/lint/executor.d.ts +0 -184
  77. package/dist/src/executors/lint/executor.d.ts.map +0 -1
  78. package/dist/src/executors/lint/executor.js +0 -11
  79. package/dist/src/executors/lint/executor.mjs +0 -12
  80. package/dist/src/executors/lint/executor.mjs.map +0 -1
  81. package/dist/src/executors/lint/untyped.d.mts +0 -5
  82. package/dist/src/executors/lint/untyped.d.mts.map +0 -1
  83. package/dist/src/executors/lint/untyped.d.ts +0 -4
  84. package/dist/src/executors/lint/untyped.d.ts.map +0 -1
  85. package/dist/src/executors/lint/untyped.js +0 -16
  86. package/dist/src/executors/lint/untyped.mjs +0 -17
  87. package/dist/src/executors/lint/untyped.mjs.map +0 -1
  88. package/dist/src/executors/prepare/executor.d.mts +0 -185
  89. package/dist/src/executors/prepare/executor.d.mts.map +0 -1
  90. package/dist/src/executors/prepare/executor.d.ts +0 -184
  91. package/dist/src/executors/prepare/executor.d.ts.map +0 -1
  92. package/dist/src/executors/prepare/executor.js +0 -11
  93. package/dist/src/executors/prepare/executor.mjs +0 -12
  94. package/dist/src/executors/prepare/executor.mjs.map +0 -1
  95. package/dist/src/executors/prepare/untyped.d.mts +0 -5
  96. package/dist/src/executors/prepare/untyped.d.mts.map +0 -1
  97. package/dist/src/executors/prepare/untyped.d.ts +0 -4
  98. package/dist/src/executors/prepare/untyped.d.ts.map +0 -1
  99. package/dist/src/executors/prepare/untyped.js +0 -26
  100. package/dist/src/executors/prepare/untyped.mjs +0 -27
  101. package/dist/src/executors/prepare/untyped.mjs.map +0 -1
  102. package/dist/src/generators/sync/generator.d.mts +0 -7
  103. package/dist/src/generators/sync/generator.d.mts.map +0 -1
  104. package/dist/src/generators/sync/generator.d.ts +0 -7
  105. package/dist/src/generators/sync/generator.d.ts.map +0 -1
  106. package/dist/src/generators/sync/generator.js +0 -11
  107. package/dist/src/generators/sync/generator.mjs +0 -10
  108. package/dist/src/generators/sync/generator.mjs.map +0 -1
  109. package/dist/src/generators/sync/untyped.d.mts +0 -5
  110. package/dist/src/generators/sync/untyped.d.mts.map +0 -1
  111. package/dist/src/generators/sync/untyped.d.ts +0 -4
  112. package/dist/src/generators/sync/untyped.d.ts.map +0 -1
  113. package/dist/src/generators/sync/untyped.js +0 -22
  114. package/dist/src/generators/sync/untyped.mjs +0 -23
  115. package/dist/src/generators/sync/untyped.mjs.map +0 -1
  116. package/dist/src/helpers/constants.d.mts +0 -8
  117. package/dist/src/helpers/constants.d.mts.map +0 -1
  118. package/dist/src/helpers/constants.d.ts +0 -8
  119. package/dist/src/helpers/constants.d.ts.map +0 -1
  120. package/dist/src/helpers/constants.js +0 -34
  121. package/dist/src/helpers/constants.mjs +0 -34
  122. package/dist/src/helpers/constants.mjs.map +0 -1
  123. package/dist/src/helpers/index.d.mts +0 -3
  124. package/dist/src/helpers/index.d.ts +0 -3
  125. package/dist/src/helpers/index.js +0 -8
  126. package/dist/src/helpers/index.mjs +0 -4
  127. package/dist/src/helpers/plugin-utilities.d.mts +0 -56
  128. package/dist/src/helpers/plugin-utilities.d.mts.map +0 -1
  129. package/dist/src/helpers/plugin-utilities.d.ts +0 -56
  130. package/dist/src/helpers/plugin-utilities.d.ts.map +0 -1
  131. package/dist/src/helpers/plugin-utilities.js +0 -255
  132. package/dist/src/helpers/plugin-utilities.mjs +0 -251
  133. package/dist/src/helpers/plugin-utilities.mjs.map +0 -1
  134. package/dist/src/index.d.mts +0 -7
  135. package/dist/src/index.d.ts +0 -7
  136. package/dist/src/index.js +0 -12
  137. package/dist/src/index.mjs +0 -7
  138. package/dist/src/plugin/index.d.mts +0 -291
  139. package/dist/src/plugin/index.d.mts.map +0 -1
  140. package/dist/src/plugin/index.d.ts +0 -291
  141. package/dist/src/plugin/index.d.ts.map +0 -1
  142. package/dist/src/plugin/index.js +0 -288
  143. package/dist/src/plugin/index.mjs +0 -286
  144. package/dist/src/plugin/index.mjs.map +0 -1
  145. package/dist/src/rolldown-runtime-C24Yb2bl.js +0 -33
  146. package/dist/src/types/index.d.mts +0 -2
  147. package/dist/src/types/index.d.ts +0 -2
  148. package/dist/src/types/index.js +0 -0
  149. package/dist/src/types/index.mjs +0 -1
  150. package/dist/src/types/plugin.d.mts +0 -288
  151. package/dist/src/types/plugin.d.mts.map +0 -1
  152. package/dist/src/types/plugin.d.ts +0 -288
  153. package/dist/src/types/plugin.d.ts.map +0 -1
  154. package/dist/src/types/plugin.js +0 -0
  155. package/dist/src/types/plugin.mjs +0 -1
@@ -1,177 +0,0 @@
1
- import { defineUntypedSchema } from "untyped";
2
-
3
- //#region src/base/base-executor.untyped.ts
4
- var base_executor_untyped_default = defineUntypedSchema({
5
- $schema: {
6
- id: "BaseExecutorSchema",
7
- title: "Base Executor",
8
- description: "A shared/base schema type definition for Powerlines executors",
9
- required: []
10
- },
11
- config: { $schema: {
12
- title: "Powerlines Configuration File",
13
- type: "string",
14
- format: "path",
15
- description: "The path to the Powerlines configuration file. Alias for `configFile`."
16
- } },
17
- configFile: { $schema: {
18
- title: "Powerlines Configuration File",
19
- type: "string",
20
- format: "path",
21
- description: "The path to the Powerlines configuration file. Alias for `config`."
22
- } },
23
- configIndex: {
24
- $schema: {
25
- title: "Powerlines Configuration Index",
26
- type: "number",
27
- description: "The index in the Powerlines configuration file to use (if an array of configurations are provided)."
28
- },
29
- $default: 0
30
- },
31
- input: { $schema: {
32
- title: "Input Entry File(s)",
33
- format: "path",
34
- type: "array",
35
- description: "The entry file(s) that serve as the input for the project",
36
- items: { type: "string" }
37
- } },
38
- tsconfig: { $schema: {
39
- title: "TSConfig Path",
40
- type: "string",
41
- format: "path",
42
- description: "The path to the tsconfig file"
43
- } },
44
- outputPath: { $schema: {
45
- title: "Output Path",
46
- type: "string",
47
- format: "path",
48
- description: "The path to the output directory for the build artifacts"
49
- } },
50
- copyPath: { $schema: {
51
- title: "Copy Path",
52
- description: "A directory path to copy the build artifacts into",
53
- oneOf: [{
54
- type: "string",
55
- format: "path"
56
- }, {
57
- type: "boolean",
58
- enum: [false]
59
- }]
60
- } },
61
- sourceMap: { $schema: {
62
- title: "Sourcemap",
63
- type: "boolean",
64
- description: "Generate a sourcemap"
65
- } },
66
- minify: { $schema: {
67
- title: "Minify",
68
- type: "boolean",
69
- description: "Minify the output"
70
- } },
71
- format: {
72
- $schema: {
73
- title: "Format",
74
- type: "array",
75
- description: "The format to build",
76
- items: {
77
- type: "string",
78
- enum: [
79
- "cjs",
80
- "esm",
81
- "iife"
82
- ]
83
- }
84
- },
85
- $resolve: (val = ["cjs", "esm"]) => val.filter((format) => [
86
- "cjs",
87
- "esm",
88
- "iife"
89
- ].includes(format))
90
- },
91
- platform: { $schema: {
92
- title: "Platform",
93
- type: "string",
94
- description: "The platform to build",
95
- enum: [
96
- "neutral",
97
- "node",
98
- "browser"
99
- ]
100
- } },
101
- external: {
102
- $schema: {
103
- title: "External",
104
- type: "array",
105
- description: "The external dependencies"
106
- },
107
- $resolve: (val = []) => [].concat(val)
108
- },
109
- noExternal: {
110
- $schema: {
111
- title: "No External",
112
- type: "array",
113
- description: "The dependencies that should not be treated as external"
114
- },
115
- $resolve: (val = []) => [].concat(val)
116
- },
117
- skipNodeModulesBundle: { $schema: {
118
- title: "Skip Node Modules Bundle",
119
- type: "boolean",
120
- description: "Skip bundling node_modules during the build process (if required)"
121
- } },
122
- mode: { $schema: {
123
- title: "Mode",
124
- type: "string",
125
- description: "The build mode",
126
- enum: [
127
- "development",
128
- "test",
129
- "production"
130
- ]
131
- } },
132
- logLevel: { $schema: {
133
- title: "Log Level",
134
- type: "string",
135
- description: "The log level to use for the build process",
136
- enum: [
137
- "fatal",
138
- "error",
139
- "warn",
140
- "success",
141
- "info",
142
- "debug",
143
- "trace",
144
- "silent"
145
- ]
146
- } },
147
- define: {
148
- $schema: {
149
- title: "Define",
150
- type: "object",
151
- tsType: "Record<string, string>",
152
- description: "The `define` values"
153
- },
154
- $resolve: (val = {}) => val,
155
- $default: {}
156
- },
157
- assets: { $schema: {
158
- title: "Assets",
159
- type: "any",
160
- tsType: "Array<{ input?: string; output?: string; glob: string; ignore?: string[]; dot?: boolean; }>",
161
- description: "The `assets` values"
162
- } },
163
- additionalArgs: {
164
- $schema: {
165
- title: "Additional Arguments",
166
- type: "object",
167
- tsType: "Record<string, string>",
168
- description: "The additional arguments provided during execution of the command"
169
- },
170
- $resolve: (val = {}) => val,
171
- $default: {}
172
- }
173
- });
174
-
175
- //#endregion
176
- export { base_executor_untyped_default as default };
177
- //# sourceMappingURL=base-executor.untyped.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-executor.untyped.mjs","names":[],"sources":["../../../src/base/base-executor.untyped.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\nimport { defineUntypedSchema } from \"untyped\";\n\nexport default defineUntypedSchema({\n $schema: {\n id: \"BaseExecutorSchema\",\n title: \"Base Executor\",\n description:\n \"A shared/base schema type definition for Powerlines executors\",\n required: []\n },\n config: {\n $schema: {\n title: \"Powerlines Configuration File\",\n type: \"string\",\n format: \"path\",\n description:\n \"The path to the Powerlines configuration file. Alias for `configFile`.\"\n }\n },\n configFile: {\n $schema: {\n title: \"Powerlines Configuration File\",\n type: \"string\",\n format: \"path\",\n description:\n \"The path to the Powerlines configuration file. Alias for `config`.\"\n }\n },\n configIndex: {\n $schema: {\n title: \"Powerlines Configuration Index\",\n type: \"number\",\n description:\n \"The index in the Powerlines configuration file to use (if an array of configurations are provided).\"\n },\n $default: 0\n },\n input: {\n $schema: {\n title: \"Input Entry File(s)\",\n format: \"path\",\n type: \"array\",\n description: \"The entry file(s) that serve as the input for the project\",\n items: { type: \"string\" }\n }\n },\n tsconfig: {\n $schema: {\n title: \"TSConfig Path\",\n type: \"string\",\n format: \"path\",\n description: \"The path to the tsconfig file\"\n }\n },\n outputPath: {\n $schema: {\n title: \"Output Path\",\n type: \"string\",\n format: \"path\",\n description: \"The path to the output directory for the build artifacts\"\n }\n },\n copyPath: {\n $schema: {\n title: \"Copy Path\",\n description: \"A directory path to copy the build artifacts into\",\n oneOf: [\n { type: \"string\", format: \"path\" },\n { type: \"boolean\", enum: [false] }\n ]\n }\n },\n sourceMap: {\n $schema: {\n title: \"Sourcemap\",\n type: \"boolean\",\n description: \"Generate a sourcemap\"\n }\n },\n minify: {\n $schema: {\n title: \"Minify\",\n type: \"boolean\",\n description: \"Minify the output\"\n }\n },\n format: {\n $schema: {\n title: \"Format\",\n type: \"array\",\n description: \"The format to build\",\n items: {\n type: \"string\",\n enum: [\"cjs\", \"esm\", \"iife\"]\n }\n },\n $resolve: (val: string[] = [\"cjs\", \"esm\"]) =>\n val.filter(format => [\"cjs\", \"esm\", \"iife\"].includes(format))\n },\n platform: {\n $schema: {\n title: \"Platform\",\n type: \"string\",\n description: \"The platform to build\",\n enum: [\"neutral\", \"node\", \"browser\"]\n }\n },\n external: {\n $schema: {\n title: \"External\",\n type: \"array\",\n description: \"The external dependencies\"\n },\n $resolve: (val: string[] = []) => ([] as string[]).concat(val)\n },\n noExternal: {\n $schema: {\n title: \"No External\",\n type: \"array\",\n description: \"The dependencies that should not be treated as external\"\n },\n $resolve: (val: string[] = []) => ([] as string[]).concat(val)\n },\n skipNodeModulesBundle: {\n $schema: {\n title: \"Skip Node Modules Bundle\",\n type: \"boolean\",\n description:\n \"Skip bundling node_modules during the build process (if required)\"\n }\n },\n mode: {\n $schema: {\n title: \"Mode\",\n type: \"string\",\n description: \"The build mode\",\n enum: [\"development\", \"test\", \"production\"]\n }\n },\n logLevel: {\n $schema: {\n title: \"Log Level\",\n type: \"string\",\n description: \"The log level to use for the build process\",\n enum: [\n \"fatal\",\n \"error\",\n \"warn\",\n \"success\",\n \"info\",\n \"debug\",\n \"trace\",\n \"silent\"\n ]\n }\n },\n define: {\n $schema: {\n title: \"Define\",\n type: \"object\",\n tsType: \"Record<string, string>\",\n description: \"The `define` values\"\n },\n $resolve: (val: Record<string, string> = {}) => val,\n $default: {}\n },\n assets: {\n $schema: {\n title: \"Assets\",\n type: \"any\",\n tsType:\n \"Array<{ input?: string; output?: string; glob: string; ignore?: string[]; dot?: boolean; }>\",\n description: \"The `assets` values\"\n }\n },\n additionalArgs: {\n $schema: {\n title: \"Additional Arguments\",\n type: \"object\",\n tsType: \"Record<string, string>\",\n description:\n \"The additional arguments provided during execution of the command\"\n },\n $resolve: (val: Record<string, string> = {}) => val,\n $default: {}\n }\n});\n"],"mappings":";;;AAoBA,oCAAe,oBAAoB;CACjC,SAAS;EACP,IAAI;EACJ,OAAO;EACP,aACE;EACF,UAAU,CAAC;CACb;CACA,QAAQ,EACN,SAAS;EACP,OAAO;EACP,MAAM;EACN,QAAQ;EACR,aACE;CACJ,EACF;CACA,YAAY,EACV,SAAS;EACP,OAAO;EACP,MAAM;EACN,QAAQ;EACR,aACE;CACJ,EACF;CACA,aAAa;EACX,SAAS;GACP,OAAO;GACP,MAAM;GACN,aACE;EACJ;EACA,UAAU;CACZ;CACA,OAAO,EACL,SAAS;EACP,OAAO;EACP,QAAQ;EACR,MAAM;EACN,aAAa;EACb,OAAO,EAAE,MAAM,SAAS;CAC1B,EACF;CACA,UAAU,EACR,SAAS;EACP,OAAO;EACP,MAAM;EACN,QAAQ;EACR,aAAa;CACf,EACF;CACA,YAAY,EACV,SAAS;EACP,OAAO;EACP,MAAM;EACN,QAAQ;EACR,aAAa;CACf,EACF;CACA,UAAU,EACR,SAAS;EACP,OAAO;EACP,aAAa;EACb,OAAO,CACL;GAAE,MAAM;GAAU,QAAQ;EAAO,GACjC;GAAE,MAAM;GAAW,MAAM,CAAC,KAAK;EAAE,CACnC;CACF,EACF;CACA,WAAW,EACT,SAAS;EACP,OAAO;EACP,MAAM;EACN,aAAa;CACf,EACF;CACA,QAAQ,EACN,SAAS;EACP,OAAO;EACP,MAAM;EACN,aAAa;CACf,EACF;CACA,QAAQ;EACN,SAAS;GACP,OAAO;GACP,MAAM;GACN,aAAa;GACb,OAAO;IACL,MAAM;IACN,MAAM;KAAC;KAAO;KAAO;IAAM;GAC7B;EACF;EACA,WAAW,MAAgB,CAAC,OAAO,KAAK,MACtC,IAAI,QAAO,WAAU;GAAC;GAAO;GAAO;EAAM,CAAC,CAAC,SAAS,MAAM,CAAC;CAChE;CACA,UAAU,EACR,SAAS;EACP,OAAO;EACP,MAAM;EACN,aAAa;EACb,MAAM;GAAC;GAAW;GAAQ;EAAS;CACrC,EACF;CACA,UAAU;EACR,SAAS;GACP,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA,WAAW,MAAgB,CAAC,MAAO,CAAC,CAAC,CAAc,OAAO,GAAG;CAC/D;CACA,YAAY;EACV,SAAS;GACP,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA,WAAW,MAAgB,CAAC,MAAO,CAAC,CAAC,CAAc,OAAO,GAAG;CAC/D;CACA,uBAAuB,EACrB,SAAS;EACP,OAAO;EACP,MAAM;EACN,aACE;CACJ,EACF;CACA,MAAM,EACJ,SAAS;EACP,OAAO;EACP,MAAM;EACN,aAAa;EACb,MAAM;GAAC;GAAe;GAAQ;EAAY;CAC5C,EACF;CACA,UAAU,EACR,SAAS;EACP,OAAO;EACP,MAAM;EACN,aAAa;EACb,MAAM;GACJ;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF;CACF,EACF;CACA,QAAQ;EACN,SAAS;GACP,OAAO;GACP,MAAM;GACN,QAAQ;GACR,aAAa;EACf;EACA,WAAW,MAA8B,CAAC,MAAM;EAChD,UAAU,CAAC;CACb;CACA,QAAQ,EACN,SAAS;EACP,OAAO;EACP,MAAM;EACN,QACE;EACF,aAAa;CACf,EACF;CACA,gBAAgB;EACd,SAAS;GACP,OAAO;GACP,MAAM;GACN,QAAQ;GACR,aACE;EACJ;EACA,WAAW,MAA8B,CAAC,MAAM;EAChD,UAAU,CAAC;CACb;AACF,CAAC"}
@@ -1,2 +0,0 @@
1
- import { PowerlinesExecutorApi, PowerlinesExecutorContext, WithExecutorOptions, withExecutor } from "./base-executor.mjs";
2
- export { PowerlinesExecutorApi, PowerlinesExecutorContext, WithExecutorOptions, withExecutor };
@@ -1,2 +0,0 @@
1
- import { PowerlinesExecutorApi, PowerlinesExecutorContext, WithExecutorOptions, withExecutor } from "./base-executor.js";
2
- export { PowerlinesExecutorApi, PowerlinesExecutorContext, WithExecutorOptions, withExecutor };
@@ -1,5 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_base_base_executor = require('./base-executor.js');
3
- require('./base-executor.untyped.js');
4
-
5
- exports.withExecutor = require_base_base_executor.withExecutor;
@@ -1,4 +0,0 @@
1
- import { withExecutor } from "./base-executor.mjs";
2
- import "./base-executor.untyped.mjs";
3
-
4
- export { withExecutor };
@@ -1,122 +0,0 @@
1
- const require_rolldown_runtime = require('./rolldown-runtime-C24Yb2bl.js');
2
- let _stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
3
- let _stryke_string_format_title_case = require("@stryke/string-format/title-case");
4
- let _stryke_type_checks_is_error = require("@stryke/type-checks/is-error");
5
- let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
6
- let defu = require("defu");
7
- defu = require_rolldown_runtime.__toESM(defu);
8
- let _storm_software_config_tools_logger = require("@storm-software/config-tools/logger");
9
- let _storm_software_workspace_tools_base_base_executor = require("@storm-software/workspace-tools/base/base-executor");
10
- let _stryke_helpers_omit = require("@stryke/helpers/omit");
11
- let _stryke_path_join = require("@stryke/path/join");
12
- let _stryke_type_checks_is_set = require("@stryke/type-checks/is-set");
13
- let _stryke_type_checks_is_set_array = require("@stryke/type-checks/is-set-array");
14
- let jiti = require("jiti");
15
-
16
- //#region src/base/base-executor.ts
17
- /**
18
- * A utility function to create a Powerlines executor that can be used with the `withRunExecutor` function.
19
- *
20
- * @remarks
21
- * This function is designed to simplify the creation of Powerlines executors by providing a consistent interface and error handling.
22
- *
23
- * @param command - The command that the executor will handle (e.g., "new", "prepare", "build", etc.).
24
- * @param executorFn - The function that will be executed when the command is run.
25
- * @param options - Additional options for configuring the executor, such as the import path for the API module and default execution options.
26
- * @returns A Promise that resolves to the result of the executor function.
27
- */
28
- function withExecutor(command, executorFn, options = {}) {
29
- const { importPath = "powerlines/api", defaultOptions = {}, framework = {} } = options;
30
- framework.name ??= "powerlines";
31
- framework.orgId ??= "storm-software";
32
- return (0, _storm_software_workspace_tools_base_base_executor.withRunExecutor)(`${(0, _stryke_string_format_title_case.titleCase)(framework.name)} - ${(0, _stryke_string_format_title_case.titleCase)(command)} executor`, async (options, context, workspaceConfig) => {
33
- if (!context.projectName) throw new Error(`The ${(0, _stryke_string_format_title_case.titleCase)(framework.name)} - ${(0, _stryke_string_format_title_case.titleCase)(command)} executor requires \`projectName\` on the context object.`);
34
- if (!context.projectName || !context.projectsConfigurations?.projects || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) throw new Error(`The ${(0, _stryke_string_format_title_case.titleCase)(framework.name)} - ${(0, _stryke_string_format_title_case.titleCase)(command)} executor requires \`projectsConfigurations\` on the context object.`);
35
- const projectConfig = context.projectsConfigurations.projects[context.projectName];
36
- const jiti$1 = (0, jiti.createJiti)(context.root, {
37
- cache: false,
38
- tsconfigPaths: true
39
- });
40
- const [{ formatExecutionId, getName }, api] = await Promise.all([jiti$1.import("powerlines/plugin-utils"), jiti$1.import(jiti$1.esmResolve(importPath)).then((mod) => mod.default)]);
41
- try {
42
- return await Promise.resolve(executorFn((0, defu.default)({
43
- projectName: context.projectName,
44
- options,
45
- workspaceConfig,
46
- command,
47
- inlineConfig: (0, defu.default)({
48
- command,
49
- root: projectConfig.root,
50
- configFile: options.configFile || options.config,
51
- configIndex: options.configIndex,
52
- projectType: projectConfig.projectType,
53
- mode: options.mode,
54
- output: {
55
- path: options.outputPath,
56
- copy: options.copyPath === false ? false : {
57
- path: options.copyPath,
58
- assets: options.assets
59
- },
60
- minify: options.minify,
61
- sourceMap: options.sourceMap
62
- },
63
- resolve: (0, _stryke_type_checks_is_set_array.isSetArray)(options.external) || (0, _stryke_type_checks_is_set_array.isSetArray)(options.noExternal) || (0, _stryke_type_checks_is_set.isSet)(options.skipNodeModulesBundle) ? {
64
- external: (0, _stryke_type_checks_is_set_array.isSetArray)(options.external) ? options.external : void 0,
65
- noExternal: (0, _stryke_type_checks_is_set_array.isSetArray)(options.noExternal) ? options.noExternal : void 0,
66
- skipNodeModulesBundle: (0, _stryke_type_checks_is_set.isSet)(options.skipNodeModulesBundle) ? options.skipNodeModulesBundle : void 0
67
- } : void 0,
68
- define: (0, _stryke_type_checks_is_set_object.isSetObject)(options.define) ? options.define : void 0,
69
- assets: (0, _stryke_type_checks_is_set_object.isSetObject)(options.assets) ? options.assets : void 0
70
- }, (0, _stryke_helpers_omit.omit)(options, [
71
- "config",
72
- "configFile",
73
- "outputPath",
74
- "copyPath",
75
- "sourceMap",
76
- "minify",
77
- "format",
78
- "external",
79
- "noExternal",
80
- "skipNodeModulesBundle",
81
- "mode",
82
- "define",
83
- "assets"
84
- ]))
85
- }, context), async (inlineConfig) => {
86
- const name = inlineConfig.name || context.projectName || await getName(context.root, projectConfig.root);
87
- return api({
88
- options: (0, defu.default)(defaultOptions, {
89
- name,
90
- executionId: formatExecutionId(name, command, options.configIndex ?? 0),
91
- cwd: context.root,
92
- root: projectConfig.root,
93
- configFile: options.configFile || options.config || (0, _stryke_path_join.joinPaths)(projectConfig.root, `${(0, _stryke_string_format_kebab_case.kebabCase)(framework.name)}.config.ts`),
94
- configIndex: options.configIndex,
95
- framework
96
- }),
97
- command,
98
- inlineConfig
99
- });
100
- }));
101
- } catch (error) {
102
- (0, _storm_software_config_tools_logger.writeError)(`An error occurred while executing the ${(0, _stryke_string_format_title_case.titleCase)(framework.name)} - ${(0, _stryke_string_format_title_case.titleCase)(command)} executor: ${(0, _stryke_type_checks_is_error.isError)(error) ? `${error.message}
103
-
104
- ${error.stack}` : "Unknown error"}`);
105
- return { success: false };
106
- }
107
- }, {
108
- skipReadingConfig: false,
109
- hooks: { applyDefaultOptions: (options) => {
110
- options.copyPath ??= "dist/{projectRoot}";
111
- return options;
112
- } }
113
- });
114
- }
115
-
116
- //#endregion
117
- Object.defineProperty(exports, 'withExecutor', {
118
- enumerable: true,
119
- get: function () {
120
- return withExecutor;
121
- }
122
- });
@@ -1,116 +0,0 @@
1
- import { kebabCase } from "@stryke/string-format/kebab-case";
2
- import { titleCase } from "@stryke/string-format/title-case";
3
- import { isError } from "@stryke/type-checks/is-error";
4
- import { isSetObject } from "@stryke/type-checks/is-set-object";
5
- import defu from "defu";
6
- import { writeError } from "@storm-software/config-tools/logger";
7
- import { withRunExecutor } from "@storm-software/workspace-tools/base/base-executor";
8
- import { omit } from "@stryke/helpers/omit";
9
- import { joinPaths } from "@stryke/path/join";
10
- import { isSet } from "@stryke/type-checks/is-set";
11
- import { isSetArray } from "@stryke/type-checks/is-set-array";
12
- import { createJiti } from "jiti";
13
-
14
- //#region src/base/base-executor.ts
15
- /**
16
- * A utility function to create a Powerlines executor that can be used with the `withRunExecutor` function.
17
- *
18
- * @remarks
19
- * This function is designed to simplify the creation of Powerlines executors by providing a consistent interface and error handling.
20
- *
21
- * @param command - The command that the executor will handle (e.g., "new", "prepare", "build", etc.).
22
- * @param executorFn - The function that will be executed when the command is run.
23
- * @param options - Additional options for configuring the executor, such as the import path for the API module and default execution options.
24
- * @returns A Promise that resolves to the result of the executor function.
25
- */
26
- function withExecutor(command, executorFn, options = {}) {
27
- const { importPath = "powerlines/api", defaultOptions = {}, framework = {} } = options;
28
- framework.name ??= "powerlines";
29
- framework.orgId ??= "storm-software";
30
- return withRunExecutor(`${titleCase(framework.name)} - ${titleCase(command)} executor`, async (options, context, workspaceConfig) => {
31
- if (!context.projectName) throw new Error(`The ${titleCase(framework.name)} - ${titleCase(command)} executor requires \`projectName\` on the context object.`);
32
- if (!context.projectName || !context.projectsConfigurations?.projects || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) throw new Error(`The ${titleCase(framework.name)} - ${titleCase(command)} executor requires \`projectsConfigurations\` on the context object.`);
33
- const projectConfig = context.projectsConfigurations.projects[context.projectName];
34
- const jiti = createJiti(context.root, {
35
- cache: false,
36
- tsconfigPaths: true
37
- });
38
- const [{ formatExecutionId, getName }, api] = await Promise.all([jiti.import("powerlines/plugin-utils"), jiti.import(jiti.esmResolve(importPath)).then((mod) => mod.default)]);
39
- try {
40
- return await Promise.resolve(executorFn(defu({
41
- projectName: context.projectName,
42
- options,
43
- workspaceConfig,
44
- command,
45
- inlineConfig: defu({
46
- command,
47
- root: projectConfig.root,
48
- configFile: options.configFile || options.config,
49
- configIndex: options.configIndex,
50
- projectType: projectConfig.projectType,
51
- mode: options.mode,
52
- output: {
53
- path: options.outputPath,
54
- copy: options.copyPath === false ? false : {
55
- path: options.copyPath,
56
- assets: options.assets
57
- },
58
- minify: options.minify,
59
- sourceMap: options.sourceMap
60
- },
61
- resolve: isSetArray(options.external) || isSetArray(options.noExternal) || isSet(options.skipNodeModulesBundle) ? {
62
- external: isSetArray(options.external) ? options.external : void 0,
63
- noExternal: isSetArray(options.noExternal) ? options.noExternal : void 0,
64
- skipNodeModulesBundle: isSet(options.skipNodeModulesBundle) ? options.skipNodeModulesBundle : void 0
65
- } : void 0,
66
- define: isSetObject(options.define) ? options.define : void 0,
67
- assets: isSetObject(options.assets) ? options.assets : void 0
68
- }, omit(options, [
69
- "config",
70
- "configFile",
71
- "outputPath",
72
- "copyPath",
73
- "sourceMap",
74
- "minify",
75
- "format",
76
- "external",
77
- "noExternal",
78
- "skipNodeModulesBundle",
79
- "mode",
80
- "define",
81
- "assets"
82
- ]))
83
- }, context), async (inlineConfig) => {
84
- const name = inlineConfig.name || context.projectName || await getName(context.root, projectConfig.root);
85
- return api({
86
- options: defu(defaultOptions, {
87
- name,
88
- executionId: formatExecutionId(name, command, options.configIndex ?? 0),
89
- cwd: context.root,
90
- root: projectConfig.root,
91
- configFile: options.configFile || options.config || joinPaths(projectConfig.root, `${kebabCase(framework.name)}.config.ts`),
92
- configIndex: options.configIndex,
93
- framework
94
- }),
95
- command,
96
- inlineConfig
97
- });
98
- }));
99
- } catch (error) {
100
- writeError(`An error occurred while executing the ${titleCase(framework.name)} - ${titleCase(command)} executor: ${isError(error) ? `${error.message}
101
-
102
- ${error.stack}` : "Unknown error"}`);
103
- return { success: false };
104
- }
105
- }, {
106
- skipReadingConfig: false,
107
- hooks: { applyDefaultOptions: (options) => {
108
- options.copyPath ??= "dist/{projectRoot}";
109
- return options;
110
- } }
111
- });
112
- }
113
-
114
- //#endregion
115
- export { withExecutor as t };
116
- //# sourceMappingURL=base-executor-HCD7M10I.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-executor-HCD7M10I.mjs","names":[],"sources":["../../src/base/base-executor.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\nimport type { ExecutorContext, PromiseExecutor } from \"@nx/devkit\";\nimport { writeError } from \"@storm-software/config-tools/logger\";\nimport type { StormWorkspaceConfig } from \"@storm-software/config/types\";\nimport { withRunExecutor } from \"@storm-software/workspace-tools/base/base-executor\";\nimport type { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport { omit } from \"@stryke/helpers/omit\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isError } from \"@stryke/type-checks/is-error\";\nimport { isSet } from \"@stryke/type-checks/is-set\";\nimport { isSetArray } from \"@stryke/type-checks/is-set-array\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport type { DeepPartial } from \"@stryke/types/base\";\nimport defu from \"defu\";\nimport { createJiti } from \"jiti\";\nimport type {\n ExecutionApiParams,\n ExecutionOptions,\n FrameworkOptions,\n InlineConfig,\n Mode,\n OutputConfig\n} from \"powerlines\";\nimport type { BaseExecutorSchema } from \"./base-executor.schema\";\n\nexport type PowerlinesExecutorContext<\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n> = ExecutorContext & {\n projectName: string;\n command: string;\n options: TExecutorSchema;\n inlineConfig: InlineConfig;\n workspaceConfig: StormWorkspaceConfig;\n};\n\nexport type PowerlinesExecutorApi = (\n inlineConfig: InlineConfig\n) => Promise<void>;\n\nexport interface WithExecutorOptions {\n /**\n * The import path for the executor API module, which is used to dynamically import the API function that will be called during execution. This value should be a string representing the module path, and it defaults to \"powerlines/api\" if not provided. The specified module should export a default function that matches the expected signature for the executor API, which will be invoked with the execution parameters when the executor is run.\n *\n * @defaultValue \"powerlines/api\"\n */\n importPath?: string;\n\n /**\n * Default options to be merged with the execution options, which can be used to provide default values for certain execution parameters or to override specific options for all executions of the executor. This value should be an object that matches the shape of the `ExecutionOptions` type, and it will be merged with the options provided during execution to create the final set of options that will be passed to the executor API function.\n *\n * @remarks\n * This can be useful for setting default values for options that are commonly used across multiple executions, or for providing a consistent set of options for all executions of the executor without requiring the caller to specify them each time.\n */\n defaultOptions?: DeepPartial<ExecutionOptions>;\n\n /**\n * Details about the framework being used in the current execution, which can be used by plugins and other parts of the system to customize behavior based on the framework.\n *\n * @remarks\n * This should only be used by framework plugins to ensure the correct framework name is applied\n *\n * @defaultValue\n * ```ts\n * {\n * name: \"powerlines\",\n * orgId: \"storm-software\"\n * }\n * ```\n */\n framework?: FrameworkOptions;\n}\n\n/**\n * A utility function to create a Powerlines executor that can be used with the `withRunExecutor` function.\n *\n * @remarks\n * This function is designed to simplify the creation of Powerlines executors by providing a consistent interface and error handling.\n *\n * @param command - The command that the executor will handle (e.g., \"new\", \"prepare\", \"build\", etc.).\n * @param executorFn - The function that will be executed when the command is run.\n * @param options - Additional options for configuring the executor, such as the import path for the API module and default execution options.\n * @returns A Promise that resolves to the result of the executor function.\n */\nexport function withExecutor<\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n>(\n command: string,\n executorFn: (\n context: PowerlinesExecutorContext<TExecutorSchema>,\n api: PowerlinesExecutorApi\n ) =>\n | Promise<BaseExecutorResult | null | undefined>\n | BaseExecutorResult\n | null\n | undefined,\n options: WithExecutorOptions = {}\n): PromiseExecutor<TExecutorSchema> {\n const {\n importPath = \"powerlines/api\",\n defaultOptions = {},\n framework = {} as FrameworkOptions\n } = options;\n\n framework.name ??= \"powerlines\";\n framework.orgId ??= \"storm-software\";\n\n return withRunExecutor(\n `${titleCase(framework.name)} - ${titleCase(command)} executor`,\n async (\n options: TExecutorSchema,\n context: ExecutorContext,\n workspaceConfig: StormWorkspaceConfig\n ): Promise<BaseExecutorResult | null | undefined> => {\n if (!context.projectName) {\n throw new Error(\n `The ${titleCase(framework.name)} - ${titleCase(\n command\n )} executor requires \\`projectName\\` on the context object.`\n );\n }\n\n if (\n !context.projectName ||\n !context.projectsConfigurations?.projects ||\n !context.projectsConfigurations.projects[context.projectName] ||\n !context.projectsConfigurations.projects[context.projectName]?.root\n ) {\n throw new Error(\n `The ${titleCase(framework.name)} - ${titleCase(\n command\n )} executor requires \\`projectsConfigurations\\` on the context object.`\n );\n }\n\n const projectConfig =\n context.projectsConfigurations.projects[context.projectName]!;\n\n const jiti = createJiti(context.root, {\n cache: false,\n tsconfigPaths: true\n });\n // Load via jiti — static require() of powerlines/plugin-utils fails when Nx\n // registers ts-node + tsconfig paths (maps to ESM .ts source under type:module).\n const [{ formatExecutionId, getName }, api] = await Promise.all([\n jiti.import<{\n formatExecutionId: (\n projectName: string,\n command: string,\n configIndex?: number\n ) => string;\n getName: (cwd: string, root: string) => Promise<string>;\n }>(\"powerlines/plugin-utils\"),\n jiti\n .import<{\n default: (params: ExecutionApiParams) => Promise<void>;\n }>(jiti.esmResolve(importPath))\n .then(mod => mod.default)\n ]);\n\n try {\n return await Promise.resolve(\n executorFn(\n defu(\n {\n projectName: context.projectName,\n options,\n workspaceConfig,\n command,\n inlineConfig: defu(\n {\n command,\n root: projectConfig.root,\n configFile: options.configFile || options.config,\n configIndex: options.configIndex,\n projectType: projectConfig.projectType,\n mode: options.mode as Mode,\n output: {\n path: options.outputPath,\n copy:\n options.copyPath === false\n ? false\n : {\n path: options.copyPath,\n assets: options.assets\n },\n minify: options.minify,\n sourceMap: options.sourceMap\n } as OutputConfig,\n resolve:\n isSetArray(options.external) ||\n isSetArray(options.noExternal) ||\n isSet(options.skipNodeModulesBundle)\n ? {\n external: isSetArray(options.external)\n ? options.external\n : undefined,\n noExternal: isSetArray(options.noExternal)\n ? options.noExternal\n : undefined,\n skipNodeModulesBundle: isSet(\n options.skipNodeModulesBundle\n )\n ? options.skipNodeModulesBundle\n : undefined\n }\n : undefined,\n define: isSetObject(options.define)\n ? options.define\n : undefined,\n assets: isSetObject(options.assets)\n ? options.assets\n : undefined\n },\n omit(options, [\n \"config\",\n \"configFile\",\n \"outputPath\",\n \"copyPath\",\n \"sourceMap\",\n \"minify\",\n \"format\",\n \"external\",\n \"noExternal\",\n \"skipNodeModulesBundle\",\n \"mode\",\n \"define\",\n \"assets\"\n ])\n ) as InlineConfig\n },\n context\n ),\n async (inlineConfig: InlineConfig) => {\n const name =\n inlineConfig.name ||\n context.projectName ||\n (await getName(context.root, projectConfig.root));\n\n return api({\n options: defu(defaultOptions, {\n name,\n executionId: formatExecutionId(\n name,\n command,\n options.configIndex ?? 0\n ),\n cwd: context.root,\n root: projectConfig.root,\n configFile:\n options.configFile ||\n options.config ||\n joinPaths(\n projectConfig.root,\n `${kebabCase(framework.name)}.config.ts`\n ),\n configIndex: options.configIndex,\n framework\n }) as ExecutionOptions,\n command,\n inlineConfig\n });\n }\n )\n );\n } catch (error) {\n writeError(\n `An error occurred while executing the ${titleCase(\n framework.name\n )} - ${titleCase(command)} executor: ${\n isError(error)\n ? `${error.message}\n\n${error.stack}`\n : \"Unknown error\"\n }`\n );\n\n return { success: false };\n }\n },\n {\n skipReadingConfig: false,\n hooks: {\n applyDefaultOptions: (options: Partial<TExecutorSchema>) => {\n options.copyPath ??= \"dist/{projectRoot}\";\n\n return options as TExecutorSchema;\n }\n }\n }\n );\n}\n"],"mappings":"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"}
@@ -1,177 +0,0 @@
1
- import { defineUntypedSchema } from "untyped";
2
-
3
- //#region src/base/base-executor.untyped.ts
4
- var base_executor_untyped_default = defineUntypedSchema({
5
- $schema: {
6
- id: "BaseExecutorSchema",
7
- title: "Base Executor",
8
- description: "A shared/base schema type definition for Powerlines executors",
9
- required: []
10
- },
11
- config: { $schema: {
12
- title: "Powerlines Configuration File",
13
- type: "string",
14
- format: "path",
15
- description: "The path to the Powerlines configuration file. Alias for `configFile`."
16
- } },
17
- configFile: { $schema: {
18
- title: "Powerlines Configuration File",
19
- type: "string",
20
- format: "path",
21
- description: "The path to the Powerlines configuration file. Alias for `config`."
22
- } },
23
- configIndex: {
24
- $schema: {
25
- title: "Powerlines Configuration Index",
26
- type: "number",
27
- description: "The index in the Powerlines configuration file to use (if an array of configurations are provided)."
28
- },
29
- $default: 0
30
- },
31
- input: { $schema: {
32
- title: "Input Entry File(s)",
33
- format: "path",
34
- type: "array",
35
- description: "The entry file(s) that serve as the input for the project",
36
- items: { type: "string" }
37
- } },
38
- tsconfig: { $schema: {
39
- title: "TSConfig Path",
40
- type: "string",
41
- format: "path",
42
- description: "The path to the tsconfig file"
43
- } },
44
- outputPath: { $schema: {
45
- title: "Output Path",
46
- type: "string",
47
- format: "path",
48
- description: "The path to the output directory for the build artifacts"
49
- } },
50
- copyPath: { $schema: {
51
- title: "Copy Path",
52
- description: "A directory path to copy the build artifacts into",
53
- oneOf: [{
54
- type: "string",
55
- format: "path"
56
- }, {
57
- type: "boolean",
58
- enum: [false]
59
- }]
60
- } },
61
- sourceMap: { $schema: {
62
- title: "Sourcemap",
63
- type: "boolean",
64
- description: "Generate a sourcemap"
65
- } },
66
- minify: { $schema: {
67
- title: "Minify",
68
- type: "boolean",
69
- description: "Minify the output"
70
- } },
71
- format: {
72
- $schema: {
73
- title: "Format",
74
- type: "array",
75
- description: "The format to build",
76
- items: {
77
- type: "string",
78
- enum: [
79
- "cjs",
80
- "esm",
81
- "iife"
82
- ]
83
- }
84
- },
85
- $resolve: (val = ["cjs", "esm"]) => val.filter((format) => [
86
- "cjs",
87
- "esm",
88
- "iife"
89
- ].includes(format))
90
- },
91
- platform: { $schema: {
92
- title: "Platform",
93
- type: "string",
94
- description: "The platform to build",
95
- enum: [
96
- "neutral",
97
- "node",
98
- "browser"
99
- ]
100
- } },
101
- external: {
102
- $schema: {
103
- title: "External",
104
- type: "array",
105
- description: "The external dependencies"
106
- },
107
- $resolve: (val = []) => [].concat(val)
108
- },
109
- noExternal: {
110
- $schema: {
111
- title: "No External",
112
- type: "array",
113
- description: "The dependencies that should not be treated as external"
114
- },
115
- $resolve: (val = []) => [].concat(val)
116
- },
117
- skipNodeModulesBundle: { $schema: {
118
- title: "Skip Node Modules Bundle",
119
- type: "boolean",
120
- description: "Skip bundling node_modules during the build process (if required)"
121
- } },
122
- mode: { $schema: {
123
- title: "Mode",
124
- type: "string",
125
- description: "The build mode",
126
- enum: [
127
- "development",
128
- "test",
129
- "production"
130
- ]
131
- } },
132
- logLevel: { $schema: {
133
- title: "Log Level",
134
- type: "string",
135
- description: "The log level to use for the build process",
136
- enum: [
137
- "fatal",
138
- "error",
139
- "warn",
140
- "success",
141
- "info",
142
- "debug",
143
- "trace",
144
- "silent"
145
- ]
146
- } },
147
- define: {
148
- $schema: {
149
- title: "Define",
150
- type: "object",
151
- tsType: "Record<string, string>",
152
- description: "The `define` values"
153
- },
154
- $resolve: (val = {}) => val,
155
- $default: {}
156
- },
157
- assets: { $schema: {
158
- title: "Assets",
159
- type: "any",
160
- tsType: "Array<{ input?: string; output?: string; glob: string; ignore?: string[]; dot?: boolean; }>",
161
- description: "The `assets` values"
162
- } },
163
- additionalArgs: {
164
- $schema: {
165
- title: "Additional Arguments",
166
- type: "object",
167
- tsType: "Record<string, string>",
168
- description: "The additional arguments provided during execution of the command"
169
- },
170
- $resolve: (val = {}) => val,
171
- $default: {}
172
- }
173
- });
174
-
175
- //#endregion
176
- export { base_executor_untyped_default as t };
177
- //# sourceMappingURL=base-executor.untyped-B9Vk-kJC.mjs.map