@powerlines/nx 0.10.42 → 0.10.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{chunk-4ORYCFWC.mjs → chunk-3RJOKQUX.mjs} +106 -99
  3. package/dist/{chunk-EVQUHERC.js → chunk-77YOD2NF.js} +2 -2
  4. package/dist/{chunk-P5OT3UM4.js → chunk-B4NM3U7L.js} +2 -2
  5. package/dist/{chunk-BX7H4PEX.js → chunk-CQG4OZIZ.js} +2 -2
  6. package/dist/{chunk-KHQDHABG.mjs → chunk-F3VIYWFE.mjs} +1 -1
  7. package/dist/{chunk-NEJYRJJ3.js → chunk-FUMHFDV6.js} +106 -99
  8. package/dist/{chunk-GNKI3DYY.mjs → chunk-IWBMRGCU.mjs} +1 -1
  9. package/dist/{chunk-YNPFM7N4.js → chunk-L4JN6AKG.js} +2 -2
  10. package/dist/{chunk-OIWC4A2B.mjs → chunk-LMB7F45J.mjs} +1 -1
  11. package/dist/{chunk-JPGLONS5.js → chunk-OYKZ4P4Y.js} +2 -2
  12. package/dist/{chunk-DAAOQSTD.mjs → chunk-Z362RFA3.mjs} +1 -1
  13. package/dist/{chunk-IWS2JVQ6.mjs → chunk-ZPDQKHWE.mjs} +1 -1
  14. package/dist/executors.js +11 -11
  15. package/dist/executors.mjs +6 -6
  16. package/dist/index.js +11 -11
  17. package/dist/index.mjs +6 -6
  18. package/dist/src/base/base-executor.js +2 -2
  19. package/dist/src/base/base-executor.mjs +1 -1
  20. package/dist/src/executors/build/executor.js +4 -4
  21. package/dist/src/executors/build/executor.mjs +2 -2
  22. package/dist/src/executors/clean/executor.js +4 -4
  23. package/dist/src/executors/clean/executor.mjs +2 -2
  24. package/dist/src/executors/docs/executor.js +4 -4
  25. package/dist/src/executors/docs/executor.mjs +2 -2
  26. package/dist/src/executors/lint/executor.js +4 -4
  27. package/dist/src/executors/lint/executor.mjs +2 -2
  28. package/dist/src/executors/prepare/executor.js +4 -4
  29. package/dist/src/executors/prepare/executor.mjs +2 -2
  30. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  # Changelog for Powerlines - Nx
4
4
 
5
+ ## [0.10.43](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.43) (11/27/2025)
6
+
7
+ ### Updated Dependencies
8
+
9
+ - Updated **powerlines** to **v0.26.0**
10
+
5
11
  ## [0.10.42](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.42) (11/27/2025)
6
12
 
7
13
  ### Updated Dependencies
@@ -337,9 +337,25 @@ async function callHook(context, hook, options, ...args) {
337
337
  if (!isFunction(handler)) {
338
338
  throw new Error(`Plugin hook handler for hook "${hook}" is not a function.`);
339
339
  }
340
- results.push(await Promise.resolve(handler.apply(null, ...args)));
341
- if (options?.result === "first" && isSet(results[results.length - 1])) {
342
- break;
340
+ if (options?.result === "first" || options?.asNextParam === false) {
341
+ results.push(await Promise.resolve(handler.apply(null, ...args)));
342
+ if (options?.result === "first" && isSet(results[results.length - 1])) {
343
+ break;
344
+ }
345
+ } else {
346
+ const sequenceArgs = [
347
+ ...args
348
+ ];
349
+ if (results.length > 0 && sequenceArgs.length > 0) {
350
+ sequenceArgs[0] = isFunction(options.asNextParam) ? await Promise.resolve(options.asNextParam(results[0])) : results[0];
351
+ }
352
+ const result = await Promise.resolve(
353
+ // eslint-disable-next-line ts/no-unsafe-call
354
+ handler.apply(null, ...sequenceArgs)
355
+ );
356
+ results = [
357
+ result
358
+ ];
343
359
  }
344
360
  }
345
361
  }
@@ -2996,6 +3012,7 @@ var PowerlinesContext = class _PowerlinesContext {
2996
3012
  // ../powerlines/src/types/plugin.ts
2997
3013
  var PLUGIN_NON_HOOK_FIELDS = [
2998
3014
  "name",
3015
+ "api",
2999
3016
  "enforce",
3000
3017
  "dedupe",
3001
3018
  "dependsOn",
@@ -3403,7 +3420,8 @@ var PowerlinesAPI = class _PowerlinesAPI {
3403
3420
  if (api.context.plugins.length === 0) {
3404
3421
  api.context.log(LogLevelLabel.WARN, "No Powerlines plugins were specified in the options. Please ensure this is correct, as it is generally not recommended.");
3405
3422
  }
3406
- const pluginConfig = await callHook(await api.context.getEnvironment(), "config", {
3423
+ const pluginConfig = await api.callHook("config", {
3424
+ environment: await api.context.getEnvironment(),
3407
3425
  sequential: true,
3408
3426
  result: "merge"
3409
3427
  });
@@ -3428,14 +3446,23 @@ var PowerlinesAPI = class _PowerlinesAPI {
3428
3446
  await this.context.withInlineConfig(inlineConfig);
3429
3447
  await this.#executeEnvironments(async (context) => {
3430
3448
  context.log(LogLevelLabel.TRACE, `Initializing the processing options for the Powerlines project.`);
3431
- await this.callPreHook(context, "configResolved");
3449
+ await this.callHook("configResolved", {
3450
+ environment: context,
3451
+ order: "pre"
3452
+ });
3432
3453
  await initializeTsconfig(context);
3433
- await this.callNormalHook(context, "configResolved");
3454
+ await this.callHook("configResolved", {
3455
+ environment: context,
3456
+ order: "normal"
3457
+ });
3434
3458
  context.log(LogLevelLabel.DEBUG, `The configuration provided ${toArray(context.config.entry).length} entry point(s), Powerlines has found ${context.entry.length} entry files(s) for the ${context.config.title} project${context.entry.length > 0 && context.entry.length < 10 ? `:
3435
3459
  ${context.entry.map((entry) => `- ${entry.input.file || entry.file}${entry.output ? ` -> ${entry.output}` : ""}`).join(" \n")}` : ""}.`);
3436
3460
  await resolveTsconfig(context);
3437
3461
  await installDependencies(context);
3438
- await this.callPostHook(context, "configResolved");
3462
+ await this.callHook("configResolved", {
3463
+ environment: context,
3464
+ order: "post"
3465
+ });
3439
3466
  context.log(LogLevelLabel.TRACE, `Powerlines configuration has been resolved:
3440
3467
 
3441
3468
  ${formatLogMessage(context.config)}`);
@@ -3447,8 +3474,14 @@ ${formatLogMessage(context.config)}`);
3447
3474
  if (!context.fs.existsSync(context.dataPath)) {
3448
3475
  await createDirectory(context.dataPath);
3449
3476
  }
3450
- await this.callPreHook(context, "prepare");
3451
- await this.callNormalHook(context, "prepare");
3477
+ await this.callHook("prepare", {
3478
+ environment: context,
3479
+ order: "pre"
3480
+ });
3481
+ await this.callHook("prepare", {
3482
+ environment: context,
3483
+ order: "normal"
3484
+ });
3452
3485
  if (context.config.output.dts !== false) {
3453
3486
  context.log(LogLevelLabel.TRACE, `Preparing the TypeScript definitions for the Powerlines project.`);
3454
3487
  if (context.fs.existsSync(context.dtsPath)) {
@@ -3506,7 +3539,10 @@ ${formatLogMessage(context.config)}`);
3506
3539
  let generatedTypes = await emitTypes(context, files);
3507
3540
  context.log(LogLevelLabel.TRACE, `Generating TypeScript declaration file ${context.dtsPath}.`);
3508
3541
  const directives = [];
3509
- let result = await this.callPreHook(context, "generateTypes", generatedTypes);
3542
+ let result = await this.callHook("generateTypes", {
3543
+ environment: context,
3544
+ order: "pre"
3545
+ }, generatedTypes);
3510
3546
  if (result) {
3511
3547
  if (isSetObject(result)) {
3512
3548
  generatedTypes = result.code;
@@ -3517,7 +3553,10 @@ ${formatLogMessage(context.config)}`);
3517
3553
  generatedTypes = result;
3518
3554
  }
3519
3555
  }
3520
- result = await this.callNormalHook(context, "generateTypes", generatedTypes);
3556
+ result = await this.callHook("generateTypes", {
3557
+ environment: context,
3558
+ order: "normal"
3559
+ }, generatedTypes);
3521
3560
  if (result) {
3522
3561
  if (isSetObject(result)) {
3523
3562
  generatedTypes = result.code;
@@ -3528,7 +3567,10 @@ ${formatLogMessage(context.config)}`);
3528
3567
  generatedTypes = result;
3529
3568
  }
3530
3569
  }
3531
- result = await this.callPostHook(context, "generateTypes", generatedTypes);
3570
+ result = await this.callHook("generateTypes", {
3571
+ environment: context,
3572
+ order: "post"
3573
+ }, generatedTypes);
3532
3574
  if (result) {
3533
3575
  if (isSetObject(result)) {
3534
3576
  generatedTypes = result.code;
@@ -3553,7 +3595,10 @@ ${formatTypes(generatedTypes)}
3553
3595
  if (!context.tsconfig) {
3554
3596
  throw new Error("Failed to parse the TypeScript configuration file.");
3555
3597
  }
3556
- await this.callPostHook(context, "prepare");
3598
+ await this.callHook("prepare", {
3599
+ environment: context,
3600
+ order: "post"
3601
+ });
3557
3602
  await writeMetaFile(context);
3558
3603
  });
3559
3604
  this.context.log(LogLevelLabel.INFO, "Powerlines API has been prepared successfully");
@@ -3572,14 +3617,20 @@ ${formatTypes(generatedTypes)}
3572
3617
  await this.prepare(inlineConfig);
3573
3618
  await this.#executeEnvironments(async (context) => {
3574
3619
  context.log(LogLevelLabel.TRACE, `Initializing the processing options for the Powerlines project.`);
3575
- await this.callPreHook(context, "new");
3620
+ await this.callHook("new", {
3621
+ environment: context,
3622
+ order: "pre"
3623
+ });
3576
3624
  const files = await listFiles(joinPaths$1(context.powerlinesPath, "files/common/**/*.hbs"));
3577
3625
  for (const file of files) {
3578
3626
  context.log(LogLevelLabel.TRACE, `Adding template file: ${file}`);
3579
3627
  const template = Handlebars.compile(file);
3580
3628
  await writeFile(context.log, joinPaths$1(context.config.projectRoot, file.replace(".hbs", "")), template(context));
3581
3629
  }
3582
- await this.callNormalHook(context, "new");
3630
+ await this.callHook("new", {
3631
+ environment: context,
3632
+ order: "normal"
3633
+ });
3583
3634
  if (context.config.projectType === "application") {
3584
3635
  const files2 = await listFiles(joinPaths$1(context.powerlinesPath, "files/application/**/*.hbs"));
3585
3636
  for (const file of files2) {
@@ -3595,7 +3646,10 @@ ${formatTypes(generatedTypes)}
3595
3646
  await writeFile(context.log, joinPaths$1(context.config.projectRoot, file.replace(".hbs", "")), template(context));
3596
3647
  }
3597
3648
  }
3598
- await this.callPostHook(context, "new");
3649
+ await this.callHook("new", {
3650
+ environment: context,
3651
+ order: "post"
3652
+ });
3599
3653
  });
3600
3654
  this.context.log(LogLevelLabel.TRACE, "Powerlines - New command completed");
3601
3655
  }
@@ -3617,8 +3671,9 @@ ${formatTypes(generatedTypes)}
3617
3671
  this.context.log(LogLevelLabel.TRACE, "Cleaning the project's dist and artifacts directories.");
3618
3672
  await context.fs.remove(joinPaths$1(context.workspaceConfig.workspaceRoot, context.config.output.buildPath));
3619
3673
  await context.fs.remove(joinPaths$1(context.workspaceConfig.workspaceRoot, context.config.output.artifactsPath));
3620
- await callHook(context, "clean", {
3621
- sequential: true
3674
+ await this.callHook("clean", {
3675
+ environment: context,
3676
+ sequential: false
3622
3677
  });
3623
3678
  });
3624
3679
  this.context.log(LogLevelLabel.TRACE, "Powerlines - Clean command completed");
@@ -3636,7 +3691,10 @@ ${formatTypes(generatedTypes)}
3636
3691
  await this.prepare(inlineConfig);
3637
3692
  await this.#executeEnvironments(async (context) => {
3638
3693
  if (context.config.lint !== false) {
3639
- await this.callHook(context, "lint");
3694
+ await this.callHook("lint", {
3695
+ environment: context,
3696
+ sequential: false
3697
+ });
3640
3698
  }
3641
3699
  });
3642
3700
  this.context.log(LogLevelLabel.TRACE, "Powerlines linting completed");
@@ -3656,8 +3714,14 @@ ${formatTypes(generatedTypes)}
3656
3714
  this.context.log(LogLevelLabel.INFO, "\u{1F4E6} Building the Powerlines project");
3657
3715
  await this.prepare(inlineConfig);
3658
3716
  await this.#executeEnvironments(async (context) => {
3659
- await this.callPreHook(context, "build");
3660
- await this.callNormalHook(context, "build");
3717
+ await this.callHook("build", {
3718
+ environment: context,
3719
+ order: "pre"
3720
+ });
3721
+ await this.callHook("build", {
3722
+ environment: context,
3723
+ order: "normal"
3724
+ });
3661
3725
  if (context.config.output.buildPath !== context.config.output.outputPath) {
3662
3726
  const sourcePath = appendPath(context.config.output.buildPath, context.workspaceConfig.workspaceRoot);
3663
3727
  const destinationPath = joinPaths$1(appendPath(context.config.output.outputPath, context.workspaceConfig.workspaceRoot), "dist");
@@ -3673,7 +3737,10 @@ ${formatTypes(generatedTypes)}
3673
3737
  context.log(LogLevelLabel.DEBUG, `Copying asset(s): ${chalk5.redBright(context.workspaceConfig.workspaceRoot === asset.input ? asset.glob : joinPaths$1(replacePath(asset.input, context.workspaceConfig.workspaceRoot), asset.glob))} -> ${chalk5.greenBright(joinPaths$1(replacePath(asset.output, context.workspaceConfig.workspaceRoot), asset.glob))} ${Array.isArray(asset.ignore) && asset.ignore.length > 0 ? ` (ignoring: ${asset.ignore.map((i) => chalk5.yellowBright(i)).join(", ")})` : ""}`);
3674
3738
  await copyFiles(asset, asset.output);
3675
3739
  }));
3676
- await this.callPostHook(context, "build");
3740
+ await this.callHook("build", {
3741
+ environment: context,
3742
+ order: "post"
3743
+ });
3677
3744
  });
3678
3745
  this.context.log(LogLevelLabel.TRACE, "Powerlines build completed");
3679
3746
  }
@@ -3692,7 +3759,9 @@ ${formatTypes(generatedTypes)}
3692
3759
  context.log(LogLevelLabel.TRACE, "Writing documentation for the Powerlines project artifacts.");
3693
3760
  await this.prepare(inlineConfig);
3694
3761
  await this.#executeEnvironments(async (context2) => {
3695
- await this.callHook(context2, "docs");
3762
+ await this.callHook("docs", {
3763
+ environment: context2
3764
+ });
3696
3765
  });
3697
3766
  });
3698
3767
  this.#context.log(LogLevelLabel.TRACE, "Powerlines documentation generation completed");
@@ -3711,7 +3780,9 @@ ${formatTypes(generatedTypes)}
3711
3780
  this.context.log(LogLevelLabel.INFO, "\u{1F4E6} Deploying the Powerlines project");
3712
3781
  await this.prepare(inlineConfig);
3713
3782
  await this.#executeEnvironments(async (context) => {
3714
- await this.callHook(context, "deploy");
3783
+ await this.callHook("deploy", {
3784
+ environment: context
3785
+ });
3715
3786
  });
3716
3787
  this.context.log(LogLevelLabel.TRACE, "Powerlines deploy completed");
3717
3788
  }
@@ -3726,92 +3797,28 @@ ${formatTypes(generatedTypes)}
3726
3797
  async finalize() {
3727
3798
  this.context.log(LogLevelLabel.TRACE, "Powerlines finalize execution started");
3728
3799
  await this.#executeEnvironments(async (context) => {
3729
- await this.callHook(context, "finalize");
3800
+ await this.callHook("finalize", {
3801
+ environment: context
3802
+ });
3730
3803
  await context.fs.dispose();
3731
3804
  });
3732
3805
  this.context.log(LogLevelLabel.TRACE, "Powerlines finalize execution completed");
3733
3806
  }
3734
3807
  /**
3735
- * Calls a hook in parallel
3808
+ * Invokes the configured plugin hooks
3736
3809
  *
3737
- * @param hook - The hook to call
3738
- * @param options - Options for calling the hook
3739
- * @param args - The arguments to pass to the hook
3740
- * @returns The result of the hook call
3741
- */
3742
- async callHookParallel(hook, options, ...args) {
3743
- return callHook(isSetObject(options?.environment) ? options.environment : await this.#context.getEnvironment(options?.environment), hook, {
3744
- ...options,
3745
- sequential: false
3746
- }, ...args);
3747
- }
3748
- /**
3749
- * Calls a hook in sequence
3810
+ * @remarks
3811
+ * By default, it will call the `"pre"`, `"normal"`, and `"post"` ordered hooks in sequence
3750
3812
  *
3751
3813
  * @param hook - The hook to call
3752
- * @param options - Options for calling the hook
3814
+ * @param options - The options to provide to the hook
3753
3815
  * @param args - The arguments to pass to the hook
3754
3816
  * @returns The result of the hook call
3755
3817
  */
3756
- async callHookSequential(hook, options, ...args) {
3818
+ async callHook(hook, options, ...args) {
3757
3819
  return callHook(isSetObject(options?.environment) ? options.environment : await this.#context.getEnvironment(options?.environment), hook, {
3758
- ...options,
3759
- sequential: true
3760
- }, ...args);
3761
- }
3762
- /**
3763
- * Calls the `"pre"` ordered hooks in sequence
3764
- *
3765
- * @param environment - The environment to use for the hook call
3766
- * @param hook - The hook to call
3767
- * @param args - The arguments to pass to the hook
3768
- * @returns The result of the hook call
3769
- */
3770
- async callPreHook(environment, hook, ...args) {
3771
- return this.callHookSequential(hook, {
3772
- order: "pre",
3773
- environment
3774
- }, ...args);
3775
- }
3776
- /**
3777
- * Calls the `"post"` ordered hooks in sequence
3778
- *
3779
- * @param environment - The environment to use for the hook call
3780
- * @param hook - The hook to call
3781
- * @param args - The arguments to pass to the hook
3782
- * @returns The result of the hook call
3783
- */
3784
- async callPostHook(environment, hook, ...args) {
3785
- return this.callHookSequential(hook, {
3786
- order: "post",
3787
- environment
3788
- }, ...args);
3789
- }
3790
- /**
3791
- * Calls a hook in sequence
3792
- *
3793
- * @param environment - The environment to use for the hook call
3794
- * @param hook - The hook to call
3795
- * @param args - The arguments to pass to the hook
3796
- * @returns The result of the hook call
3797
- */
3798
- async callNormalHook(environment, hook, ...args) {
3799
- return this.callHookSequential(hook, {
3800
- order: "normal",
3801
- environment
3802
- }, ...args);
3803
- }
3804
- /**
3805
- * Calls the `"pre"` and `"post"` ordered hooks, as well as the normal hooks in sequence
3806
- *
3807
- * @param environment - The environment to use for the hook call
3808
- * @param hook - The hook to call
3809
- * @param args - The arguments to pass to the hook
3810
- * @returns The result of the hook call
3811
- */
3812
- async callHook(environment, hook, ...args) {
3813
- return this.callHookSequential(hook, {
3814
- environment
3820
+ sequential: true,
3821
+ ...options
3815
3822
  }, ...args);
3816
3823
  }
3817
3824
  /**
@@ -3839,7 +3846,7 @@ ${formatTypes(generatedTypes)}
3839
3846
  return (await Promise.all(Object.entries(this.context.config.environments).map(async ([name, config]) => {
3840
3847
  const environment = await this.context.getEnvironmentSafe(name);
3841
3848
  if (!environment) {
3842
- const resolvedEnvironment = await this.callHookParallel("configEnvironment", {
3849
+ const resolvedEnvironment = await this.callHook("configEnvironment", {
3843
3850
  environment: name
3844
3851
  }, name, config);
3845
3852
  if (resolvedEnvironment) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNEJYRJJ3_js = require('./chunk-NEJYRJJ3.js');
3
+ var chunkFUMHFDV6_js = require('./chunk-FUMHFDV6.js');
4
4
  var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
5
5
  var defu = require('defu');
6
6
 
@@ -19,7 +19,7 @@ async function executorFn(context, api) {
19
19
  };
20
20
  }
21
21
  chunkSHUYVCID_js.__name(executorFn, "executorFn");
22
- var executor = chunkNEJYRJJ3_js.withExecutor("build", executorFn);
22
+ var executor = chunkFUMHFDV6_js.withExecutor("build", executorFn);
23
23
  var executor_default = executor;
24
24
 
25
25
  exports.executorFn = executorFn;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNEJYRJJ3_js = require('./chunk-NEJYRJJ3.js');
3
+ var chunkFUMHFDV6_js = require('./chunk-FUMHFDV6.js');
4
4
  var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
5
5
 
6
6
  // src/executors/lint/executor.ts
@@ -11,7 +11,7 @@ async function executorFn(context, api) {
11
11
  };
12
12
  }
13
13
  chunkSHUYVCID_js.__name(executorFn, "executorFn");
14
- var executor = chunkNEJYRJJ3_js.withExecutor("lint", executorFn);
14
+ var executor = chunkFUMHFDV6_js.withExecutor("lint", executorFn);
15
15
  var executor_default = executor;
16
16
 
17
17
  exports.executorFn = executorFn;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNEJYRJJ3_js = require('./chunk-NEJYRJJ3.js');
3
+ var chunkFUMHFDV6_js = require('./chunk-FUMHFDV6.js');
4
4
  var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
5
5
 
6
6
  // src/executors/docs/executor.ts
@@ -11,7 +11,7 @@ async function executorFn(context, api) {
11
11
  };
12
12
  }
13
13
  chunkSHUYVCID_js.__name(executorFn, "executorFn");
14
- var executor = chunkNEJYRJJ3_js.withExecutor("docs", executorFn);
14
+ var executor = chunkFUMHFDV6_js.withExecutor("docs", executorFn);
15
15
  var executor_default = executor;
16
16
 
17
17
  exports.executorFn = executorFn;
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-4ORYCFWC.mjs';
1
+ import { withExecutor } from './chunk-3RJOKQUX.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
  import defu from 'defu';
4
4
 
@@ -366,9 +366,25 @@ async function callHook(context, hook, options, ...args) {
366
366
  if (!isFunction.isFunction(handler)) {
367
367
  throw new Error(`Plugin hook handler for hook "${hook}" is not a function.`);
368
368
  }
369
- results.push(await Promise.resolve(handler.apply(null, ...args)));
370
- if (options?.result === "first" && isSet.isSet(results[results.length - 1])) {
371
- break;
369
+ if (options?.result === "first" || options?.asNextParam === false) {
370
+ results.push(await Promise.resolve(handler.apply(null, ...args)));
371
+ if (options?.result === "first" && isSet.isSet(results[results.length - 1])) {
372
+ break;
373
+ }
374
+ } else {
375
+ const sequenceArgs = [
376
+ ...args
377
+ ];
378
+ if (results.length > 0 && sequenceArgs.length > 0) {
379
+ sequenceArgs[0] = isFunction.isFunction(options.asNextParam) ? await Promise.resolve(options.asNextParam(results[0])) : results[0];
380
+ }
381
+ const result = await Promise.resolve(
382
+ // eslint-disable-next-line ts/no-unsafe-call
383
+ handler.apply(null, ...sequenceArgs)
384
+ );
385
+ results = [
386
+ result
387
+ ];
372
388
  }
373
389
  }
374
390
  }
@@ -3025,6 +3041,7 @@ var PowerlinesContext = class _PowerlinesContext {
3025
3041
  // ../powerlines/src/types/plugin.ts
3026
3042
  var PLUGIN_NON_HOOK_FIELDS = [
3027
3043
  "name",
3044
+ "api",
3028
3045
  "enforce",
3029
3046
  "dedupe",
3030
3047
  "dependsOn",
@@ -3432,7 +3449,8 @@ var PowerlinesAPI = class _PowerlinesAPI {
3432
3449
  if (api.context.plugins.length === 0) {
3433
3450
  api.context.log(types.LogLevelLabel.WARN, "No Powerlines plugins were specified in the options. Please ensure this is correct, as it is generally not recommended.");
3434
3451
  }
3435
- const pluginConfig = await callHook(await api.context.getEnvironment(), "config", {
3452
+ const pluginConfig = await api.callHook("config", {
3453
+ environment: await api.context.getEnvironment(),
3436
3454
  sequential: true,
3437
3455
  result: "merge"
3438
3456
  });
@@ -3457,14 +3475,23 @@ var PowerlinesAPI = class _PowerlinesAPI {
3457
3475
  await this.context.withInlineConfig(inlineConfig);
3458
3476
  await this.#executeEnvironments(async (context) => {
3459
3477
  context.log(types.LogLevelLabel.TRACE, `Initializing the processing options for the Powerlines project.`);
3460
- await this.callPreHook(context, "configResolved");
3478
+ await this.callHook("configResolved", {
3479
+ environment: context,
3480
+ order: "pre"
3481
+ });
3461
3482
  await initializeTsconfig(context);
3462
- await this.callNormalHook(context, "configResolved");
3483
+ await this.callHook("configResolved", {
3484
+ environment: context,
3485
+ order: "normal"
3486
+ });
3463
3487
  context.log(types.LogLevelLabel.DEBUG, `The configuration provided ${toArray.toArray(context.config.entry).length} entry point(s), Powerlines has found ${context.entry.length} entry files(s) for the ${context.config.title} project${context.entry.length > 0 && context.entry.length < 10 ? `:
3464
3488
  ${context.entry.map((entry) => `- ${entry.input.file || entry.file}${entry.output ? ` -> ${entry.output}` : ""}`).join(" \n")}` : ""}.`);
3465
3489
  await resolveTsconfig(context);
3466
3490
  await installDependencies(context);
3467
- await this.callPostHook(context, "configResolved");
3491
+ await this.callHook("configResolved", {
3492
+ environment: context,
3493
+ order: "post"
3494
+ });
3468
3495
  context.log(types.LogLevelLabel.TRACE, `Powerlines configuration has been resolved:
3469
3496
 
3470
3497
  ${console.formatLogMessage(context.config)}`);
@@ -3476,8 +3503,14 @@ ${console.formatLogMessage(context.config)}`);
3476
3503
  if (!context.fs.existsSync(context.dataPath)) {
3477
3504
  await helpers.createDirectory(context.dataPath);
3478
3505
  }
3479
- await this.callPreHook(context, "prepare");
3480
- await this.callNormalHook(context, "prepare");
3506
+ await this.callHook("prepare", {
3507
+ environment: context,
3508
+ order: "pre"
3509
+ });
3510
+ await this.callHook("prepare", {
3511
+ environment: context,
3512
+ order: "normal"
3513
+ });
3481
3514
  if (context.config.output.dts !== false) {
3482
3515
  context.log(types.LogLevelLabel.TRACE, `Preparing the TypeScript definitions for the Powerlines project.`);
3483
3516
  if (context.fs.existsSync(context.dtsPath)) {
@@ -3535,7 +3568,10 @@ ${console.formatLogMessage(context.config)}`);
3535
3568
  let generatedTypes = await emitTypes(context, files);
3536
3569
  context.log(types.LogLevelLabel.TRACE, `Generating TypeScript declaration file ${context.dtsPath}.`);
3537
3570
  const directives = [];
3538
- let result = await this.callPreHook(context, "generateTypes", generatedTypes);
3571
+ let result = await this.callHook("generateTypes", {
3572
+ environment: context,
3573
+ order: "pre"
3574
+ }, generatedTypes);
3539
3575
  if (result) {
3540
3576
  if (isSetObject.isSetObject(result)) {
3541
3577
  generatedTypes = result.code;
@@ -3546,7 +3582,10 @@ ${console.formatLogMessage(context.config)}`);
3546
3582
  generatedTypes = result;
3547
3583
  }
3548
3584
  }
3549
- result = await this.callNormalHook(context, "generateTypes", generatedTypes);
3585
+ result = await this.callHook("generateTypes", {
3586
+ environment: context,
3587
+ order: "normal"
3588
+ }, generatedTypes);
3550
3589
  if (result) {
3551
3590
  if (isSetObject.isSetObject(result)) {
3552
3591
  generatedTypes = result.code;
@@ -3557,7 +3596,10 @@ ${console.formatLogMessage(context.config)}`);
3557
3596
  generatedTypes = result;
3558
3597
  }
3559
3598
  }
3560
- result = await this.callPostHook(context, "generateTypes", generatedTypes);
3599
+ result = await this.callHook("generateTypes", {
3600
+ environment: context,
3601
+ order: "post"
3602
+ }, generatedTypes);
3561
3603
  if (result) {
3562
3604
  if (isSetObject.isSetObject(result)) {
3563
3605
  generatedTypes = result.code;
@@ -3582,7 +3624,10 @@ ${formatTypes(generatedTypes)}
3582
3624
  if (!context.tsconfig) {
3583
3625
  throw new Error("Failed to parse the TypeScript configuration file.");
3584
3626
  }
3585
- await this.callPostHook(context, "prepare");
3627
+ await this.callHook("prepare", {
3628
+ environment: context,
3629
+ order: "post"
3630
+ });
3586
3631
  await chunkDQI2I5KK_js.writeMetaFile(context);
3587
3632
  });
3588
3633
  this.context.log(types.LogLevelLabel.INFO, "Powerlines API has been prepared successfully");
@@ -3601,14 +3646,20 @@ ${formatTypes(generatedTypes)}
3601
3646
  await this.prepare(inlineConfig);
3602
3647
  await this.#executeEnvironments(async (context) => {
3603
3648
  context.log(types.LogLevelLabel.TRACE, `Initializing the processing options for the Powerlines project.`);
3604
- await this.callPreHook(context, "new");
3649
+ await this.callHook("new", {
3650
+ environment: context,
3651
+ order: "pre"
3652
+ });
3605
3653
  const files = await listFiles.listFiles(joinPaths.joinPaths(context.powerlinesPath, "files/common/**/*.hbs"));
3606
3654
  for (const file of files) {
3607
3655
  context.log(types.LogLevelLabel.TRACE, `Adding template file: ${file}`);
3608
3656
  const template = Handlebars__default.default.compile(file);
3609
3657
  await writeFile(context.log, joinPaths.joinPaths(context.config.projectRoot, file.replace(".hbs", "")), template(context));
3610
3658
  }
3611
- await this.callNormalHook(context, "new");
3659
+ await this.callHook("new", {
3660
+ environment: context,
3661
+ order: "normal"
3662
+ });
3612
3663
  if (context.config.projectType === "application") {
3613
3664
  const files2 = await listFiles.listFiles(joinPaths.joinPaths(context.powerlinesPath, "files/application/**/*.hbs"));
3614
3665
  for (const file of files2) {
@@ -3624,7 +3675,10 @@ ${formatTypes(generatedTypes)}
3624
3675
  await writeFile(context.log, joinPaths.joinPaths(context.config.projectRoot, file.replace(".hbs", "")), template(context));
3625
3676
  }
3626
3677
  }
3627
- await this.callPostHook(context, "new");
3678
+ await this.callHook("new", {
3679
+ environment: context,
3680
+ order: "post"
3681
+ });
3628
3682
  });
3629
3683
  this.context.log(types.LogLevelLabel.TRACE, "Powerlines - New command completed");
3630
3684
  }
@@ -3646,8 +3700,9 @@ ${formatTypes(generatedTypes)}
3646
3700
  this.context.log(types.LogLevelLabel.TRACE, "Cleaning the project's dist and artifacts directories.");
3647
3701
  await context.fs.remove(joinPaths.joinPaths(context.workspaceConfig.workspaceRoot, context.config.output.buildPath));
3648
3702
  await context.fs.remove(joinPaths.joinPaths(context.workspaceConfig.workspaceRoot, context.config.output.artifactsPath));
3649
- await callHook(context, "clean", {
3650
- sequential: true
3703
+ await this.callHook("clean", {
3704
+ environment: context,
3705
+ sequential: false
3651
3706
  });
3652
3707
  });
3653
3708
  this.context.log(types.LogLevelLabel.TRACE, "Powerlines - Clean command completed");
@@ -3665,7 +3720,10 @@ ${formatTypes(generatedTypes)}
3665
3720
  await this.prepare(inlineConfig);
3666
3721
  await this.#executeEnvironments(async (context) => {
3667
3722
  if (context.config.lint !== false) {
3668
- await this.callHook(context, "lint");
3723
+ await this.callHook("lint", {
3724
+ environment: context,
3725
+ sequential: false
3726
+ });
3669
3727
  }
3670
3728
  });
3671
3729
  this.context.log(types.LogLevelLabel.TRACE, "Powerlines linting completed");
@@ -3685,8 +3743,14 @@ ${formatTypes(generatedTypes)}
3685
3743
  this.context.log(types.LogLevelLabel.INFO, "\u{1F4E6} Building the Powerlines project");
3686
3744
  await this.prepare(inlineConfig);
3687
3745
  await this.#executeEnvironments(async (context) => {
3688
- await this.callPreHook(context, "build");
3689
- await this.callNormalHook(context, "build");
3746
+ await this.callHook("build", {
3747
+ environment: context,
3748
+ order: "pre"
3749
+ });
3750
+ await this.callHook("build", {
3751
+ environment: context,
3752
+ order: "normal"
3753
+ });
3690
3754
  if (context.config.output.buildPath !== context.config.output.outputPath) {
3691
3755
  const sourcePath = append.appendPath(context.config.output.buildPath, context.workspaceConfig.workspaceRoot);
3692
3756
  const destinationPath = joinPaths.joinPaths(append.appendPath(context.config.output.outputPath, context.workspaceConfig.workspaceRoot), "dist");
@@ -3702,7 +3766,10 @@ ${formatTypes(generatedTypes)}
3702
3766
  context.log(types.LogLevelLabel.DEBUG, `Copying asset(s): ${chalk5__default.default.redBright(context.workspaceConfig.workspaceRoot === asset.input ? asset.glob : joinPaths.joinPaths(replace.replacePath(asset.input, context.workspaceConfig.workspaceRoot), asset.glob))} -> ${chalk5__default.default.greenBright(joinPaths.joinPaths(replace.replacePath(asset.output, context.workspaceConfig.workspaceRoot), asset.glob))} ${Array.isArray(asset.ignore) && asset.ignore.length > 0 ? ` (ignoring: ${asset.ignore.map((i) => chalk5__default.default.yellowBright(i)).join(", ")})` : ""}`);
3703
3767
  await copyFile.copyFiles(asset, asset.output);
3704
3768
  }));
3705
- await this.callPostHook(context, "build");
3769
+ await this.callHook("build", {
3770
+ environment: context,
3771
+ order: "post"
3772
+ });
3706
3773
  });
3707
3774
  this.context.log(types.LogLevelLabel.TRACE, "Powerlines build completed");
3708
3775
  }
@@ -3721,7 +3788,9 @@ ${formatTypes(generatedTypes)}
3721
3788
  context.log(types.LogLevelLabel.TRACE, "Writing documentation for the Powerlines project artifacts.");
3722
3789
  await this.prepare(inlineConfig);
3723
3790
  await this.#executeEnvironments(async (context2) => {
3724
- await this.callHook(context2, "docs");
3791
+ await this.callHook("docs", {
3792
+ environment: context2
3793
+ });
3725
3794
  });
3726
3795
  });
3727
3796
  this.#context.log(types.LogLevelLabel.TRACE, "Powerlines documentation generation completed");
@@ -3740,7 +3809,9 @@ ${formatTypes(generatedTypes)}
3740
3809
  this.context.log(types.LogLevelLabel.INFO, "\u{1F4E6} Deploying the Powerlines project");
3741
3810
  await this.prepare(inlineConfig);
3742
3811
  await this.#executeEnvironments(async (context) => {
3743
- await this.callHook(context, "deploy");
3812
+ await this.callHook("deploy", {
3813
+ environment: context
3814
+ });
3744
3815
  });
3745
3816
  this.context.log(types.LogLevelLabel.TRACE, "Powerlines deploy completed");
3746
3817
  }
@@ -3755,92 +3826,28 @@ ${formatTypes(generatedTypes)}
3755
3826
  async finalize() {
3756
3827
  this.context.log(types.LogLevelLabel.TRACE, "Powerlines finalize execution started");
3757
3828
  await this.#executeEnvironments(async (context) => {
3758
- await this.callHook(context, "finalize");
3829
+ await this.callHook("finalize", {
3830
+ environment: context
3831
+ });
3759
3832
  await context.fs.dispose();
3760
3833
  });
3761
3834
  this.context.log(types.LogLevelLabel.TRACE, "Powerlines finalize execution completed");
3762
3835
  }
3763
3836
  /**
3764
- * Calls a hook in parallel
3837
+ * Invokes the configured plugin hooks
3765
3838
  *
3766
- * @param hook - The hook to call
3767
- * @param options - Options for calling the hook
3768
- * @param args - The arguments to pass to the hook
3769
- * @returns The result of the hook call
3770
- */
3771
- async callHookParallel(hook, options, ...args) {
3772
- return callHook(isSetObject.isSetObject(options?.environment) ? options.environment : await this.#context.getEnvironment(options?.environment), hook, {
3773
- ...options,
3774
- sequential: false
3775
- }, ...args);
3776
- }
3777
- /**
3778
- * Calls a hook in sequence
3839
+ * @remarks
3840
+ * By default, it will call the `"pre"`, `"normal"`, and `"post"` ordered hooks in sequence
3779
3841
  *
3780
3842
  * @param hook - The hook to call
3781
- * @param options - Options for calling the hook
3843
+ * @param options - The options to provide to the hook
3782
3844
  * @param args - The arguments to pass to the hook
3783
3845
  * @returns The result of the hook call
3784
3846
  */
3785
- async callHookSequential(hook, options, ...args) {
3847
+ async callHook(hook, options, ...args) {
3786
3848
  return callHook(isSetObject.isSetObject(options?.environment) ? options.environment : await this.#context.getEnvironment(options?.environment), hook, {
3787
- ...options,
3788
- sequential: true
3789
- }, ...args);
3790
- }
3791
- /**
3792
- * Calls the `"pre"` ordered hooks in sequence
3793
- *
3794
- * @param environment - The environment to use for the hook call
3795
- * @param hook - The hook to call
3796
- * @param args - The arguments to pass to the hook
3797
- * @returns The result of the hook call
3798
- */
3799
- async callPreHook(environment, hook, ...args) {
3800
- return this.callHookSequential(hook, {
3801
- order: "pre",
3802
- environment
3803
- }, ...args);
3804
- }
3805
- /**
3806
- * Calls the `"post"` ordered hooks in sequence
3807
- *
3808
- * @param environment - The environment to use for the hook call
3809
- * @param hook - The hook to call
3810
- * @param args - The arguments to pass to the hook
3811
- * @returns The result of the hook call
3812
- */
3813
- async callPostHook(environment, hook, ...args) {
3814
- return this.callHookSequential(hook, {
3815
- order: "post",
3816
- environment
3817
- }, ...args);
3818
- }
3819
- /**
3820
- * Calls a hook in sequence
3821
- *
3822
- * @param environment - The environment to use for the hook call
3823
- * @param hook - The hook to call
3824
- * @param args - The arguments to pass to the hook
3825
- * @returns The result of the hook call
3826
- */
3827
- async callNormalHook(environment, hook, ...args) {
3828
- return this.callHookSequential(hook, {
3829
- order: "normal",
3830
- environment
3831
- }, ...args);
3832
- }
3833
- /**
3834
- * Calls the `"pre"` and `"post"` ordered hooks, as well as the normal hooks in sequence
3835
- *
3836
- * @param environment - The environment to use for the hook call
3837
- * @param hook - The hook to call
3838
- * @param args - The arguments to pass to the hook
3839
- * @returns The result of the hook call
3840
- */
3841
- async callHook(environment, hook, ...args) {
3842
- return this.callHookSequential(hook, {
3843
- environment
3849
+ sequential: true,
3850
+ ...options
3844
3851
  }, ...args);
3845
3852
  }
3846
3853
  /**
@@ -3868,7 +3875,7 @@ ${formatTypes(generatedTypes)}
3868
3875
  return (await Promise.all(Object.entries(this.context.config.environments).map(async ([name, config]) => {
3869
3876
  const environment = await this.context.getEnvironmentSafe(name);
3870
3877
  if (!environment) {
3871
- const resolvedEnvironment = await this.callHookParallel("configEnvironment", {
3878
+ const resolvedEnvironment = await this.callHook("configEnvironment", {
3872
3879
  environment: name
3873
3880
  }, name, config);
3874
3881
  if (resolvedEnvironment) {
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-4ORYCFWC.mjs';
1
+ import { withExecutor } from './chunk-3RJOKQUX.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
 
4
4
  // src/executors/docs/executor.ts
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNEJYRJJ3_js = require('./chunk-NEJYRJJ3.js');
3
+ var chunkFUMHFDV6_js = require('./chunk-FUMHFDV6.js');
4
4
  var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
5
5
  var defu = require('defu');
6
6
 
@@ -19,7 +19,7 @@ async function executorFn(context, api) {
19
19
  };
20
20
  }
21
21
  chunkSHUYVCID_js.__name(executorFn, "executorFn");
22
- var executor = chunkNEJYRJJ3_js.withExecutor("prepare", executorFn);
22
+ var executor = chunkFUMHFDV6_js.withExecutor("prepare", executorFn);
23
23
  var executor_default = executor;
24
24
 
25
25
  exports.executorFn = executorFn;
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-4ORYCFWC.mjs';
1
+ import { withExecutor } from './chunk-3RJOKQUX.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
 
4
4
  // src/executors/lint/executor.ts
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNEJYRJJ3_js = require('./chunk-NEJYRJJ3.js');
3
+ var chunkFUMHFDV6_js = require('./chunk-FUMHFDV6.js');
4
4
  var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
5
5
 
6
6
  // src/executors/clean/executor.ts
@@ -11,7 +11,7 @@ async function executorFn(context, api) {
11
11
  };
12
12
  }
13
13
  chunkSHUYVCID_js.__name(executorFn, "executorFn");
14
- var executor = chunkNEJYRJJ3_js.withExecutor("clean", executorFn);
14
+ var executor = chunkFUMHFDV6_js.withExecutor("clean", executorFn);
15
15
  var executor_default = executor;
16
16
 
17
17
  exports.executorFn = executorFn;
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-4ORYCFWC.mjs';
1
+ import { withExecutor } from './chunk-3RJOKQUX.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
  import defu from 'defu';
4
4
 
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-4ORYCFWC.mjs';
1
+ import { withExecutor } from './chunk-3RJOKQUX.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
 
4
4
  // src/executors/clean/executor.ts
package/dist/executors.js CHANGED
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  require('./chunk-XO62WWX4.js');
4
- var chunkP5OT3UM4_js = require('./chunk-P5OT3UM4.js');
5
- var chunkYNPFM7N4_js = require('./chunk-YNPFM7N4.js');
6
- var chunkEVQUHERC_js = require('./chunk-EVQUHERC.js');
7
- var chunkJPGLONS5_js = require('./chunk-JPGLONS5.js');
8
- var chunkBX7H4PEX_js = require('./chunk-BX7H4PEX.js');
9
- require('./chunk-NEJYRJJ3.js');
4
+ var chunkB4NM3U7L_js = require('./chunk-B4NM3U7L.js');
5
+ var chunkL4JN6AKG_js = require('./chunk-L4JN6AKG.js');
6
+ var chunk77YOD2NF_js = require('./chunk-77YOD2NF.js');
7
+ var chunkOYKZ4P4Y_js = require('./chunk-OYKZ4P4Y.js');
8
+ var chunkCQG4OZIZ_js = require('./chunk-CQG4OZIZ.js');
9
+ require('./chunk-FUMHFDV6.js');
10
10
  require('./chunk-DQI2I5KK.js');
11
11
  require('./chunk-SHUYVCID.js');
12
12
 
@@ -14,21 +14,21 @@ require('./chunk-SHUYVCID.js');
14
14
 
15
15
  Object.defineProperty(exports, "lint", {
16
16
  enumerable: true,
17
- get: function () { return chunkP5OT3UM4_js.executor_default; }
17
+ get: function () { return chunkB4NM3U7L_js.executor_default; }
18
18
  });
19
19
  Object.defineProperty(exports, "prepare", {
20
20
  enumerable: true,
21
- get: function () { return chunkYNPFM7N4_js.executor_default; }
21
+ get: function () { return chunkL4JN6AKG_js.executor_default; }
22
22
  });
23
23
  Object.defineProperty(exports, "build", {
24
24
  enumerable: true,
25
- get: function () { return chunkEVQUHERC_js.executor_default; }
25
+ get: function () { return chunk77YOD2NF_js.executor_default; }
26
26
  });
27
27
  Object.defineProperty(exports, "clean", {
28
28
  enumerable: true,
29
- get: function () { return chunkJPGLONS5_js.executor_default; }
29
+ get: function () { return chunkOYKZ4P4Y_js.executor_default; }
30
30
  });
31
31
  Object.defineProperty(exports, "docs", {
32
32
  enumerable: true,
33
- get: function () { return chunkBX7H4PEX_js.executor_default; }
33
+ get: function () { return chunkCQG4OZIZ_js.executor_default; }
34
34
  });
@@ -1,9 +1,9 @@
1
1
  import './chunk-UV4HQO3Y.mjs';
2
- export { executor_default as lint } from './chunk-OIWC4A2B.mjs';
3
- export { executor_default as prepare } from './chunk-KHQDHABG.mjs';
4
- export { executor_default as build } from './chunk-DAAOQSTD.mjs';
5
- export { executor_default as clean } from './chunk-IWS2JVQ6.mjs';
6
- export { executor_default as docs } from './chunk-GNKI3DYY.mjs';
7
- import './chunk-4ORYCFWC.mjs';
2
+ export { executor_default as lint } from './chunk-LMB7F45J.mjs';
3
+ export { executor_default as prepare } from './chunk-F3VIYWFE.mjs';
4
+ export { executor_default as build } from './chunk-Z362RFA3.mjs';
5
+ export { executor_default as clean } from './chunk-ZPDQKHWE.mjs';
6
+ export { executor_default as docs } from './chunk-IWBMRGCU.mjs';
7
+ import './chunk-3RJOKQUX.mjs';
8
8
  import './chunk-OVX2CEXQ.mjs';
9
9
  import './chunk-O6YSETKJ.mjs';
package/dist/index.js CHANGED
@@ -2,14 +2,14 @@
2
2
 
3
3
  var chunkDNMCZOZX_js = require('./chunk-DNMCZOZX.js');
4
4
  require('./chunk-XO62WWX4.js');
5
- var chunkP5OT3UM4_js = require('./chunk-P5OT3UM4.js');
6
- var chunkYNPFM7N4_js = require('./chunk-YNPFM7N4.js');
7
- var chunkEVQUHERC_js = require('./chunk-EVQUHERC.js');
8
- var chunkJPGLONS5_js = require('./chunk-JPGLONS5.js');
9
- var chunkBX7H4PEX_js = require('./chunk-BX7H4PEX.js');
5
+ var chunkB4NM3U7L_js = require('./chunk-B4NM3U7L.js');
6
+ var chunkL4JN6AKG_js = require('./chunk-L4JN6AKG.js');
7
+ var chunk77YOD2NF_js = require('./chunk-77YOD2NF.js');
8
+ var chunkOYKZ4P4Y_js = require('./chunk-OYKZ4P4Y.js');
9
+ var chunkCQG4OZIZ_js = require('./chunk-CQG4OZIZ.js');
10
10
  require('./chunk-N2YKXZ5R.js');
11
11
  var chunkWUJKJGEW_js = require('./chunk-WUJKJGEW.js');
12
- require('./chunk-NEJYRJJ3.js');
12
+ require('./chunk-FUMHFDV6.js');
13
13
  require('./chunk-KBRCV5NY.js');
14
14
  require('./chunk-DQI2I5KK.js');
15
15
  require('./chunk-IQVSZEQ6.js');
@@ -23,23 +23,23 @@ Object.defineProperty(exports, "createNodesV2", {
23
23
  });
24
24
  Object.defineProperty(exports, "lint", {
25
25
  enumerable: true,
26
- get: function () { return chunkP5OT3UM4_js.executor_default; }
26
+ get: function () { return chunkB4NM3U7L_js.executor_default; }
27
27
  });
28
28
  Object.defineProperty(exports, "prepare", {
29
29
  enumerable: true,
30
- get: function () { return chunkYNPFM7N4_js.executor_default; }
30
+ get: function () { return chunkL4JN6AKG_js.executor_default; }
31
31
  });
32
32
  Object.defineProperty(exports, "build", {
33
33
  enumerable: true,
34
- get: function () { return chunkEVQUHERC_js.executor_default; }
34
+ get: function () { return chunk77YOD2NF_js.executor_default; }
35
35
  });
36
36
  Object.defineProperty(exports, "clean", {
37
37
  enumerable: true,
38
- get: function () { return chunkJPGLONS5_js.executor_default; }
38
+ get: function () { return chunkOYKZ4P4Y_js.executor_default; }
39
39
  });
40
40
  Object.defineProperty(exports, "docs", {
41
41
  enumerable: true,
42
- get: function () { return chunkBX7H4PEX_js.executor_default; }
42
+ get: function () { return chunkCQG4OZIZ_js.executor_default; }
43
43
  });
44
44
  Object.defineProperty(exports, "sync", {
45
45
  enumerable: true,
package/dist/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  export { createNodesV2 } from './chunk-2SK7GXYX.mjs';
2
2
  import './chunk-UV4HQO3Y.mjs';
3
- export { executor_default as lint } from './chunk-OIWC4A2B.mjs';
4
- export { executor_default as prepare } from './chunk-KHQDHABG.mjs';
5
- export { executor_default as build } from './chunk-DAAOQSTD.mjs';
6
- export { executor_default as clean } from './chunk-IWS2JVQ6.mjs';
7
- export { executor_default as docs } from './chunk-GNKI3DYY.mjs';
3
+ export { executor_default as lint } from './chunk-LMB7F45J.mjs';
4
+ export { executor_default as prepare } from './chunk-F3VIYWFE.mjs';
5
+ export { executor_default as build } from './chunk-Z362RFA3.mjs';
6
+ export { executor_default as clean } from './chunk-ZPDQKHWE.mjs';
7
+ export { executor_default as docs } from './chunk-IWBMRGCU.mjs';
8
8
  import './chunk-23KFTIT2.mjs';
9
9
  export { generator_default as sync, generatorFn as syncGenerator } from './chunk-326QB2VK.mjs';
10
- import './chunk-4ORYCFWC.mjs';
10
+ import './chunk-3RJOKQUX.mjs';
11
11
  import './chunk-HJZ2I6NE.mjs';
12
12
  import './chunk-OVX2CEXQ.mjs';
13
13
  import './chunk-IC47MFKB.mjs';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNEJYRJJ3_js = require('../../chunk-NEJYRJJ3.js');
3
+ var chunkFUMHFDV6_js = require('../../chunk-FUMHFDV6.js');
4
4
  require('../../chunk-DQI2I5KK.js');
5
5
  require('../../chunk-SHUYVCID.js');
6
6
 
@@ -8,5 +8,5 @@ require('../../chunk-SHUYVCID.js');
8
8
 
9
9
  Object.defineProperty(exports, "withExecutor", {
10
10
  enumerable: true,
11
- get: function () { return chunkNEJYRJJ3_js.withExecutor; }
11
+ get: function () { return chunkFUMHFDV6_js.withExecutor; }
12
12
  });
@@ -1,3 +1,3 @@
1
- export { withExecutor } from '../../chunk-4ORYCFWC.mjs';
1
+ export { withExecutor } from '../../chunk-3RJOKQUX.mjs';
2
2
  import '../../chunk-OVX2CEXQ.mjs';
3
3
  import '../../chunk-O6YSETKJ.mjs';
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkEVQUHERC_js = require('../../../chunk-EVQUHERC.js');
6
- require('../../../chunk-NEJYRJJ3.js');
5
+ var chunk77YOD2NF_js = require('../../../chunk-77YOD2NF.js');
6
+ require('../../../chunk-FUMHFDV6.js');
7
7
  require('../../../chunk-DQI2I5KK.js');
8
8
  require('../../../chunk-SHUYVCID.js');
9
9
 
@@ -11,9 +11,9 @@ require('../../../chunk-SHUYVCID.js');
11
11
 
12
12
  Object.defineProperty(exports, "default", {
13
13
  enumerable: true,
14
- get: function () { return chunkEVQUHERC_js.executor_default; }
14
+ get: function () { return chunk77YOD2NF_js.executor_default; }
15
15
  });
16
16
  Object.defineProperty(exports, "executorFn", {
17
17
  enumerable: true,
18
- get: function () { return chunkEVQUHERC_js.executorFn; }
18
+ get: function () { return chunk77YOD2NF_js.executorFn; }
19
19
  });
@@ -1,4 +1,4 @@
1
- export { executor_default as default, executorFn } from '../../../chunk-DAAOQSTD.mjs';
2
- import '../../../chunk-4ORYCFWC.mjs';
1
+ export { executor_default as default, executorFn } from '../../../chunk-Z362RFA3.mjs';
2
+ import '../../../chunk-3RJOKQUX.mjs';
3
3
  import '../../../chunk-OVX2CEXQ.mjs';
4
4
  import '../../../chunk-O6YSETKJ.mjs';
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkJPGLONS5_js = require('../../../chunk-JPGLONS5.js');
6
- require('../../../chunk-NEJYRJJ3.js');
5
+ var chunkOYKZ4P4Y_js = require('../../../chunk-OYKZ4P4Y.js');
6
+ require('../../../chunk-FUMHFDV6.js');
7
7
  require('../../../chunk-DQI2I5KK.js');
8
8
  require('../../../chunk-SHUYVCID.js');
9
9
 
@@ -11,9 +11,9 @@ require('../../../chunk-SHUYVCID.js');
11
11
 
12
12
  Object.defineProperty(exports, "default", {
13
13
  enumerable: true,
14
- get: function () { return chunkJPGLONS5_js.executor_default; }
14
+ get: function () { return chunkOYKZ4P4Y_js.executor_default; }
15
15
  });
16
16
  Object.defineProperty(exports, "executorFn", {
17
17
  enumerable: true,
18
- get: function () { return chunkJPGLONS5_js.executorFn; }
18
+ get: function () { return chunkOYKZ4P4Y_js.executorFn; }
19
19
  });
@@ -1,4 +1,4 @@
1
- export { executor_default as default, executorFn } from '../../../chunk-IWS2JVQ6.mjs';
2
- import '../../../chunk-4ORYCFWC.mjs';
1
+ export { executor_default as default, executorFn } from '../../../chunk-ZPDQKHWE.mjs';
2
+ import '../../../chunk-3RJOKQUX.mjs';
3
3
  import '../../../chunk-OVX2CEXQ.mjs';
4
4
  import '../../../chunk-O6YSETKJ.mjs';
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkBX7H4PEX_js = require('../../../chunk-BX7H4PEX.js');
6
- require('../../../chunk-NEJYRJJ3.js');
5
+ var chunkCQG4OZIZ_js = require('../../../chunk-CQG4OZIZ.js');
6
+ require('../../../chunk-FUMHFDV6.js');
7
7
  require('../../../chunk-DQI2I5KK.js');
8
8
  require('../../../chunk-SHUYVCID.js');
9
9
 
@@ -11,9 +11,9 @@ require('../../../chunk-SHUYVCID.js');
11
11
 
12
12
  Object.defineProperty(exports, "default", {
13
13
  enumerable: true,
14
- get: function () { return chunkBX7H4PEX_js.executor_default; }
14
+ get: function () { return chunkCQG4OZIZ_js.executor_default; }
15
15
  });
16
16
  Object.defineProperty(exports, "executorFn", {
17
17
  enumerable: true,
18
- get: function () { return chunkBX7H4PEX_js.executorFn; }
18
+ get: function () { return chunkCQG4OZIZ_js.executorFn; }
19
19
  });
@@ -1,4 +1,4 @@
1
- export { executor_default as default, executorFn } from '../../../chunk-GNKI3DYY.mjs';
2
- import '../../../chunk-4ORYCFWC.mjs';
1
+ export { executor_default as default, executorFn } from '../../../chunk-IWBMRGCU.mjs';
2
+ import '../../../chunk-3RJOKQUX.mjs';
3
3
  import '../../../chunk-OVX2CEXQ.mjs';
4
4
  import '../../../chunk-O6YSETKJ.mjs';
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkP5OT3UM4_js = require('../../../chunk-P5OT3UM4.js');
6
- require('../../../chunk-NEJYRJJ3.js');
5
+ var chunkB4NM3U7L_js = require('../../../chunk-B4NM3U7L.js');
6
+ require('../../../chunk-FUMHFDV6.js');
7
7
  require('../../../chunk-DQI2I5KK.js');
8
8
  require('../../../chunk-SHUYVCID.js');
9
9
 
@@ -11,9 +11,9 @@ require('../../../chunk-SHUYVCID.js');
11
11
 
12
12
  Object.defineProperty(exports, "default", {
13
13
  enumerable: true,
14
- get: function () { return chunkP5OT3UM4_js.executor_default; }
14
+ get: function () { return chunkB4NM3U7L_js.executor_default; }
15
15
  });
16
16
  Object.defineProperty(exports, "executorFn", {
17
17
  enumerable: true,
18
- get: function () { return chunkP5OT3UM4_js.executorFn; }
18
+ get: function () { return chunkB4NM3U7L_js.executorFn; }
19
19
  });
@@ -1,4 +1,4 @@
1
- export { executor_default as default, executorFn } from '../../../chunk-OIWC4A2B.mjs';
2
- import '../../../chunk-4ORYCFWC.mjs';
1
+ export { executor_default as default, executorFn } from '../../../chunk-LMB7F45J.mjs';
2
+ import '../../../chunk-3RJOKQUX.mjs';
3
3
  import '../../../chunk-OVX2CEXQ.mjs';
4
4
  import '../../../chunk-O6YSETKJ.mjs';
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkYNPFM7N4_js = require('../../../chunk-YNPFM7N4.js');
6
- require('../../../chunk-NEJYRJJ3.js');
5
+ var chunkL4JN6AKG_js = require('../../../chunk-L4JN6AKG.js');
6
+ require('../../../chunk-FUMHFDV6.js');
7
7
  require('../../../chunk-DQI2I5KK.js');
8
8
  require('../../../chunk-SHUYVCID.js');
9
9
 
@@ -11,9 +11,9 @@ require('../../../chunk-SHUYVCID.js');
11
11
 
12
12
  Object.defineProperty(exports, "default", {
13
13
  enumerable: true,
14
- get: function () { return chunkYNPFM7N4_js.executor_default; }
14
+ get: function () { return chunkL4JN6AKG_js.executor_default; }
15
15
  });
16
16
  Object.defineProperty(exports, "executorFn", {
17
17
  enumerable: true,
18
- get: function () { return chunkYNPFM7N4_js.executorFn; }
18
+ get: function () { return chunkL4JN6AKG_js.executorFn; }
19
19
  });
@@ -1,4 +1,4 @@
1
- export { executor_default as default, executorFn } from '../../../chunk-KHQDHABG.mjs';
2
- import '../../../chunk-4ORYCFWC.mjs';
1
+ export { executor_default as default, executorFn } from '../../../chunk-F3VIYWFE.mjs';
2
+ import '../../../chunk-3RJOKQUX.mjs';
3
3
  import '../../../chunk-OVX2CEXQ.mjs';
4
4
  import '../../../chunk-O6YSETKJ.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/nx",
3
- "version": "0.10.42",
3
+ "version": "0.10.43",
4
4
  "description": "A Nx plugin to support Powerlines development in Nx monorepos.",
5
5
  "repository": {
6
6
  "type": "github",
@@ -196,7 +196,7 @@
196
196
  "defu": "^6.1.4",
197
197
  "jiti": "^2.6.1",
198
198
  "nx": "^22.1.2",
199
- "powerlines": "^0.25.4"
199
+ "powerlines": "^0.26.0"
200
200
  },
201
201
  "devDependencies": {
202
202
  "@nx/workspace": "^22.1.2",
@@ -210,5 +210,5 @@
210
210
  "publishConfig": { "access": "public" },
211
211
  "executors": "./executors.json",
212
212
  "generators": "./generators.json",
213
- "gitHead": "1b998051f406f2465d5fbfd11594a41e170c0467"
213
+ "gitHead": "f5914f6eb955964b0c2c1785c6e75d5ee04ebd79"
214
214
  }