@powerlines/nx 0.12.13 → 0.12.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/base/base-executor.d.mts +2 -2
- package/dist/src/base/base-executor.d.mts.map +1 -1
- package/dist/src/base/base-executor.d.ts +2 -2
- package/dist/src/base/base-executor.d.ts.map +1 -1
- package/dist/src/base/base-executor.js +19 -20
- package/dist/src/base/base-executor.mjs +19 -20
- package/dist/src/base/base-executor.mjs.map +1 -1
- package/dist/src/{base-executor-LqlRTfas.mjs → base-executor-B7KLoiV1.mjs} +20 -21
- package/dist/src/base-executor-B7KLoiV1.mjs.map +1 -0
- package/dist/src/{base-executor-DWqk8l7s.js → base-executor-BMK-RUBG.js} +19 -20
- package/dist/src/{base-executor-DVFvC_FU.d.ts → base-executor-LiCOQirA.d.mts} +2 -2
- package/dist/src/{base-executor-Bkh-IWDP.d.mts.map → base-executor-LiCOQirA.d.mts.map} +1 -1
- package/dist/src/{base-executor-Bkh-IWDP.d.mts → base-executor-iHU-fU0G.d.ts} +2 -2
- package/dist/src/{base-executor-DVFvC_FU.d.ts.map → base-executor-iHU-fU0G.d.ts.map} +1 -1
- package/dist/src/executors/build/executor.d.mts +3 -3
- package/dist/src/executors/build/executor.d.mts.map +1 -1
- package/dist/src/executors/build/executor.d.ts +3 -3
- package/dist/src/executors/build/executor.d.ts.map +1 -1
- package/dist/src/executors/build/executor.js +1 -1
- package/dist/src/executors/build/executor.mjs +1 -1
- package/dist/src/executors/build/executor.mjs.map +1 -1
- package/dist/src/executors/clean/executor.d.mts +3 -3
- package/dist/src/executors/clean/executor.d.mts.map +1 -1
- package/dist/src/executors/clean/executor.d.ts +3 -3
- package/dist/src/executors/clean/executor.d.ts.map +1 -1
- package/dist/src/executors/clean/executor.js +1 -1
- package/dist/src/executors/clean/executor.mjs +1 -1
- package/dist/src/executors/clean/executor.mjs.map +1 -1
- package/dist/src/executors/docs/executor.d.mts +3 -3
- package/dist/src/executors/docs/executor.d.mts.map +1 -1
- package/dist/src/executors/docs/executor.d.ts +3 -3
- package/dist/src/executors/docs/executor.d.ts.map +1 -1
- package/dist/src/executors/docs/executor.js +1 -1
- package/dist/src/executors/docs/executor.mjs +1 -1
- package/dist/src/executors/docs/executor.mjs.map +1 -1
- package/dist/src/executors/lint/executor.d.mts +3 -3
- package/dist/src/executors/lint/executor.d.mts.map +1 -1
- package/dist/src/executors/lint/executor.d.ts +3 -3
- package/dist/src/executors/lint/executor.d.ts.map +1 -1
- package/dist/src/executors/lint/executor.js +1 -1
- package/dist/src/executors/lint/executor.mjs +1 -1
- package/dist/src/executors/lint/executor.mjs.map +1 -1
- package/dist/src/executors/prepare/executor.d.mts +3 -3
- package/dist/src/executors/prepare/executor.d.mts.map +1 -1
- package/dist/src/executors/prepare/executor.d.ts +3 -3
- package/dist/src/executors/prepare/executor.d.ts.map +1 -1
- package/dist/src/executors/prepare/executor.js +1 -1
- package/dist/src/executors/prepare/executor.mjs +1 -1
- package/dist/src/executors/prepare/executor.mjs.map +1 -1
- package/package.json +10 -10
- package/dist/src/base-executor-LqlRTfas.mjs.map +0 -1
|
@@ -2,7 +2,7 @@ import { BaseExecutorSchema } from "./base-executor.schema.mjs";
|
|
|
2
2
|
import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
|
|
3
3
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
4
4
|
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
5
|
-
import { InlineConfig,
|
|
5
|
+
import { InlineConfig, PowerlinesCommand, PowerlinesEngine } from "powerlines";
|
|
6
6
|
|
|
7
7
|
//#region src/base/base-executor.d.ts
|
|
8
8
|
type PowerlinesExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = ExecutorContext & {
|
|
@@ -22,7 +22,7 @@ type PowerlinesExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCo
|
|
|
22
22
|
* @param executorFn - The function that will be executed when the command is run.
|
|
23
23
|
* @returns A Promise that resolves to the result of the executor function.
|
|
24
24
|
*/
|
|
25
|
-
declare function withExecutor<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema>(command: TCommand, executorFn: (context: PowerlinesExecutorContext<TCommand, TExecutorSchema>, api:
|
|
25
|
+
declare function withExecutor<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema>(command: TCommand, executorFn: (context: PowerlinesExecutorContext<TCommand, TExecutorSchema>, api: PowerlinesEngine) => Promise<BaseExecutorResult | null | undefined> | BaseExecutorResult | null | undefined): PromiseExecutor<TExecutorSchema>;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { PowerlinesExecutorContext, withExecutor };
|
|
28
28
|
//# sourceMappingURL=base-executor.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-executor.d.mts","names":[],"sources":["../../../src/base/base-executor.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"base-executor.d.mts","names":[],"sources":["../../../src/base/base-executor.ts"],"mappings":";;;;;;;KAiCY,yBAAA,kBACO,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,IAC3C,eAAA;EACF,WAAA;EACA,OAAA,EAAS,QAAA;EACT,OAAA,EAAS,eAAA;EACT,YAAA,EAAc,YAAA;EACd,eAAA,EAAiB,oBAAA;AAAA;;;;;;;;;;;iBAaH,YAAA,kBACG,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,CAAA,CAE7C,OAAA,EAAS,QAAA,EACT,UAAA,GACE,OAAA,EAAS,yBAAA,CAA0B,QAAA,EAAU,eAAA,GAC7C,GAAA,EAAK,gBAAA,KAEH,OAAA,CAAQ,kBAAA,uBACR,kBAAA,sBAGH,eAAA,CAAgB,eAAA"}
|
|
@@ -2,7 +2,7 @@ import { BaseExecutorSchema } from "./base-executor.schema.js";
|
|
|
2
2
|
import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
|
|
3
3
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
4
4
|
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
5
|
-
import { InlineConfig,
|
|
5
|
+
import { InlineConfig, PowerlinesCommand, PowerlinesEngine } from "powerlines";
|
|
6
6
|
|
|
7
7
|
//#region src/base/base-executor.d.ts
|
|
8
8
|
type PowerlinesExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = ExecutorContext & {
|
|
@@ -22,7 +22,7 @@ type PowerlinesExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCo
|
|
|
22
22
|
* @param executorFn - The function that will be executed when the command is run.
|
|
23
23
|
* @returns A Promise that resolves to the result of the executor function.
|
|
24
24
|
*/
|
|
25
|
-
declare function withExecutor<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema>(command: TCommand, executorFn: (context: PowerlinesExecutorContext<TCommand, TExecutorSchema>, api:
|
|
25
|
+
declare function withExecutor<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema>(command: TCommand, executorFn: (context: PowerlinesExecutorContext<TCommand, TExecutorSchema>, api: PowerlinesEngine) => Promise<BaseExecutorResult | null | undefined> | BaseExecutorResult | null | undefined): PromiseExecutor<TExecutorSchema>;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { PowerlinesExecutorContext, withExecutor };
|
|
28
28
|
//# sourceMappingURL=base-executor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-executor.d.ts","names":[],"sources":["../../../src/base/base-executor.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"base-executor.d.ts","names":[],"sources":["../../../src/base/base-executor.ts"],"mappings":";;;;;;;KAiCY,yBAAA,kBACO,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,IAC3C,eAAA;EACF,WAAA;EACA,OAAA,EAAS,QAAA;EACT,OAAA,EAAS,eAAA;EACT,YAAA,EAAc,YAAA;EACd,eAAA,EAAiB,oBAAA;AAAA;;;;;;;;;;;iBAaH,YAAA,kBACG,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,CAAA,CAE7C,OAAA,EAAS,QAAA,EACT,UAAA,GACE,OAAA,EAAS,yBAAA,CAA0B,QAAA,EAAU,eAAA,GAC7C,GAAA,EAAK,gBAAA,KAEH,OAAA,CAAQ,kBAAA,uBACR,kBAAA,sBAGH,eAAA,CAAgB,eAAA"}
|
|
@@ -24,26 +24,11 @@ function withExecutor(command, executorFn) {
|
|
|
24
24
|
if (!context.projectName || !context.projectsConfigurations?.projects || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) throw new Error("The executor requires `projectsConfigurations` on the context object.");
|
|
25
25
|
const projectConfig = context.projectsConfigurations.projects[context.projectName];
|
|
26
26
|
const jiti$1 = (0, jiti.createJiti)(context.root, { cache: false });
|
|
27
|
-
const {
|
|
28
|
-
const api = await
|
|
29
|
-
|
|
30
|
-
output: {
|
|
31
|
-
path: options.outputPath,
|
|
32
|
-
copy: {
|
|
33
|
-
path: options.copyPath,
|
|
34
|
-
assets: options.assets
|
|
35
|
-
},
|
|
36
|
-
format: options.format,
|
|
37
|
-
sourceMap: options.sourceMap
|
|
38
|
-
},
|
|
39
|
-
resolve: {
|
|
40
|
-
external: options.external,
|
|
41
|
-
noExternal: options.noExternal,
|
|
42
|
-
skipNodeModulesBundle: options.skipNodeModulesBundle
|
|
43
|
-
},
|
|
27
|
+
const { createEngine } = await jiti$1.import(jiti$1.esmResolve("powerlines"));
|
|
28
|
+
const api = await createEngine((0, defu.default)({
|
|
29
|
+
cwd: workspaceConfig.workspaceRoot,
|
|
44
30
|
root: projectConfig.root,
|
|
45
|
-
|
|
46
|
-
sourceRoot: projectConfig.sourceRoot
|
|
31
|
+
configFile: options.configFile ?? options.config
|
|
47
32
|
}, options, { name: context.projectName }));
|
|
48
33
|
try {
|
|
49
34
|
return await Promise.resolve(executorFn((0, defu.default)({
|
|
@@ -52,7 +37,21 @@ function withExecutor(command, executorFn) {
|
|
|
52
37
|
workspaceConfig,
|
|
53
38
|
inlineConfig: {
|
|
54
39
|
command,
|
|
55
|
-
|
|
40
|
+
projectType: projectConfig.projectType,
|
|
41
|
+
output: {
|
|
42
|
+
path: options.outputPath,
|
|
43
|
+
copy: {
|
|
44
|
+
path: options.copyPath,
|
|
45
|
+
assets: options.assets
|
|
46
|
+
},
|
|
47
|
+
format: options.format,
|
|
48
|
+
sourceMap: options.sourceMap
|
|
49
|
+
},
|
|
50
|
+
resolve: {
|
|
51
|
+
external: options.external,
|
|
52
|
+
noExternal: options.noExternal,
|
|
53
|
+
skipNodeModulesBundle: options.skipNodeModulesBundle
|
|
54
|
+
}
|
|
56
55
|
},
|
|
57
56
|
command
|
|
58
57
|
}, context), api));
|
|
@@ -21,26 +21,11 @@ function withExecutor(command, executorFn) {
|
|
|
21
21
|
if (!context.projectName || !context.projectsConfigurations?.projects || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) throw new Error("The executor requires `projectsConfigurations` on the context object.");
|
|
22
22
|
const projectConfig = context.projectsConfigurations.projects[context.projectName];
|
|
23
23
|
const jiti = createJiti(context.root, { cache: false });
|
|
24
|
-
const {
|
|
25
|
-
const api = await
|
|
26
|
-
|
|
27
|
-
output: {
|
|
28
|
-
path: options.outputPath,
|
|
29
|
-
copy: {
|
|
30
|
-
path: options.copyPath,
|
|
31
|
-
assets: options.assets
|
|
32
|
-
},
|
|
33
|
-
format: options.format,
|
|
34
|
-
sourceMap: options.sourceMap
|
|
35
|
-
},
|
|
36
|
-
resolve: {
|
|
37
|
-
external: options.external,
|
|
38
|
-
noExternal: options.noExternal,
|
|
39
|
-
skipNodeModulesBundle: options.skipNodeModulesBundle
|
|
40
|
-
},
|
|
24
|
+
const { createEngine } = await jiti.import(jiti.esmResolve("powerlines"));
|
|
25
|
+
const api = await createEngine(defu({
|
|
26
|
+
cwd: workspaceConfig.workspaceRoot,
|
|
41
27
|
root: projectConfig.root,
|
|
42
|
-
|
|
43
|
-
sourceRoot: projectConfig.sourceRoot
|
|
28
|
+
configFile: options.configFile ?? options.config
|
|
44
29
|
}, options, { name: context.projectName }));
|
|
45
30
|
try {
|
|
46
31
|
return await Promise.resolve(executorFn(defu({
|
|
@@ -49,7 +34,21 @@ function withExecutor(command, executorFn) {
|
|
|
49
34
|
workspaceConfig,
|
|
50
35
|
inlineConfig: {
|
|
51
36
|
command,
|
|
52
|
-
|
|
37
|
+
projectType: projectConfig.projectType,
|
|
38
|
+
output: {
|
|
39
|
+
path: options.outputPath,
|
|
40
|
+
copy: {
|
|
41
|
+
path: options.copyPath,
|
|
42
|
+
assets: options.assets
|
|
43
|
+
},
|
|
44
|
+
format: options.format,
|
|
45
|
+
sourceMap: options.sourceMap
|
|
46
|
+
},
|
|
47
|
+
resolve: {
|
|
48
|
+
external: options.external,
|
|
49
|
+
noExternal: options.noExternal,
|
|
50
|
+
skipNodeModulesBundle: options.skipNodeModulesBundle
|
|
51
|
+
}
|
|
53
52
|
},
|
|
54
53
|
command
|
|
55
54
|
}, context), api));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-executor.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 { ExecutorContext, PromiseExecutor } from \"@nx/devkit\";\nimport { writeError } from \"@storm-software/config-tools/logger\";\nimport { StormWorkspaceConfig } from \"@storm-software/config/types\";\nimport { withRunExecutor } from \"@storm-software/workspace-tools/base/base-executor\";\nimport { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport { isError } from \"@stryke/type-checks/is-error\";\nimport defu from \"defu\";\nimport { createJiti } from \"jiti\";\nimport type {\n
|
|
1
|
+
{"version":3,"file":"base-executor.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 { ExecutorContext, PromiseExecutor } from \"@nx/devkit\";\nimport { writeError } from \"@storm-software/config-tools/logger\";\nimport { StormWorkspaceConfig } from \"@storm-software/config/types\";\nimport { withRunExecutor } from \"@storm-software/workspace-tools/base/base-executor\";\nimport { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport { isError } from \"@stryke/type-checks/is-error\";\nimport defu from \"defu\";\nimport { createJiti } from \"jiti\";\nimport type {\n InlineConfig,\n PowerlinesCommand,\n PowerlinesEngine\n} from \"powerlines\";\nimport { BaseExecutorSchema } from \"./base-executor.schema\";\n\nexport type PowerlinesExecutorContext<\n TCommand extends PowerlinesCommand = PowerlinesCommand,\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n> = ExecutorContext & {\n projectName: string;\n command: TCommand;\n options: TExecutorSchema;\n inlineConfig: InlineConfig;\n workspaceConfig: StormWorkspaceConfig;\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 * @returns A Promise that resolves to the result of the executor function.\n */\nexport function withExecutor<\n TCommand extends PowerlinesCommand = PowerlinesCommand,\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n>(\n command: TCommand,\n executorFn: (\n context: PowerlinesExecutorContext<TCommand, TExecutorSchema>,\n api: PowerlinesEngine\n ) =>\n | Promise<BaseExecutorResult | null | undefined>\n | BaseExecutorResult\n | null\n | undefined\n): PromiseExecutor<TExecutorSchema> {\n return withRunExecutor(\n `Powerlines ${command} 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 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 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, { cache: false });\n const { createEngine } = await jiti.import<{\n createEngine: typeof import(\"powerlines\").createEngine;\n }>(jiti.esmResolve(\"powerlines\"));\n\n const api = await createEngine(\n defu(\n {\n cwd: workspaceConfig.workspaceRoot,\n root: projectConfig.root,\n configFile: options.configFile ?? options.config\n },\n options,\n {\n name: context.projectName\n }\n )\n );\n\n try {\n return await Promise.resolve(\n executorFn(\n defu(\n {\n projectName: context.projectName,\n options,\n workspaceConfig,\n inlineConfig: {\n command,\n projectType: projectConfig.projectType,\n output: {\n path: options.outputPath,\n copy: { path: options.copyPath, assets: options.assets },\n format: options.format,\n sourceMap: options.sourceMap\n },\n resolve: {\n external: options.external,\n noExternal: options.noExternal,\n skipNodeModulesBundle: options.skipNodeModulesBundle\n }\n } as InlineConfig,\n command\n },\n context\n ),\n api\n )\n );\n } catch (error) {\n writeError(\n `An error occurred while executing the Powerlines ${\n command\n } command executor: ${\n isError(error)\n ? `${error.message}\n\n${error.stack}`\n : \"Unknown error\"\n }`\n );\n\n return { success: false };\n } finally {\n await api.finalize();\n }\n },\n {\n skipReadingConfig: false,\n hooks: {\n applyDefaultOptions: (options: Partial<TExecutorSchema>) => {\n return options as TExecutorSchema;\n }\n }\n }\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAsDA,SAAgB,aAId,SACA,YAQkC;AAClC,QAAO,gBACL,cAAc,QAAQ,oBACtB,OACE,SACA,SACA,oBACmD;AACnD,MAAI,CAAC,QAAQ,YACX,OAAM,IAAI,MACR,6DACD;AAGH,MACE,CAAC,QAAQ,eACT,CAAC,QAAQ,wBAAwB,YACjC,CAAC,QAAQ,uBAAuB,SAAS,QAAQ,gBACjD,CAAC,QAAQ,uBAAuB,SAAS,QAAQ,cAAc,KAE/D,OAAM,IAAI,MACR,wEACD;EAGH,MAAM,gBACJ,QAAQ,uBAAuB,SAAS,QAAQ;EAElD,MAAM,OAAO,WAAW,QAAQ,MAAM,EAAE,OAAO,OAAO,CAAC;EACvD,MAAM,EAAE,iBAAiB,MAAM,KAAK,OAEjC,KAAK,WAAW,aAAa,CAAC;EAEjC,MAAM,MAAM,MAAM,aAChB,KACE;GACE,KAAK,gBAAgB;GACrB,MAAM,cAAc;GACpB,YAAY,QAAQ,cAAc,QAAQ;GAC3C,EACD,SACA,EACE,MAAM,QAAQ,aACf,CACF,CACF;AAED,MAAI;AACF,UAAO,MAAM,QAAQ,QACnB,WACE,KACE;IACE,aAAa,QAAQ;IACrB;IACA;IACA,cAAc;KACZ;KACA,aAAa,cAAc;KAC3B,QAAQ;MACN,MAAM,QAAQ;MACd,MAAM;OAAE,MAAM,QAAQ;OAAU,QAAQ,QAAQ;OAAQ;MACxD,QAAQ,QAAQ;MAChB,WAAW,QAAQ;MACpB;KACD,SAAS;MACP,UAAU,QAAQ;MAClB,YAAY,QAAQ;MACpB,uBAAuB,QAAQ;MAChC;KACF;IACD;IACD,EACD,QACD,EACD,IACD,CACF;WACM,OAAO;AACd,cACE,oDACE,QACD,qBACC,QAAQ,MAAM,GACV,GAAG,MAAM,QAAQ;;EAE/B,MAAM,UACQ,kBAEP;AAED,UAAO,EAAE,SAAS,OAAO;YACjB;AACR,SAAM,IAAI,UAAU;;IAGxB;EACE,mBAAmB;EACnB,OAAO,EACL,sBAAsB,YAAsC;AAC1D,UAAO;KAEV;EACF,CACF"}
|
|
@@ -21,26 +21,11 @@ function withExecutor(command, executorFn) {
|
|
|
21
21
|
if (!context.projectName || !context.projectsConfigurations?.projects || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) throw new Error("The executor requires `projectsConfigurations` on the context object.");
|
|
22
22
|
const projectConfig = context.projectsConfigurations.projects[context.projectName];
|
|
23
23
|
const jiti = createJiti(context.root, { cache: false });
|
|
24
|
-
const {
|
|
25
|
-
const api = await
|
|
26
|
-
|
|
27
|
-
output: {
|
|
28
|
-
path: options.outputPath,
|
|
29
|
-
copy: {
|
|
30
|
-
path: options.copyPath,
|
|
31
|
-
assets: options.assets
|
|
32
|
-
},
|
|
33
|
-
format: options.format,
|
|
34
|
-
sourceMap: options.sourceMap
|
|
35
|
-
},
|
|
36
|
-
resolve: {
|
|
37
|
-
external: options.external,
|
|
38
|
-
noExternal: options.noExternal,
|
|
39
|
-
skipNodeModulesBundle: options.skipNodeModulesBundle
|
|
40
|
-
},
|
|
24
|
+
const { createEngine } = await jiti.import(jiti.esmResolve("powerlines"));
|
|
25
|
+
const api = await createEngine(defu({
|
|
26
|
+
cwd: workspaceConfig.workspaceRoot,
|
|
41
27
|
root: projectConfig.root,
|
|
42
|
-
|
|
43
|
-
sourceRoot: projectConfig.sourceRoot
|
|
28
|
+
configFile: options.configFile ?? options.config
|
|
44
29
|
}, options, { name: context.projectName }));
|
|
45
30
|
try {
|
|
46
31
|
return await Promise.resolve(executorFn(defu({
|
|
@@ -49,7 +34,21 @@ function withExecutor(command, executorFn) {
|
|
|
49
34
|
workspaceConfig,
|
|
50
35
|
inlineConfig: {
|
|
51
36
|
command,
|
|
52
|
-
|
|
37
|
+
projectType: projectConfig.projectType,
|
|
38
|
+
output: {
|
|
39
|
+
path: options.outputPath,
|
|
40
|
+
copy: {
|
|
41
|
+
path: options.copyPath,
|
|
42
|
+
assets: options.assets
|
|
43
|
+
},
|
|
44
|
+
format: options.format,
|
|
45
|
+
sourceMap: options.sourceMap
|
|
46
|
+
},
|
|
47
|
+
resolve: {
|
|
48
|
+
external: options.external,
|
|
49
|
+
noExternal: options.noExternal,
|
|
50
|
+
skipNodeModulesBundle: options.skipNodeModulesBundle
|
|
51
|
+
}
|
|
53
52
|
},
|
|
54
53
|
command
|
|
55
54
|
}, context), api));
|
|
@@ -71,4 +70,4 @@ ${error.stack}` : "Unknown error"}`);
|
|
|
71
70
|
|
|
72
71
|
//#endregion
|
|
73
72
|
export { withExecutor as t };
|
|
74
|
-
//# sourceMappingURL=base-executor-
|
|
73
|
+
//# sourceMappingURL=base-executor-B7KLoiV1.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-executor-B7KLoiV1.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 { ExecutorContext, PromiseExecutor } from \"@nx/devkit\";\nimport { writeError } from \"@storm-software/config-tools/logger\";\nimport { StormWorkspaceConfig } from \"@storm-software/config/types\";\nimport { withRunExecutor } from \"@storm-software/workspace-tools/base/base-executor\";\nimport { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport { isError } from \"@stryke/type-checks/is-error\";\nimport defu from \"defu\";\nimport { createJiti } from \"jiti\";\nimport type {\n InlineConfig,\n PowerlinesCommand,\n PowerlinesEngine\n} from \"powerlines\";\nimport { BaseExecutorSchema } from \"./base-executor.schema\";\n\nexport type PowerlinesExecutorContext<\n TCommand extends PowerlinesCommand = PowerlinesCommand,\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n> = ExecutorContext & {\n projectName: string;\n command: TCommand;\n options: TExecutorSchema;\n inlineConfig: InlineConfig;\n workspaceConfig: StormWorkspaceConfig;\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 * @returns A Promise that resolves to the result of the executor function.\n */\nexport function withExecutor<\n TCommand extends PowerlinesCommand = PowerlinesCommand,\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n>(\n command: TCommand,\n executorFn: (\n context: PowerlinesExecutorContext<TCommand, TExecutorSchema>,\n api: PowerlinesEngine\n ) =>\n | Promise<BaseExecutorResult | null | undefined>\n | BaseExecutorResult\n | null\n | undefined\n): PromiseExecutor<TExecutorSchema> {\n return withRunExecutor(\n `Powerlines ${command} 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 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 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, { cache: false });\n const { createEngine } = await jiti.import<{\n createEngine: typeof import(\"powerlines\").createEngine;\n }>(jiti.esmResolve(\"powerlines\"));\n\n const api = await createEngine(\n defu(\n {\n cwd: workspaceConfig.workspaceRoot,\n root: projectConfig.root,\n configFile: options.configFile ?? options.config\n },\n options,\n {\n name: context.projectName\n }\n )\n );\n\n try {\n return await Promise.resolve(\n executorFn(\n defu(\n {\n projectName: context.projectName,\n options,\n workspaceConfig,\n inlineConfig: {\n command,\n projectType: projectConfig.projectType,\n output: {\n path: options.outputPath,\n copy: { path: options.copyPath, assets: options.assets },\n format: options.format,\n sourceMap: options.sourceMap\n },\n resolve: {\n external: options.external,\n noExternal: options.noExternal,\n skipNodeModulesBundle: options.skipNodeModulesBundle\n }\n } as InlineConfig,\n command\n },\n context\n ),\n api\n )\n );\n } catch (error) {\n writeError(\n `An error occurred while executing the Powerlines ${\n command\n } command executor: ${\n isError(error)\n ? `${error.message}\n\n${error.stack}`\n : \"Unknown error\"\n }`\n );\n\n return { success: false };\n } finally {\n await api.finalize();\n }\n },\n {\n skipReadingConfig: false,\n hooks: {\n applyDefaultOptions: (options: Partial<TExecutorSchema>) => {\n return options as TExecutorSchema;\n }\n }\n }\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAsDA,SAAgB,aAId,SACA,YAQkC;AAClC,QAAO,gBACL,cAAc,QAAQ,oBACtB,OACE,SACA,SACA,oBACmD;AACnD,MAAI,CAAC,QAAQ,YACX,OAAM,IAAI,MACR,6DACD;AAGH,MACE,CAAC,QAAQ,eACT,CAAC,QAAQ,wBAAwB,YACjC,CAAC,QAAQ,uBAAuB,SAAS,QAAQ,gBACjD,CAAC,QAAQ,uBAAuB,SAAS,QAAQ,cAAc,KAE/D,OAAM,IAAI,MACR,wEACD;EAGH,MAAM,gBACJ,QAAQ,uBAAuB,SAAS,QAAQ;EAElD,MAAM,OAAO,WAAW,QAAQ,MAAM,EAAE,OAAO,OAAO,CAAC;EACvD,MAAM,EAAE,iBAAiB,MAAM,KAAK,OAEjC,KAAK,WAAW,aAAa,CAAC;EAEjC,MAAM,MAAM,MAAM,aAChB,KACE;GACE,KAAK,gBAAgB;GACrB,MAAM,cAAc;GACpB,YAAY,QAAQ,cAAc,QAAQ;GAC3C,EACD,SACA,EACE,MAAM,QAAQ,aACf,CACF,CACF;AAED,MAAI;AACF,UAAO,MAAM,QAAQ,QACnB,WACE,KACE;IACE,aAAa,QAAQ;IACrB;IACA;IACA,cAAc;KACZ;KACA,aAAa,cAAc;KAC3B,QAAQ;MACN,MAAM,QAAQ;MACd,MAAM;OAAE,MAAM,QAAQ;OAAU,QAAQ,QAAQ;OAAQ;MACxD,QAAQ,QAAQ;MAChB,WAAW,QAAQ;MACpB;KACD,SAAS;MACP,UAAU,QAAQ;MAClB,YAAY,QAAQ;MACpB,uBAAuB,QAAQ;MAChC;KACF;IACD;IACD,EACD,QACD,EACD,IACD,CACF;WACM,OAAO;AACd,cACE,oDACE,QACD,qBACC,QAAQ,MAAM,GACV,GAAG,MAAM,QAAQ;;EAE/B,MAAM,UACQ,kBAEP;AAED,UAAO,EAAE,SAAS,OAAO;YACjB;AACR,SAAM,IAAI,UAAU;;IAGxB;EACE,mBAAmB;EACnB,OAAO,EACL,sBAAsB,YAAsC;AAC1D,UAAO;KAEV;EACF,CACF"}
|
|
@@ -23,26 +23,11 @@ function withExecutor(command, executorFn) {
|
|
|
23
23
|
if (!context.projectName || !context.projectsConfigurations?.projects || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) throw new Error("The executor requires `projectsConfigurations` on the context object.");
|
|
24
24
|
const projectConfig = context.projectsConfigurations.projects[context.projectName];
|
|
25
25
|
const jiti$1 = (0, jiti.createJiti)(context.root, { cache: false });
|
|
26
|
-
const {
|
|
27
|
-
const api = await
|
|
28
|
-
|
|
29
|
-
output: {
|
|
30
|
-
path: options.outputPath,
|
|
31
|
-
copy: {
|
|
32
|
-
path: options.copyPath,
|
|
33
|
-
assets: options.assets
|
|
34
|
-
},
|
|
35
|
-
format: options.format,
|
|
36
|
-
sourceMap: options.sourceMap
|
|
37
|
-
},
|
|
38
|
-
resolve: {
|
|
39
|
-
external: options.external,
|
|
40
|
-
noExternal: options.noExternal,
|
|
41
|
-
skipNodeModulesBundle: options.skipNodeModulesBundle
|
|
42
|
-
},
|
|
26
|
+
const { createEngine } = await jiti$1.import(jiti$1.esmResolve("powerlines"));
|
|
27
|
+
const api = await createEngine((0, defu.default)({
|
|
28
|
+
cwd: workspaceConfig.workspaceRoot,
|
|
43
29
|
root: projectConfig.root,
|
|
44
|
-
|
|
45
|
-
sourceRoot: projectConfig.sourceRoot
|
|
30
|
+
configFile: options.configFile ?? options.config
|
|
46
31
|
}, options, { name: context.projectName }));
|
|
47
32
|
try {
|
|
48
33
|
return await Promise.resolve(executorFn((0, defu.default)({
|
|
@@ -51,7 +36,21 @@ function withExecutor(command, executorFn) {
|
|
|
51
36
|
workspaceConfig,
|
|
52
37
|
inlineConfig: {
|
|
53
38
|
command,
|
|
54
|
-
|
|
39
|
+
projectType: projectConfig.projectType,
|
|
40
|
+
output: {
|
|
41
|
+
path: options.outputPath,
|
|
42
|
+
copy: {
|
|
43
|
+
path: options.copyPath,
|
|
44
|
+
assets: options.assets
|
|
45
|
+
},
|
|
46
|
+
format: options.format,
|
|
47
|
+
sourceMap: options.sourceMap
|
|
48
|
+
},
|
|
49
|
+
resolve: {
|
|
50
|
+
external: options.external,
|
|
51
|
+
noExternal: options.noExternal,
|
|
52
|
+
skipNodeModulesBundle: options.skipNodeModulesBundle
|
|
53
|
+
}
|
|
55
54
|
},
|
|
56
55
|
command
|
|
57
56
|
}, context), api));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
|
|
2
2
|
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
3
|
-
import { InlineConfig,
|
|
3
|
+
import { InlineConfig, PowerlinesCommand, PowerlinesEngine } from "powerlines";
|
|
4
4
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
5
5
|
|
|
6
6
|
//#region src/base/base-executor.schema.d.ts
|
|
@@ -160,4 +160,4 @@ type PowerlinesExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCo
|
|
|
160
160
|
};
|
|
161
161
|
//#endregion
|
|
162
162
|
export { PowerlinesExecutorContext as t };
|
|
163
|
-
//# sourceMappingURL=base-executor-
|
|
163
|
+
//# sourceMappingURL=base-executor-LiCOQirA.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-executor-
|
|
1
|
+
{"version":3,"file":"base-executor-LiCOQirA.d.mts","names":["BaseExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot"],"sources":["../../src/base/base-executor.schema.d.ts","../../src/base/base-executor.ts"],"mappings":";;;;;;;;UAIiBA,kBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;ACbD;;;;;;;EDuBCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;AAAAA;;;KCzHxE,yBAAA,kBACO,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,IAC3C,eAAA;EACF,WAAA;EACA,OAAA,EAAS,QAAA;EACT,OAAA,EAAS,eAAA;EACT,YAAA,EAAc,YAAA;EACd,eAAA,EAAiB,oBAAA;AAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
|
|
2
2
|
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
3
|
-
import { InlineConfig,
|
|
3
|
+
import { InlineConfig, PowerlinesCommand, PowerlinesEngine } from "powerlines";
|
|
4
4
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
5
5
|
|
|
6
6
|
//#region src/base/base-executor.schema.d.ts
|
|
@@ -160,4 +160,4 @@ type PowerlinesExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCo
|
|
|
160
160
|
};
|
|
161
161
|
//#endregion
|
|
162
162
|
export { PowerlinesExecutorContext as t };
|
|
163
|
-
//# sourceMappingURL=base-executor-
|
|
163
|
+
//# sourceMappingURL=base-executor-iHU-fU0G.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-executor-
|
|
1
|
+
{"version":3,"file":"base-executor-iHU-fU0G.d.ts","names":["BaseExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot"],"sources":["../../src/base/base-executor.schema.d.ts","../../src/base/base-executor.ts"],"mappings":";;;;;;;;UAIiBA,kBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;ACbD;;;;;;;EDuBCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;AAAAA;;;KCzHxE,yBAAA,kBACO,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,IAC3C,eAAA;EACF,WAAA;EACA,OAAA,EAAS,QAAA;EACT,OAAA,EAAS,eAAA;EACT,YAAA,EAAc,YAAA;EACd,eAAA,EAAiB,oBAAA;AAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as PowerlinesExecutorContext } from "../../base-executor-
|
|
1
|
+
import { t as PowerlinesExecutorContext } from "../../base-executor-LiCOQirA.mjs";
|
|
2
2
|
import { PromiseExecutor } from "@nx/devkit";
|
|
3
3
|
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
4
|
-
import {
|
|
4
|
+
import { PowerlinesEngine } from "powerlines";
|
|
5
5
|
|
|
6
6
|
//#region src/executors/build/schema.d.ts
|
|
7
7
|
// Generated by @storm-software/untyped
|
|
@@ -174,7 +174,7 @@ interface BuildExecutorSchema {
|
|
|
174
174
|
}
|
|
175
175
|
//#endregion
|
|
176
176
|
//#region src/executors/build/executor.d.ts
|
|
177
|
-
declare function executorFn(context: PowerlinesExecutorContext<"build", BuildExecutorSchema>, api:
|
|
177
|
+
declare function executorFn(context: PowerlinesExecutorContext<"build", BuildExecutorSchema>, api: PowerlinesEngine): Promise<BaseExecutorResult>;
|
|
178
178
|
declare const executor: PromiseExecutor<BuildExecutorSchema>;
|
|
179
179
|
//#endregion
|
|
180
180
|
export { executor as default, executorFn };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.mts","names":["BuildExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot","autoInstall","skipCache","entry"],"sources":["../../../../src/executors/build/schema.d.ts","../../../../src/executors/build/executor.ts"],"mappings":";;;;;;;;UAIiBA,mBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;EAsIK;;;;ACxJN;;;;ED4BCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;;ACpBA;;;ED4BAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;;;;;;;EAQnFC,WAAAA;;;;;;;EAQAC,SAAAA;;;;;;;;;EAUAC,KAAAA;AAAAA;;;iBCxJqB,UAAA,CACpB,OAAA,EAAS,yBAAA,UAAmC,mBAAA,GAC5C,GAAA,EAAK,
|
|
1
|
+
{"version":3,"file":"executor.d.mts","names":["BuildExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot","autoInstall","skipCache","entry"],"sources":["../../../../src/executors/build/schema.d.ts","../../../../src/executors/build/executor.ts"],"mappings":";;;;;;;;UAIiBA,mBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;EAsIK;;;;ACxJN;;;;ED4BCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;;ACpBA;;;ED4BAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;;;;;;;EAQnFC,WAAAA;;;;;;;EAQAC,SAAAA;;;;;;;;;EAUAC,KAAAA;AAAAA;;;iBCxJqB,UAAA,CACpB,OAAA,EAAS,yBAAA,UAAmC,mBAAA,GAC5C,GAAA,EAAK,gBAAA,GACJ,OAAA,CAAQ,kBAAA;AAAA,cAiBL,QAAA,EAAU,eAAA,CAAgB,mBAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as PowerlinesExecutorContext } from "../../base-executor-
|
|
1
|
+
import { t as PowerlinesExecutorContext } from "../../base-executor-iHU-fU0G.js";
|
|
2
2
|
import { PromiseExecutor } from "@nx/devkit";
|
|
3
3
|
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
4
|
-
import {
|
|
4
|
+
import { PowerlinesEngine } from "powerlines";
|
|
5
5
|
|
|
6
6
|
//#region src/executors/build/schema.d.ts
|
|
7
7
|
// Generated by @storm-software/untyped
|
|
@@ -174,7 +174,7 @@ interface BuildExecutorSchema {
|
|
|
174
174
|
}
|
|
175
175
|
//#endregion
|
|
176
176
|
//#region src/executors/build/executor.d.ts
|
|
177
|
-
declare function executorFn(context: PowerlinesExecutorContext<"build", BuildExecutorSchema>, api:
|
|
177
|
+
declare function executorFn(context: PowerlinesExecutorContext<"build", BuildExecutorSchema>, api: PowerlinesEngine): Promise<BaseExecutorResult>;
|
|
178
178
|
declare const executor: PromiseExecutor<BuildExecutorSchema>;
|
|
179
179
|
//#endregion
|
|
180
180
|
export { executor as default, executorFn };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","names":["BuildExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot","autoInstall","skipCache","entry"],"sources":["../../../../src/executors/build/schema.d.ts","../../../../src/executors/build/executor.ts"],"mappings":";;;;;;;;UAIiBA,mBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;EAsIK;;;;ACxJN;;;;ED4BCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;;ACpBA;;;ED4BAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;;;;;;;EAQnFC,WAAAA;;;;;;;EAQAC,SAAAA;;;;;;;;;EAUAC,KAAAA;AAAAA;;;iBCxJqB,UAAA,CACpB,OAAA,EAAS,yBAAA,UAAmC,mBAAA,GAC5C,GAAA,EAAK,
|
|
1
|
+
{"version":3,"file":"executor.d.ts","names":["BuildExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot","autoInstall","skipCache","entry"],"sources":["../../../../src/executors/build/schema.d.ts","../../../../src/executors/build/executor.ts"],"mappings":";;;;;;;;UAIiBA,mBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;EAsIK;;;;ACxJN;;;;ED4BCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;;ACpBA;;;ED4BAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;;;;;;;EAQnFC,WAAAA;;;;;;;EAQAC,SAAAA;;;;;;;;;EAUAC,KAAAA;AAAAA;;;iBCxJqB,UAAA,CACpB,OAAA,EAAS,yBAAA,UAAmC,mBAAA,GAC5C,GAAA,EAAK,gBAAA,GACJ,OAAA,CAAQ,kBAAA;AAAA,cAiBL,QAAA,EAAU,eAAA,CAAgB,mBAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_chunk = require('../../chunk-BE-pF4vm.js');
|
|
3
|
-
const require_base_executor = require('../../base-executor-
|
|
3
|
+
const require_base_executor = require('../../base-executor-BMK-RUBG.js');
|
|
4
4
|
let defu = require("defu");
|
|
5
5
|
defu = require_chunk.__toESM(defu);
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.mjs","names":[],"sources":["../../../../src/executors/build/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 { PromiseExecutor } from \"@nx/devkit\";\nimport { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport defu from \"defu\";\nimport type { BuildInlineConfig,
|
|
1
|
+
{"version":3,"file":"executor.mjs","names":[],"sources":["../../../../src/executors/build/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 { PromiseExecutor } from \"@nx/devkit\";\nimport { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport defu from \"defu\";\nimport type { BuildInlineConfig, PowerlinesEngine } from \"powerlines\";\nimport {\n PowerlinesExecutorContext,\n withExecutor\n} from \"../../base/base-executor\";\nimport type { BuildExecutorSchema } from \"./schema\";\n\nexport async function executorFn(\n context: PowerlinesExecutorContext<\"build\", BuildExecutorSchema>,\n api: PowerlinesEngine\n): Promise<BaseExecutorResult> {\n await api.build(\n defu(\n {\n input: context.options.input,\n skipCache: context.options.skipCache,\n mode: context.options.mode\n },\n context.inlineConfig\n ) as BuildInlineConfig\n );\n\n return {\n success: true\n };\n}\n\nconst executor: PromiseExecutor<BuildExecutorSchema> = withExecutor<\n \"build\",\n BuildExecutorSchema\n>(\"build\", executorFn);\n\nexport default executor;\n"],"mappings":";;;;AA4BA,eAAsB,WACpB,SACA,KAC6B;AAC7B,OAAM,IAAI,MACR,KACE;EACE,OAAO,QAAQ,QAAQ;EACvB,WAAW,QAAQ,QAAQ;EAC3B,MAAM,QAAQ,QAAQ;EACvB,EACD,QAAQ,aACT,CACF;AAED,QAAO,EACL,SAAS,MACV;;AAGH,MAAM,WAAiD,aAGrD,SAAS,WAAW"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as PowerlinesExecutorContext } from "../../base-executor-
|
|
1
|
+
import { t as PowerlinesExecutorContext } from "../../base-executor-LiCOQirA.mjs";
|
|
2
2
|
import { PromiseExecutor } from "@nx/devkit";
|
|
3
3
|
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
4
|
-
import {
|
|
4
|
+
import { PowerlinesEngine } from "powerlines";
|
|
5
5
|
|
|
6
6
|
//#region src/executors/clean/schema.d.ts
|
|
7
7
|
// Generated by @storm-software/untyped
|
|
@@ -151,7 +151,7 @@ interface CleanExecutorSchema {
|
|
|
151
151
|
}
|
|
152
152
|
//#endregion
|
|
153
153
|
//#region src/executors/clean/executor.d.ts
|
|
154
|
-
declare function executorFn(context: PowerlinesExecutorContext<"clean", CleanExecutorSchema>, api:
|
|
154
|
+
declare function executorFn(context: PowerlinesExecutorContext<"clean", CleanExecutorSchema>, api: PowerlinesEngine): Promise<BaseExecutorResult>;
|
|
155
155
|
declare const executor: PromiseExecutor<CleanExecutorSchema>;
|
|
156
156
|
//#endregion
|
|
157
157
|
export { executor as default, executorFn };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.mts","names":["CleanExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot"],"sources":["../../../../src/executors/clean/schema.d.ts","../../../../src/executors/clean/executor.ts"],"mappings":";;;;;;;;UAIiBA,mBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;ACnBD;;;;;;;ED6BCC,UAAAA;EC1BS;;;;;;;;EDoCTC,QAAAA;EC9BA;;;;;;EDsCAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;AAAAA;;;iBC/H9D,UAAA,CACpB,OAAA,EAAS,yBAAA,UAAmC,mBAAA,GAC5C,GAAA,EAAK,
|
|
1
|
+
{"version":3,"file":"executor.d.mts","names":["CleanExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot"],"sources":["../../../../src/executors/clean/schema.d.ts","../../../../src/executors/clean/executor.ts"],"mappings":";;;;;;;;UAIiBA,mBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;ACnBD;;;;;;;ED6BCC,UAAAA;EC1BS;;;;;;;;EDoCTC,QAAAA;EC9BA;;;;;;EDsCAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;AAAAA;;;iBC/H9D,UAAA,CACpB,OAAA,EAAS,yBAAA,UAAmC,mBAAA,GAC5C,GAAA,EAAK,gBAAA,GACJ,OAAA,CAAQ,kBAAA;AAAA,cAQL,QAAA,EAAU,eAAA,CAAgB,mBAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as PowerlinesExecutorContext } from "../../base-executor-
|
|
1
|
+
import { t as PowerlinesExecutorContext } from "../../base-executor-iHU-fU0G.js";
|
|
2
2
|
import { PromiseExecutor } from "@nx/devkit";
|
|
3
3
|
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
4
|
-
import {
|
|
4
|
+
import { PowerlinesEngine } from "powerlines";
|
|
5
5
|
|
|
6
6
|
//#region src/executors/clean/schema.d.ts
|
|
7
7
|
// Generated by @storm-software/untyped
|
|
@@ -151,7 +151,7 @@ interface CleanExecutorSchema {
|
|
|
151
151
|
}
|
|
152
152
|
//#endregion
|
|
153
153
|
//#region src/executors/clean/executor.d.ts
|
|
154
|
-
declare function executorFn(context: PowerlinesExecutorContext<"clean", CleanExecutorSchema>, api:
|
|
154
|
+
declare function executorFn(context: PowerlinesExecutorContext<"clean", CleanExecutorSchema>, api: PowerlinesEngine): Promise<BaseExecutorResult>;
|
|
155
155
|
declare const executor: PromiseExecutor<CleanExecutorSchema>;
|
|
156
156
|
//#endregion
|
|
157
157
|
export { executor as default, executorFn };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","names":["CleanExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot"],"sources":["../../../../src/executors/clean/schema.d.ts","../../../../src/executors/clean/executor.ts"],"mappings":";;;;;;;;UAIiBA,mBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;ACnBD;;;;;;;ED6BCC,UAAAA;EC1BS;;;;;;;;EDoCTC,QAAAA;EC9BA;;;;;;EDsCAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;AAAAA;;;iBC/H9D,UAAA,CACpB,OAAA,EAAS,yBAAA,UAAmC,mBAAA,GAC5C,GAAA,EAAK,
|
|
1
|
+
{"version":3,"file":"executor.d.ts","names":["CleanExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot"],"sources":["../../../../src/executors/clean/schema.d.ts","../../../../src/executors/clean/executor.ts"],"mappings":";;;;;;;;UAIiBA,mBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;ACnBD;;;;;;;ED6BCC,UAAAA;EC1BS;;;;;;;;EDoCTC,QAAAA;EC9BA;;;;;;EDsCAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;AAAAA;;;iBC/H9D,UAAA,CACpB,OAAA,EAAS,yBAAA,UAAmC,mBAAA,GAC5C,GAAA,EAAK,gBAAA,GACJ,OAAA,CAAQ,kBAAA;AAAA,cAQL,QAAA,EAAU,eAAA,CAAgB,mBAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const require_base_executor = require('../../base-executor-
|
|
2
|
+
const require_base_executor = require('../../base-executor-BMK-RUBG.js');
|
|
3
3
|
|
|
4
4
|
//#region src/executors/clean/executor.ts
|
|
5
5
|
async function executorFn(context, api) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.mjs","names":[],"sources":["../../../../src/executors/clean/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 { PromiseExecutor } from \"@nx/devkit\";\nimport { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport type { CleanInlineConfig,
|
|
1
|
+
{"version":3,"file":"executor.mjs","names":[],"sources":["../../../../src/executors/clean/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 { PromiseExecutor } from \"@nx/devkit\";\nimport { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport type { CleanInlineConfig, PowerlinesEngine } from \"powerlines\";\nimport {\n PowerlinesExecutorContext,\n withExecutor\n} from \"../../base/base-executor\";\nimport type { CleanExecutorSchema } from \"./schema\";\n\nexport async function executorFn(\n context: PowerlinesExecutorContext<\"clean\", CleanExecutorSchema>,\n api: PowerlinesEngine\n): Promise<BaseExecutorResult> {\n await api.clean(context.inlineConfig as CleanInlineConfig);\n\n return {\n success: true\n };\n}\n\nconst executor: PromiseExecutor<CleanExecutorSchema> = withExecutor<\n \"clean\",\n CleanExecutorSchema\n>(\"clean\", executorFn);\n\nexport default executor;\n"],"mappings":";;;AA2BA,eAAsB,WACpB,SACA,KAC6B;AAC7B,OAAM,IAAI,MAAM,QAAQ,aAAkC;AAE1D,QAAO,EACL,SAAS,MACV;;AAGH,MAAM,WAAiD,aAGrD,SAAS,WAAW"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as PowerlinesExecutorContext } from "../../base-executor-
|
|
1
|
+
import { t as PowerlinesExecutorContext } from "../../base-executor-LiCOQirA.mjs";
|
|
2
2
|
import { PromiseExecutor } from "@nx/devkit";
|
|
3
3
|
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
4
|
-
import {
|
|
4
|
+
import { PowerlinesEngine } from "powerlines";
|
|
5
5
|
|
|
6
6
|
//#region src/executors/docs/schema.d.ts
|
|
7
7
|
// Generated by @storm-software/untyped
|
|
@@ -165,7 +165,7 @@ interface DocsExecutorSchema {
|
|
|
165
165
|
}
|
|
166
166
|
//#endregion
|
|
167
167
|
//#region src/executors/docs/executor.d.ts
|
|
168
|
-
declare function executorFn(context: PowerlinesExecutorContext<"docs", DocsExecutorSchema>, api:
|
|
168
|
+
declare function executorFn(context: PowerlinesExecutorContext<"docs", DocsExecutorSchema>, api: PowerlinesEngine): Promise<BaseExecutorResult>;
|
|
169
169
|
declare const executor: PromiseExecutor<DocsExecutorSchema>;
|
|
170
170
|
//#endregion
|
|
171
171
|
export { executor as default, executorFn };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.mts","names":["DocsExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot","autoInstall","skipCache"],"sources":["../../../../src/executors/docs/schema.d.ts","../../../../src/executors/docs/executor.ts"],"mappings":";;;;;;;;UAIiBA,kBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;;;ACnBD;;;;;ED6BCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;AC9BA;;;;EDsCAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;;;;;;;EAQnFC,WAAAA;;;;;;;EAQAC,SAAAA;AAAAA;;;iBC/IqB,UAAA,CACpB,OAAA,EAAS,yBAAA,SAAkC,kBAAA,GAC3C,GAAA,EAAK,
|
|
1
|
+
{"version":3,"file":"executor.d.mts","names":["DocsExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot","autoInstall","skipCache"],"sources":["../../../../src/executors/docs/schema.d.ts","../../../../src/executors/docs/executor.ts"],"mappings":";;;;;;;;UAIiBA,kBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;;;ACnBD;;;;;ED6BCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;AC9BA;;;;EDsCAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;;;;;;;EAQnFC,WAAAA;;;;;;;EAQAC,SAAAA;AAAAA;;;iBC/IqB,UAAA,CACpB,OAAA,EAAS,yBAAA,SAAkC,kBAAA,GAC3C,GAAA,EAAK,gBAAA,GACJ,OAAA,CAAQ,kBAAA;AAAA,cAQL,QAAA,EAAU,eAAA,CAAgB,kBAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as PowerlinesExecutorContext } from "../../base-executor-
|
|
1
|
+
import { t as PowerlinesExecutorContext } from "../../base-executor-iHU-fU0G.js";
|
|
2
2
|
import { PromiseExecutor } from "@nx/devkit";
|
|
3
3
|
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
4
|
-
import {
|
|
4
|
+
import { PowerlinesEngine } from "powerlines";
|
|
5
5
|
|
|
6
6
|
//#region src/executors/docs/schema.d.ts
|
|
7
7
|
// Generated by @storm-software/untyped
|
|
@@ -165,7 +165,7 @@ interface DocsExecutorSchema {
|
|
|
165
165
|
}
|
|
166
166
|
//#endregion
|
|
167
167
|
//#region src/executors/docs/executor.d.ts
|
|
168
|
-
declare function executorFn(context: PowerlinesExecutorContext<"docs", DocsExecutorSchema>, api:
|
|
168
|
+
declare function executorFn(context: PowerlinesExecutorContext<"docs", DocsExecutorSchema>, api: PowerlinesEngine): Promise<BaseExecutorResult>;
|
|
169
169
|
declare const executor: PromiseExecutor<DocsExecutorSchema>;
|
|
170
170
|
//#endregion
|
|
171
171
|
export { executor as default, executorFn };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","names":["DocsExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot","autoInstall","skipCache"],"sources":["../../../../src/executors/docs/schema.d.ts","../../../../src/executors/docs/executor.ts"],"mappings":";;;;;;;;UAIiBA,kBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;;;ACnBD;;;;;ED6BCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;AC9BA;;;;EDsCAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;;;;;;;EAQnFC,WAAAA;;;;;;;EAQAC,SAAAA;AAAAA;;;iBC/IqB,UAAA,CACpB,OAAA,EAAS,yBAAA,SAAkC,kBAAA,GAC3C,GAAA,EAAK,
|
|
1
|
+
{"version":3,"file":"executor.d.ts","names":["DocsExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot","autoInstall","skipCache"],"sources":["../../../../src/executors/docs/schema.d.ts","../../../../src/executors/docs/executor.ts"],"mappings":";;;;;;;;UAIiBA,kBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;;;ACnBD;;;;;ED6BCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;AC9BA;;;;EDsCAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;;;;;;;EAQnFC,WAAAA;;;;;;;EAQAC,SAAAA;AAAAA;;;iBC/IqB,UAAA,CACpB,OAAA,EAAS,yBAAA,SAAkC,kBAAA,GAC3C,GAAA,EAAK,gBAAA,GACJ,OAAA,CAAQ,kBAAA;AAAA,cAQL,QAAA,EAAU,eAAA,CAAgB,kBAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const require_base_executor = require('../../base-executor-
|
|
2
|
+
const require_base_executor = require('../../base-executor-BMK-RUBG.js');
|
|
3
3
|
|
|
4
4
|
//#region src/executors/docs/executor.ts
|
|
5
5
|
async function executorFn(context, api) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.mjs","names":[],"sources":["../../../../src/executors/docs/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 { PromiseExecutor } from \"@nx/devkit\";\nimport { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport type { DocsInlineConfig,
|
|
1
|
+
{"version":3,"file":"executor.mjs","names":[],"sources":["../../../../src/executors/docs/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 { PromiseExecutor } from \"@nx/devkit\";\nimport { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport type { DocsInlineConfig, PowerlinesEngine } from \"powerlines\";\nimport {\n PowerlinesExecutorContext,\n withExecutor\n} from \"../../base/base-executor\";\nimport type { DocsExecutorSchema } from \"./schema\";\n\nexport async function executorFn(\n context: PowerlinesExecutorContext<\"docs\", DocsExecutorSchema>,\n api: PowerlinesEngine\n): Promise<BaseExecutorResult> {\n await api.docs(context.inlineConfig as DocsInlineConfig);\n\n return {\n success: true\n };\n}\n\nconst executor: PromiseExecutor<DocsExecutorSchema> = withExecutor<\n \"docs\",\n DocsExecutorSchema\n>(\"docs\", executorFn);\n\nexport default executor;\n"],"mappings":";;;AA2BA,eAAsB,WACpB,SACA,KAC6B;AAC7B,OAAM,IAAI,KAAK,QAAQ,aAAiC;AAExD,QAAO,EACL,SAAS,MACV;;AAGH,MAAM,WAAgD,aAGpD,QAAQ,WAAW"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as PowerlinesExecutorContext } from "../../base-executor-
|
|
1
|
+
import { t as PowerlinesExecutorContext } from "../../base-executor-LiCOQirA.mjs";
|
|
2
2
|
import { PromiseExecutor } from "@nx/devkit";
|
|
3
3
|
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
4
|
-
import {
|
|
4
|
+
import { PowerlinesEngine } from "powerlines";
|
|
5
5
|
|
|
6
6
|
//#region src/executors/lint/schema.d.ts
|
|
7
7
|
// Generated by @storm-software/untyped
|
|
@@ -165,7 +165,7 @@ interface LintExecutorSchema {
|
|
|
165
165
|
}
|
|
166
166
|
//#endregion
|
|
167
167
|
//#region src/executors/lint/executor.d.ts
|
|
168
|
-
declare function executorFn(context: PowerlinesExecutorContext<"lint", LintExecutorSchema>, api:
|
|
168
|
+
declare function executorFn(context: PowerlinesExecutorContext<"lint", LintExecutorSchema>, api: PowerlinesEngine): Promise<BaseExecutorResult>;
|
|
169
169
|
declare const executor: PromiseExecutor<LintExecutorSchema>;
|
|
170
170
|
//#endregion
|
|
171
171
|
export { executor as default, executorFn };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.mts","names":["LintExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot","autoInstall","skipCache"],"sources":["../../../../src/executors/lint/schema.d.ts","../../../../src/executors/lint/executor.ts"],"mappings":";;;;;;;;UAIiBA,kBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;;;ACnBD;;;;;ED6BCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;AC9BA;;;;EDsCAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;;;;;;;EAQnFC,WAAAA;;;;;;;EAQAC,SAAAA;AAAAA;;;iBC/IqB,UAAA,CACpB,OAAA,EAAS,yBAAA,SAAkC,kBAAA,GAC3C,GAAA,EAAK,
|
|
1
|
+
{"version":3,"file":"executor.d.mts","names":["LintExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot","autoInstall","skipCache"],"sources":["../../../../src/executors/lint/schema.d.ts","../../../../src/executors/lint/executor.ts"],"mappings":";;;;;;;;UAIiBA,kBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;;;ACnBD;;;;;ED6BCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;AC9BA;;;;EDsCAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;;;;;;;EAQnFC,WAAAA;;;;;;;EAQAC,SAAAA;AAAAA;;;iBC/IqB,UAAA,CACpB,OAAA,EAAS,yBAAA,SAAkC,kBAAA,GAC3C,GAAA,EAAK,gBAAA,GACJ,OAAA,CAAQ,kBAAA;AAAA,cAQL,QAAA,EAAU,eAAA,CAAgB,kBAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as PowerlinesExecutorContext } from "../../base-executor-
|
|
1
|
+
import { t as PowerlinesExecutorContext } from "../../base-executor-iHU-fU0G.js";
|
|
2
2
|
import { PromiseExecutor } from "@nx/devkit";
|
|
3
3
|
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
4
|
-
import {
|
|
4
|
+
import { PowerlinesEngine } from "powerlines";
|
|
5
5
|
|
|
6
6
|
//#region src/executors/lint/schema.d.ts
|
|
7
7
|
// Generated by @storm-software/untyped
|
|
@@ -165,7 +165,7 @@ interface LintExecutorSchema {
|
|
|
165
165
|
}
|
|
166
166
|
//#endregion
|
|
167
167
|
//#region src/executors/lint/executor.d.ts
|
|
168
|
-
declare function executorFn(context: PowerlinesExecutorContext<"lint", LintExecutorSchema>, api:
|
|
168
|
+
declare function executorFn(context: PowerlinesExecutorContext<"lint", LintExecutorSchema>, api: PowerlinesEngine): Promise<BaseExecutorResult>;
|
|
169
169
|
declare const executor: PromiseExecutor<LintExecutorSchema>;
|
|
170
170
|
//#endregion
|
|
171
171
|
export { executor as default, executorFn };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","names":["LintExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot","autoInstall","skipCache"],"sources":["../../../../src/executors/lint/schema.d.ts","../../../../src/executors/lint/executor.ts"],"mappings":";;;;;;;;UAIiBA,kBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;;;ACnBD;;;;;ED6BCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;AC9BA;;;;EDsCAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;;;;;;;EAQnFC,WAAAA;;;;;;;EAQAC,SAAAA;AAAAA;;;iBC/IqB,UAAA,CACpB,OAAA,EAAS,yBAAA,SAAkC,kBAAA,GAC3C,GAAA,EAAK,
|
|
1
|
+
{"version":3,"file":"executor.d.ts","names":["LintExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot","autoInstall","skipCache"],"sources":["../../../../src/executors/lint/schema.d.ts","../../../../src/executors/lint/executor.ts"],"mappings":";;;;;;;;UAIiBA,kBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;;;ACnBD;;;;;ED6BCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;AC9BA;;;;EDsCAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;;;;;;;EAQnFC,WAAAA;;;;;;;EAQAC,SAAAA;AAAAA;;;iBC/IqB,UAAA,CACpB,OAAA,EAAS,yBAAA,SAAkC,kBAAA,GAC3C,GAAA,EAAK,gBAAA,GACJ,OAAA,CAAQ,kBAAA;AAAA,cAQL,QAAA,EAAU,eAAA,CAAgB,kBAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const require_base_executor = require('../../base-executor-
|
|
2
|
+
const require_base_executor = require('../../base-executor-BMK-RUBG.js');
|
|
3
3
|
|
|
4
4
|
//#region src/executors/lint/executor.ts
|
|
5
5
|
async function executorFn(context, api) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.mjs","names":[],"sources":["../../../../src/executors/lint/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 { PromiseExecutor } from \"@nx/devkit\";\nimport { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport type { LintInlineConfig,
|
|
1
|
+
{"version":3,"file":"executor.mjs","names":[],"sources":["../../../../src/executors/lint/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 { PromiseExecutor } from \"@nx/devkit\";\nimport { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport type { LintInlineConfig, PowerlinesEngine } from \"powerlines\";\nimport {\n PowerlinesExecutorContext,\n withExecutor\n} from \"../../base/base-executor\";\nimport type { LintExecutorSchema } from \"./schema\";\n\nexport async function executorFn(\n context: PowerlinesExecutorContext<\"lint\", LintExecutorSchema>,\n api: PowerlinesEngine\n): Promise<BaseExecutorResult> {\n await api.lint(context.inlineConfig as LintInlineConfig);\n\n return {\n success: true\n };\n}\n\nconst executor: PromiseExecutor<LintExecutorSchema> = withExecutor<\n \"lint\",\n LintExecutorSchema\n>(\"lint\", executorFn);\n\nexport default executor;\n"],"mappings":";;;AA2BA,eAAsB,WACpB,SACA,KAC6B;AAC7B,OAAM,IAAI,KAAK,QAAQ,aAAiC;AAExD,QAAO,EACL,SAAS,MACV;;AAGH,MAAM,WAAgD,aAGpD,QAAQ,WAAW"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as PowerlinesExecutorContext } from "../../base-executor-
|
|
1
|
+
import { t as PowerlinesExecutorContext } from "../../base-executor-LiCOQirA.mjs";
|
|
2
2
|
import { PromiseExecutor } from "@nx/devkit";
|
|
3
3
|
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
4
|
-
import {
|
|
4
|
+
import { PowerlinesEngine } from "powerlines";
|
|
5
5
|
|
|
6
6
|
//#region src/executors/prepare/schema.d.ts
|
|
7
7
|
// Generated by @storm-software/untyped
|
|
@@ -165,7 +165,7 @@ interface PrepareExecutorSchema {
|
|
|
165
165
|
}
|
|
166
166
|
//#endregion
|
|
167
167
|
//#region src/executors/prepare/executor.d.ts
|
|
168
|
-
declare function executorFn(context: PowerlinesExecutorContext<"prepare", PrepareExecutorSchema>, api:
|
|
168
|
+
declare function executorFn(context: PowerlinesExecutorContext<"prepare", PrepareExecutorSchema>, api: PowerlinesEngine): Promise<BaseExecutorResult>;
|
|
169
169
|
declare const executor: PromiseExecutor<PrepareExecutorSchema>;
|
|
170
170
|
//#endregion
|
|
171
171
|
export { executor as default, executorFn };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.mts","names":["PrepareExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot","autoInstall","skipCache"],"sources":["../../../../src/executors/prepare/schema.d.ts","../../../../src/executors/prepare/executor.ts"],"mappings":";;;;;;;;UAIiBA,qBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;;;AClBD;;;;;ED4BCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;ACpBA;;;;ED4BAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;;;;;;;EAQnFC,WAAAA;;;;;;;EAQAC,SAAAA;AAAAA;;;iBC9IqB,UAAA,CACpB,OAAA,EAAS,yBAAA,YAAqC,qBAAA,GAC9C,GAAA,EAAK,
|
|
1
|
+
{"version":3,"file":"executor.d.mts","names":["PrepareExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot","autoInstall","skipCache"],"sources":["../../../../src/executors/prepare/schema.d.ts","../../../../src/executors/prepare/executor.ts"],"mappings":";;;;;;;;UAIiBA,qBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;;;AClBD;;;;;ED4BCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;ACpBA;;;;ED4BAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;;;;;;;EAQnFC,WAAAA;;;;;;;EAQAC,SAAAA;AAAAA;;;iBC9IqB,UAAA,CACpB,OAAA,EAAS,yBAAA,YAAqC,qBAAA,GAC9C,GAAA,EAAK,gBAAA,GACJ,OAAA,CAAQ,kBAAA;AAAA,cAiBL,QAAA,EAAU,eAAA,CAAgB,qBAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as PowerlinesExecutorContext } from "../../base-executor-
|
|
1
|
+
import { t as PowerlinesExecutorContext } from "../../base-executor-iHU-fU0G.js";
|
|
2
2
|
import { PromiseExecutor } from "@nx/devkit";
|
|
3
3
|
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
4
|
-
import {
|
|
4
|
+
import { PowerlinesEngine } from "powerlines";
|
|
5
5
|
|
|
6
6
|
//#region src/executors/prepare/schema.d.ts
|
|
7
7
|
// Generated by @storm-software/untyped
|
|
@@ -165,7 +165,7 @@ interface PrepareExecutorSchema {
|
|
|
165
165
|
}
|
|
166
166
|
//#endregion
|
|
167
167
|
//#region src/executors/prepare/executor.d.ts
|
|
168
|
-
declare function executorFn(context: PowerlinesExecutorContext<"prepare", PrepareExecutorSchema>, api:
|
|
168
|
+
declare function executorFn(context: PowerlinesExecutorContext<"prepare", PrepareExecutorSchema>, api: PowerlinesEngine): Promise<BaseExecutorResult>;
|
|
169
169
|
declare const executor: PromiseExecutor<PrepareExecutorSchema>;
|
|
170
170
|
//#endregion
|
|
171
171
|
export { executor as default, executorFn };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","names":["PrepareExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot","autoInstall","skipCache"],"sources":["../../../../src/executors/prepare/schema.d.ts","../../../../src/executors/prepare/executor.ts"],"mappings":";;;;;;;;UAIiBA,qBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;;;AClBD;;;;;ED4BCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;ACpBA;;;;ED4BAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;;;;;;;EAQnFC,WAAAA;;;;;;;EAQAC,SAAAA;AAAAA;;;iBC9IqB,UAAA,CACpB,OAAA,EAAS,yBAAA,YAAqC,qBAAA,GAC9C,GAAA,EAAK,
|
|
1
|
+
{"version":3,"file":"executor.d.ts","names":["PrepareExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot","autoInstall","skipCache"],"sources":["../../../../src/executors/prepare/schema.d.ts","../../../../src/executors/prepare/executor.ts"],"mappings":";;;;;;;;UAIiBA,qBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;;;AClBD;;;;;ED4BCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;ACpBA;;;;ED4BAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;;;;;;;EAQnFC,WAAAA;;;;;;;EAQAC,SAAAA;AAAAA;;;iBC9IqB,UAAA,CACpB,OAAA,EAAS,yBAAA,YAAqC,qBAAA,GAC9C,GAAA,EAAK,gBAAA,GACJ,OAAA,CAAQ,kBAAA;AAAA,cAiBL,QAAA,EAAU,eAAA,CAAgB,qBAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_chunk = require('../../chunk-BE-pF4vm.js');
|
|
3
|
-
const require_base_executor = require('../../base-executor-
|
|
3
|
+
const require_base_executor = require('../../base-executor-BMK-RUBG.js');
|
|
4
4
|
let defu = require("defu");
|
|
5
5
|
defu = require_chunk.__toESM(defu);
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.mjs","names":[],"sources":["../../../../src/executors/prepare/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 { PromiseExecutor } from \"@nx/devkit\";\nimport { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport defu from \"defu\";\nimport type {
|
|
1
|
+
{"version":3,"file":"executor.mjs","names":[],"sources":["../../../../src/executors/prepare/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 { PromiseExecutor } from \"@nx/devkit\";\nimport { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport defu from \"defu\";\nimport type { PowerlinesEngine } from \"powerlines\";\nimport {\n PowerlinesExecutorContext,\n withExecutor\n} from \"../../base/base-executor\";\nimport { PrepareExecutorSchema } from \"./schema\";\n\nexport async function executorFn(\n context: PowerlinesExecutorContext<\"prepare\", PrepareExecutorSchema>,\n api: PowerlinesEngine\n): Promise<BaseExecutorResult> {\n await api.prepare(\n defu(\n {\n command: \"prepare\",\n skipCache: context.options.skipCache,\n autoInstall: context.options.autoInstall\n },\n context.inlineConfig\n )\n );\n\n return {\n success: true\n };\n}\n\nconst executor: PromiseExecutor<PrepareExecutorSchema> = withExecutor<\n \"prepare\",\n PrepareExecutorSchema\n>(\"prepare\", executorFn);\n\nexport default executor;\n"],"mappings":";;;;AA4BA,eAAsB,WACpB,SACA,KAC6B;AAC7B,OAAM,IAAI,QACR,KACE;EACE,SAAS;EACT,WAAW,QAAQ,QAAQ;EAC3B,aAAa,QAAQ,QAAQ;EAC9B,EACD,QAAQ,aACT,CACF;AAED,QAAO,EACL,SAAS,MACV;;AAGH,MAAM,WAAmD,aAGvD,WAAW,WAAW"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/nx",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"description": "A Nx plugin to support Powerlines development in Nx monorepos.",
|
|
@@ -174,10 +174,10 @@
|
|
|
174
174
|
"typings": "./dist/src/index.d.ts",
|
|
175
175
|
"dependencies": {
|
|
176
176
|
"@nx/devkit": "^22.6.5",
|
|
177
|
-
"@storm-software/build-tools": "^0.158.
|
|
178
|
-
"@storm-software/config": "^1.137.
|
|
179
|
-
"@storm-software/config-tools": "^1.189.
|
|
180
|
-
"@storm-software/workspace-tools": "^1.295.
|
|
177
|
+
"@storm-software/build-tools": "^0.158.158",
|
|
178
|
+
"@storm-software/config": "^1.137.31",
|
|
179
|
+
"@storm-software/config-tools": "^1.189.77",
|
|
180
|
+
"@storm-software/workspace-tools": "^1.295.55",
|
|
181
181
|
"@stryke/env": "^0.20.83",
|
|
182
182
|
"@stryke/fs": "^0.33.66",
|
|
183
183
|
"@stryke/hash": "^0.13.19",
|
|
@@ -189,14 +189,14 @@
|
|
|
189
189
|
},
|
|
190
190
|
"devDependencies": {
|
|
191
191
|
"@nx/workspace": "22.6.4",
|
|
192
|
-
"@storm-software/testing-tools": "^1.119.
|
|
193
|
-
"@storm-software/tsup": "^0.2.
|
|
194
|
-
"@storm-software/untyped": "^0.24.
|
|
192
|
+
"@storm-software/testing-tools": "^1.119.152",
|
|
193
|
+
"@storm-software/tsup": "^0.2.156",
|
|
194
|
+
"@storm-software/untyped": "^0.24.140",
|
|
195
195
|
"@types/node": "^25.6.0",
|
|
196
196
|
"eslint-flat-config-utils": "^2.1.4",
|
|
197
197
|
"jsonc-eslint-parser": "^2.4.2",
|
|
198
198
|
"nx": "22.6.4",
|
|
199
|
-
"powerlines": "^0.
|
|
199
|
+
"powerlines": "^0.43.0",
|
|
200
200
|
"untyped": "^1.5.2"
|
|
201
201
|
},
|
|
202
202
|
"peerDependencies": { "nx": ">=22.5.0", "powerlines": ">=0.42.31" },
|
|
@@ -207,5 +207,5 @@
|
|
|
207
207
|
"publishConfig": { "access": "public" },
|
|
208
208
|
"executors": "./executors.json",
|
|
209
209
|
"generators": "./generators.json",
|
|
210
|
-
"gitHead": "
|
|
210
|
+
"gitHead": "49eae5ce8145cd6ae873cb4d9b3d747f7132c82d"
|
|
211
211
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-executor-LqlRTfas.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 { ExecutorContext, PromiseExecutor } from \"@nx/devkit\";\nimport { writeError } from \"@storm-software/config-tools/logger\";\nimport { StormWorkspaceConfig } from \"@storm-software/config/types\";\nimport { withRunExecutor } from \"@storm-software/workspace-tools/base/base-executor\";\nimport { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport { isError } from \"@stryke/type-checks/is-error\";\nimport defu from \"defu\";\nimport { createJiti } from \"jiti\";\nimport type {\n InitialUserConfig,\n InlineConfig,\n PowerlinesAPI,\n PowerlinesCommand\n} from \"powerlines\";\nimport { BaseExecutorSchema } from \"./base-executor.schema\";\n\nexport type PowerlinesExecutorContext<\n TCommand extends PowerlinesCommand = PowerlinesCommand,\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n> = ExecutorContext & {\n projectName: string;\n command: TCommand;\n options: TExecutorSchema;\n inlineConfig: InlineConfig;\n workspaceConfig: StormWorkspaceConfig;\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 * @returns A Promise that resolves to the result of the executor function.\n */\nexport function withExecutor<\n TCommand extends PowerlinesCommand = PowerlinesCommand,\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n>(\n command: TCommand,\n executorFn: (\n context: PowerlinesExecutorContext<TCommand, TExecutorSchema>,\n api: PowerlinesAPI\n ) =>\n | Promise<BaseExecutorResult | null | undefined>\n | BaseExecutorResult\n | null\n | undefined\n): PromiseExecutor<TExecutorSchema> {\n return withRunExecutor(\n `Powerlines ${command} 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 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 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, { cache: false });\n const { PowerlinesAPI } = await jiti.import<{\n PowerlinesAPI: typeof import(\"powerlines\").PowerlinesAPI;\n }>(jiti.esmResolve(\"powerlines\"));\n\n const api = await PowerlinesAPI.from(\n workspaceConfig.workspaceRoot,\n defu(\n {\n configFile: options.configFile ?? options.config,\n output: {\n path: options.outputPath,\n copy: { path: options.copyPath, assets: options.assets },\n format: options.format,\n sourceMap: options.sourceMap\n },\n resolve: {\n external: options.external,\n noExternal: options.noExternal,\n skipNodeModulesBundle: options.skipNodeModulesBundle\n },\n root: projectConfig.root,\n projectType: projectConfig.projectType,\n sourceRoot: projectConfig.sourceRoot\n },\n options,\n {\n name: context.projectName\n }\n ) as InitialUserConfig\n );\n\n try {\n return await Promise.resolve(\n executorFn(\n defu(\n {\n projectName: context.projectName,\n options,\n workspaceConfig,\n inlineConfig: {\n command,\n configFile: options.configFile || options.config\n },\n command\n },\n context\n ),\n api\n )\n );\n } catch (error) {\n writeError(\n `An error occurred while executing the Powerlines ${\n command\n } command executor: ${\n isError(error)\n ? `${error.message}\n\n${error.stack}`\n : \"Unknown error\"\n }`\n );\n\n return { success: false };\n } finally {\n await api.finalize();\n }\n },\n {\n skipReadingConfig: false,\n hooks: {\n applyDefaultOptions: (options: Partial<TExecutorSchema>) => {\n return options as TExecutorSchema;\n }\n }\n }\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAuDA,SAAgB,aAId,SACA,YAQkC;AAClC,QAAO,gBACL,cAAc,QAAQ,oBACtB,OACE,SACA,SACA,oBACmD;AACnD,MAAI,CAAC,QAAQ,YACX,OAAM,IAAI,MACR,6DACD;AAGH,MACE,CAAC,QAAQ,eACT,CAAC,QAAQ,wBAAwB,YACjC,CAAC,QAAQ,uBAAuB,SAAS,QAAQ,gBACjD,CAAC,QAAQ,uBAAuB,SAAS,QAAQ,cAAc,KAE/D,OAAM,IAAI,MACR,wEACD;EAGH,MAAM,gBACJ,QAAQ,uBAAuB,SAAS,QAAQ;EAElD,MAAM,OAAO,WAAW,QAAQ,MAAM,EAAE,OAAO,OAAO,CAAC;EACvD,MAAM,EAAE,kBAAkB,MAAM,KAAK,OAElC,KAAK,WAAW,aAAa,CAAC;EAEjC,MAAM,MAAM,MAAM,cAAc,KAC9B,gBAAgB,eAChB,KACE;GACE,YAAY,QAAQ,cAAc,QAAQ;GAC1C,QAAQ;IACN,MAAM,QAAQ;IACd,MAAM;KAAE,MAAM,QAAQ;KAAU,QAAQ,QAAQ;KAAQ;IACxD,QAAQ,QAAQ;IAChB,WAAW,QAAQ;IACpB;GACD,SAAS;IACP,UAAU,QAAQ;IAClB,YAAY,QAAQ;IACpB,uBAAuB,QAAQ;IAChC;GACD,MAAM,cAAc;GACpB,aAAa,cAAc;GAC3B,YAAY,cAAc;GAC3B,EACD,SACA,EACE,MAAM,QAAQ,aACf,CACF,CACF;AAED,MAAI;AACF,UAAO,MAAM,QAAQ,QACnB,WACE,KACE;IACE,aAAa,QAAQ;IACrB;IACA;IACA,cAAc;KACZ;KACA,YAAY,QAAQ,cAAc,QAAQ;KAC3C;IACD;IACD,EACD,QACD,EACD,IACD,CACF;WACM,OAAO;AACd,cACE,oDACE,QACD,qBACC,QAAQ,MAAM,GACV,GAAG,MAAM,QAAQ;;EAE/B,MAAM,UACQ,kBAEP;AAED,UAAO,EAAE,SAAS,OAAO;YACjB;AACR,SAAM,IAAI,UAAU;;IAGxB;EACE,mBAAmB;EACnB,OAAO,EACL,sBAAsB,YAAsC;AAC1D,UAAO;KAEV;EACF,CACF"}
|