@powerlines/nx 0.10.42 → 0.10.44

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 +12 -0
  2. package/dist/{chunk-OIWC4A2B.mjs → chunk-2LWZHRAL.mjs} +1 -1
  3. package/dist/{chunk-KHQDHABG.mjs → chunk-2VIL6YJW.mjs} +1 -1
  4. package/dist/{chunk-GNKI3DYY.mjs → chunk-AAEFNMAS.mjs} +1 -1
  5. package/dist/{chunk-BX7H4PEX.js → chunk-ATDCZ42E.js} +2 -2
  6. package/dist/{chunk-4ORYCFWC.mjs → chunk-H47ZG3KM.mjs} +107 -101
  7. package/dist/{chunk-IWS2JVQ6.mjs → chunk-JZKQJUW6.mjs} +1 -1
  8. package/dist/{chunk-YNPFM7N4.js → chunk-OZS7TX5H.js} +2 -2
  9. package/dist/{chunk-JPGLONS5.js → chunk-Q5C6LQA5.js} +2 -2
  10. package/dist/{chunk-DAAOQSTD.mjs → chunk-UA6N4XMT.mjs} +1 -1
  11. package/dist/{chunk-EVQUHERC.js → chunk-V4HJVR2F.js} +2 -2
  12. package/dist/{chunk-P5OT3UM4.js → chunk-ZEFI36VN.js} +2 -2
  13. package/dist/{chunk-NEJYRJJ3.js → chunk-ZWQNKIN3.js} +107 -101
  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,18 @@
2
2
 
3
3
  # Changelog for Powerlines - Nx
4
4
 
5
+ ## [0.10.44](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.44) (11/27/2025)
6
+
7
+ ### Updated Dependencies
8
+
9
+ - Updated **powerlines** to **v0.26.1**
10
+
11
+ ## [0.10.43](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.43) (11/27/2025)
12
+
13
+ ### Updated Dependencies
14
+
15
+ - Updated **powerlines** to **v0.26.0**
16
+
5
17
  ## [0.10.42](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.42) (11/27/2025)
6
18
 
7
19
  ### Updated Dependencies
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-4ORYCFWC.mjs';
1
+ import { withExecutor } from './chunk-H47ZG3KM.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
 
4
4
  // src/executors/lint/executor.ts
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-4ORYCFWC.mjs';
1
+ import { withExecutor } from './chunk-H47ZG3KM.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-H47ZG3KM.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 chunkZWQNKIN3_js = require('./chunk-ZWQNKIN3.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 = chunkZWQNKIN3_js.withExecutor("docs", executorFn);
15
15
  var executor_default = executor;
16
16
 
17
17
  exports.executorFn = executorFn;
@@ -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,27 +3446,40 @@ 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)}`);
3442
- await writeMetaFile(context);
3443
- context.persistedMeta = context.meta;
3444
3469
  if (!context.fs.existsSync(context.cachePath)) {
3445
3470
  await createDirectory(context.cachePath);
3446
3471
  }
3447
3472
  if (!context.fs.existsSync(context.dataPath)) {
3448
3473
  await createDirectory(context.dataPath);
3449
3474
  }
3450
- await this.callPreHook(context, "prepare");
3451
- await this.callNormalHook(context, "prepare");
3475
+ await this.callHook("prepare", {
3476
+ environment: context,
3477
+ order: "pre"
3478
+ });
3479
+ await this.callHook("prepare", {
3480
+ environment: context,
3481
+ order: "normal"
3482
+ });
3452
3483
  if (context.config.output.dts !== false) {
3453
3484
  context.log(LogLevelLabel.TRACE, `Preparing the TypeScript definitions for the Powerlines project.`);
3454
3485
  if (context.fs.existsSync(context.dtsPath)) {
@@ -3506,7 +3537,10 @@ ${formatLogMessage(context.config)}`);
3506
3537
  let generatedTypes = await emitTypes(context, files);
3507
3538
  context.log(LogLevelLabel.TRACE, `Generating TypeScript declaration file ${context.dtsPath}.`);
3508
3539
  const directives = [];
3509
- let result = await this.callPreHook(context, "generateTypes", generatedTypes);
3540
+ let result = await this.callHook("generateTypes", {
3541
+ environment: context,
3542
+ order: "pre"
3543
+ }, generatedTypes);
3510
3544
  if (result) {
3511
3545
  if (isSetObject(result)) {
3512
3546
  generatedTypes = result.code;
@@ -3517,7 +3551,10 @@ ${formatLogMessage(context.config)}`);
3517
3551
  generatedTypes = result;
3518
3552
  }
3519
3553
  }
3520
- result = await this.callNormalHook(context, "generateTypes", generatedTypes);
3554
+ result = await this.callHook("generateTypes", {
3555
+ environment: context,
3556
+ order: "normal"
3557
+ }, generatedTypes);
3521
3558
  if (result) {
3522
3559
  if (isSetObject(result)) {
3523
3560
  generatedTypes = result.code;
@@ -3528,7 +3565,10 @@ ${formatLogMessage(context.config)}`);
3528
3565
  generatedTypes = result;
3529
3566
  }
3530
3567
  }
3531
- result = await this.callPostHook(context, "generateTypes", generatedTypes);
3568
+ result = await this.callHook("generateTypes", {
3569
+ environment: context,
3570
+ order: "post"
3571
+ }, generatedTypes);
3532
3572
  if (result) {
3533
3573
  if (isSetObject(result)) {
3534
3574
  generatedTypes = result.code;
@@ -3553,8 +3593,12 @@ ${formatTypes(generatedTypes)}
3553
3593
  if (!context.tsconfig) {
3554
3594
  throw new Error("Failed to parse the TypeScript configuration file.");
3555
3595
  }
3556
- await this.callPostHook(context, "prepare");
3596
+ await this.callHook("prepare", {
3597
+ environment: context,
3598
+ order: "post"
3599
+ });
3557
3600
  await writeMetaFile(context);
3601
+ context.persistedMeta = context.meta;
3558
3602
  });
3559
3603
  this.context.log(LogLevelLabel.INFO, "Powerlines API has been prepared successfully");
3560
3604
  }
@@ -3572,14 +3616,20 @@ ${formatTypes(generatedTypes)}
3572
3616
  await this.prepare(inlineConfig);
3573
3617
  await this.#executeEnvironments(async (context) => {
3574
3618
  context.log(LogLevelLabel.TRACE, `Initializing the processing options for the Powerlines project.`);
3575
- await this.callPreHook(context, "new");
3619
+ await this.callHook("new", {
3620
+ environment: context,
3621
+ order: "pre"
3622
+ });
3576
3623
  const files = await listFiles(joinPaths$1(context.powerlinesPath, "files/common/**/*.hbs"));
3577
3624
  for (const file of files) {
3578
3625
  context.log(LogLevelLabel.TRACE, `Adding template file: ${file}`);
3579
3626
  const template = Handlebars.compile(file);
3580
3627
  await writeFile(context.log, joinPaths$1(context.config.projectRoot, file.replace(".hbs", "")), template(context));
3581
3628
  }
3582
- await this.callNormalHook(context, "new");
3629
+ await this.callHook("new", {
3630
+ environment: context,
3631
+ order: "normal"
3632
+ });
3583
3633
  if (context.config.projectType === "application") {
3584
3634
  const files2 = await listFiles(joinPaths$1(context.powerlinesPath, "files/application/**/*.hbs"));
3585
3635
  for (const file of files2) {
@@ -3595,7 +3645,10 @@ ${formatTypes(generatedTypes)}
3595
3645
  await writeFile(context.log, joinPaths$1(context.config.projectRoot, file.replace(".hbs", "")), template(context));
3596
3646
  }
3597
3647
  }
3598
- await this.callPostHook(context, "new");
3648
+ await this.callHook("new", {
3649
+ environment: context,
3650
+ order: "post"
3651
+ });
3599
3652
  });
3600
3653
  this.context.log(LogLevelLabel.TRACE, "Powerlines - New command completed");
3601
3654
  }
@@ -3617,8 +3670,9 @@ ${formatTypes(generatedTypes)}
3617
3670
  this.context.log(LogLevelLabel.TRACE, "Cleaning the project's dist and artifacts directories.");
3618
3671
  await context.fs.remove(joinPaths$1(context.workspaceConfig.workspaceRoot, context.config.output.buildPath));
3619
3672
  await context.fs.remove(joinPaths$1(context.workspaceConfig.workspaceRoot, context.config.output.artifactsPath));
3620
- await callHook(context, "clean", {
3621
- sequential: true
3673
+ await this.callHook("clean", {
3674
+ environment: context,
3675
+ sequential: false
3622
3676
  });
3623
3677
  });
3624
3678
  this.context.log(LogLevelLabel.TRACE, "Powerlines - Clean command completed");
@@ -3636,7 +3690,10 @@ ${formatTypes(generatedTypes)}
3636
3690
  await this.prepare(inlineConfig);
3637
3691
  await this.#executeEnvironments(async (context) => {
3638
3692
  if (context.config.lint !== false) {
3639
- await this.callHook(context, "lint");
3693
+ await this.callHook("lint", {
3694
+ environment: context,
3695
+ sequential: false
3696
+ });
3640
3697
  }
3641
3698
  });
3642
3699
  this.context.log(LogLevelLabel.TRACE, "Powerlines linting completed");
@@ -3656,8 +3713,14 @@ ${formatTypes(generatedTypes)}
3656
3713
  this.context.log(LogLevelLabel.INFO, "\u{1F4E6} Building the Powerlines project");
3657
3714
  await this.prepare(inlineConfig);
3658
3715
  await this.#executeEnvironments(async (context) => {
3659
- await this.callPreHook(context, "build");
3660
- await this.callNormalHook(context, "build");
3716
+ await this.callHook("build", {
3717
+ environment: context,
3718
+ order: "pre"
3719
+ });
3720
+ await this.callHook("build", {
3721
+ environment: context,
3722
+ order: "normal"
3723
+ });
3661
3724
  if (context.config.output.buildPath !== context.config.output.outputPath) {
3662
3725
  const sourcePath = appendPath(context.config.output.buildPath, context.workspaceConfig.workspaceRoot);
3663
3726
  const destinationPath = joinPaths$1(appendPath(context.config.output.outputPath, context.workspaceConfig.workspaceRoot), "dist");
@@ -3673,7 +3736,10 @@ ${formatTypes(generatedTypes)}
3673
3736
  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
3737
  await copyFiles(asset, asset.output);
3675
3738
  }));
3676
- await this.callPostHook(context, "build");
3739
+ await this.callHook("build", {
3740
+ environment: context,
3741
+ order: "post"
3742
+ });
3677
3743
  });
3678
3744
  this.context.log(LogLevelLabel.TRACE, "Powerlines build completed");
3679
3745
  }
@@ -3692,7 +3758,9 @@ ${formatTypes(generatedTypes)}
3692
3758
  context.log(LogLevelLabel.TRACE, "Writing documentation for the Powerlines project artifacts.");
3693
3759
  await this.prepare(inlineConfig);
3694
3760
  await this.#executeEnvironments(async (context2) => {
3695
- await this.callHook(context2, "docs");
3761
+ await this.callHook("docs", {
3762
+ environment: context2
3763
+ });
3696
3764
  });
3697
3765
  });
3698
3766
  this.#context.log(LogLevelLabel.TRACE, "Powerlines documentation generation completed");
@@ -3711,7 +3779,9 @@ ${formatTypes(generatedTypes)}
3711
3779
  this.context.log(LogLevelLabel.INFO, "\u{1F4E6} Deploying the Powerlines project");
3712
3780
  await this.prepare(inlineConfig);
3713
3781
  await this.#executeEnvironments(async (context) => {
3714
- await this.callHook(context, "deploy");
3782
+ await this.callHook("deploy", {
3783
+ environment: context
3784
+ });
3715
3785
  });
3716
3786
  this.context.log(LogLevelLabel.TRACE, "Powerlines deploy completed");
3717
3787
  }
@@ -3726,92 +3796,28 @@ ${formatTypes(generatedTypes)}
3726
3796
  async finalize() {
3727
3797
  this.context.log(LogLevelLabel.TRACE, "Powerlines finalize execution started");
3728
3798
  await this.#executeEnvironments(async (context) => {
3729
- await this.callHook(context, "finalize");
3799
+ await this.callHook("finalize", {
3800
+ environment: context
3801
+ });
3730
3802
  await context.fs.dispose();
3731
3803
  });
3732
3804
  this.context.log(LogLevelLabel.TRACE, "Powerlines finalize execution completed");
3733
3805
  }
3734
3806
  /**
3735
- * Calls a hook in parallel
3807
+ * Invokes the configured plugin hooks
3736
3808
  *
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
3809
+ * @remarks
3810
+ * By default, it will call the `"pre"`, `"normal"`, and `"post"` ordered hooks in sequence
3750
3811
  *
3751
3812
  * @param hook - The hook to call
3752
- * @param options - Options for calling the hook
3813
+ * @param options - The options to provide to the hook
3753
3814
  * @param args - The arguments to pass to the hook
3754
3815
  * @returns The result of the hook call
3755
3816
  */
3756
- async callHookSequential(hook, options, ...args) {
3817
+ async callHook(hook, options, ...args) {
3757
3818
  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
3819
+ sequential: true,
3820
+ ...options
3815
3821
  }, ...args);
3816
3822
  }
3817
3823
  /**
@@ -3839,7 +3845,7 @@ ${formatTypes(generatedTypes)}
3839
3845
  return (await Promise.all(Object.entries(this.context.config.environments).map(async ([name, config]) => {
3840
3846
  const environment = await this.context.getEnvironmentSafe(name);
3841
3847
  if (!environment) {
3842
- const resolvedEnvironment = await this.callHookParallel("configEnvironment", {
3848
+ const resolvedEnvironment = await this.callHook("configEnvironment", {
3843
3849
  environment: name
3844
3850
  }, name, config);
3845
3851
  if (resolvedEnvironment) {
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-4ORYCFWC.mjs';
1
+ import { withExecutor } from './chunk-H47ZG3KM.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
 
4
4
  // src/executors/clean/executor.ts
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNEJYRJJ3_js = require('./chunk-NEJYRJJ3.js');
3
+ var chunkZWQNKIN3_js = require('./chunk-ZWQNKIN3.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 = chunkZWQNKIN3_js.withExecutor("prepare", 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 chunkZWQNKIN3_js = require('./chunk-ZWQNKIN3.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 = chunkZWQNKIN3_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-H47ZG3KM.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
  import defu from 'defu';
4
4
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNEJYRJJ3_js = require('./chunk-NEJYRJJ3.js');
3
+ var chunkZWQNKIN3_js = require('./chunk-ZWQNKIN3.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 = chunkZWQNKIN3_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 chunkZWQNKIN3_js = require('./chunk-ZWQNKIN3.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 = chunkZWQNKIN3_js.withExecutor("lint", executorFn);
15
15
  var executor_default = executor;
16
16
 
17
17
  exports.executorFn = executorFn;
@@ -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,27 +3475,40 @@ 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)}`);
3471
- await chunkDQI2I5KK_js.writeMetaFile(context);
3472
- context.persistedMeta = context.meta;
3473
3498
  if (!context.fs.existsSync(context.cachePath)) {
3474
3499
  await helpers.createDirectory(context.cachePath);
3475
3500
  }
3476
3501
  if (!context.fs.existsSync(context.dataPath)) {
3477
3502
  await helpers.createDirectory(context.dataPath);
3478
3503
  }
3479
- await this.callPreHook(context, "prepare");
3480
- await this.callNormalHook(context, "prepare");
3504
+ await this.callHook("prepare", {
3505
+ environment: context,
3506
+ order: "pre"
3507
+ });
3508
+ await this.callHook("prepare", {
3509
+ environment: context,
3510
+ order: "normal"
3511
+ });
3481
3512
  if (context.config.output.dts !== false) {
3482
3513
  context.log(types.LogLevelLabel.TRACE, `Preparing the TypeScript definitions for the Powerlines project.`);
3483
3514
  if (context.fs.existsSync(context.dtsPath)) {
@@ -3535,7 +3566,10 @@ ${console.formatLogMessage(context.config)}`);
3535
3566
  let generatedTypes = await emitTypes(context, files);
3536
3567
  context.log(types.LogLevelLabel.TRACE, `Generating TypeScript declaration file ${context.dtsPath}.`);
3537
3568
  const directives = [];
3538
- let result = await this.callPreHook(context, "generateTypes", generatedTypes);
3569
+ let result = await this.callHook("generateTypes", {
3570
+ environment: context,
3571
+ order: "pre"
3572
+ }, generatedTypes);
3539
3573
  if (result) {
3540
3574
  if (isSetObject.isSetObject(result)) {
3541
3575
  generatedTypes = result.code;
@@ -3546,7 +3580,10 @@ ${console.formatLogMessage(context.config)}`);
3546
3580
  generatedTypes = result;
3547
3581
  }
3548
3582
  }
3549
- result = await this.callNormalHook(context, "generateTypes", generatedTypes);
3583
+ result = await this.callHook("generateTypes", {
3584
+ environment: context,
3585
+ order: "normal"
3586
+ }, generatedTypes);
3550
3587
  if (result) {
3551
3588
  if (isSetObject.isSetObject(result)) {
3552
3589
  generatedTypes = result.code;
@@ -3557,7 +3594,10 @@ ${console.formatLogMessage(context.config)}`);
3557
3594
  generatedTypes = result;
3558
3595
  }
3559
3596
  }
3560
- result = await this.callPostHook(context, "generateTypes", generatedTypes);
3597
+ result = await this.callHook("generateTypes", {
3598
+ environment: context,
3599
+ order: "post"
3600
+ }, generatedTypes);
3561
3601
  if (result) {
3562
3602
  if (isSetObject.isSetObject(result)) {
3563
3603
  generatedTypes = result.code;
@@ -3582,8 +3622,12 @@ ${formatTypes(generatedTypes)}
3582
3622
  if (!context.tsconfig) {
3583
3623
  throw new Error("Failed to parse the TypeScript configuration file.");
3584
3624
  }
3585
- await this.callPostHook(context, "prepare");
3625
+ await this.callHook("prepare", {
3626
+ environment: context,
3627
+ order: "post"
3628
+ });
3586
3629
  await chunkDQI2I5KK_js.writeMetaFile(context);
3630
+ context.persistedMeta = context.meta;
3587
3631
  });
3588
3632
  this.context.log(types.LogLevelLabel.INFO, "Powerlines API has been prepared successfully");
3589
3633
  }
@@ -3601,14 +3645,20 @@ ${formatTypes(generatedTypes)}
3601
3645
  await this.prepare(inlineConfig);
3602
3646
  await this.#executeEnvironments(async (context) => {
3603
3647
  context.log(types.LogLevelLabel.TRACE, `Initializing the processing options for the Powerlines project.`);
3604
- await this.callPreHook(context, "new");
3648
+ await this.callHook("new", {
3649
+ environment: context,
3650
+ order: "pre"
3651
+ });
3605
3652
  const files = await listFiles.listFiles(joinPaths.joinPaths(context.powerlinesPath, "files/common/**/*.hbs"));
3606
3653
  for (const file of files) {
3607
3654
  context.log(types.LogLevelLabel.TRACE, `Adding template file: ${file}`);
3608
3655
  const template = Handlebars__default.default.compile(file);
3609
3656
  await writeFile(context.log, joinPaths.joinPaths(context.config.projectRoot, file.replace(".hbs", "")), template(context));
3610
3657
  }
3611
- await this.callNormalHook(context, "new");
3658
+ await this.callHook("new", {
3659
+ environment: context,
3660
+ order: "normal"
3661
+ });
3612
3662
  if (context.config.projectType === "application") {
3613
3663
  const files2 = await listFiles.listFiles(joinPaths.joinPaths(context.powerlinesPath, "files/application/**/*.hbs"));
3614
3664
  for (const file of files2) {
@@ -3624,7 +3674,10 @@ ${formatTypes(generatedTypes)}
3624
3674
  await writeFile(context.log, joinPaths.joinPaths(context.config.projectRoot, file.replace(".hbs", "")), template(context));
3625
3675
  }
3626
3676
  }
3627
- await this.callPostHook(context, "new");
3677
+ await this.callHook("new", {
3678
+ environment: context,
3679
+ order: "post"
3680
+ });
3628
3681
  });
3629
3682
  this.context.log(types.LogLevelLabel.TRACE, "Powerlines - New command completed");
3630
3683
  }
@@ -3646,8 +3699,9 @@ ${formatTypes(generatedTypes)}
3646
3699
  this.context.log(types.LogLevelLabel.TRACE, "Cleaning the project's dist and artifacts directories.");
3647
3700
  await context.fs.remove(joinPaths.joinPaths(context.workspaceConfig.workspaceRoot, context.config.output.buildPath));
3648
3701
  await context.fs.remove(joinPaths.joinPaths(context.workspaceConfig.workspaceRoot, context.config.output.artifactsPath));
3649
- await callHook(context, "clean", {
3650
- sequential: true
3702
+ await this.callHook("clean", {
3703
+ environment: context,
3704
+ sequential: false
3651
3705
  });
3652
3706
  });
3653
3707
  this.context.log(types.LogLevelLabel.TRACE, "Powerlines - Clean command completed");
@@ -3665,7 +3719,10 @@ ${formatTypes(generatedTypes)}
3665
3719
  await this.prepare(inlineConfig);
3666
3720
  await this.#executeEnvironments(async (context) => {
3667
3721
  if (context.config.lint !== false) {
3668
- await this.callHook(context, "lint");
3722
+ await this.callHook("lint", {
3723
+ environment: context,
3724
+ sequential: false
3725
+ });
3669
3726
  }
3670
3727
  });
3671
3728
  this.context.log(types.LogLevelLabel.TRACE, "Powerlines linting completed");
@@ -3685,8 +3742,14 @@ ${formatTypes(generatedTypes)}
3685
3742
  this.context.log(types.LogLevelLabel.INFO, "\u{1F4E6} Building the Powerlines project");
3686
3743
  await this.prepare(inlineConfig);
3687
3744
  await this.#executeEnvironments(async (context) => {
3688
- await this.callPreHook(context, "build");
3689
- await this.callNormalHook(context, "build");
3745
+ await this.callHook("build", {
3746
+ environment: context,
3747
+ order: "pre"
3748
+ });
3749
+ await this.callHook("build", {
3750
+ environment: context,
3751
+ order: "normal"
3752
+ });
3690
3753
  if (context.config.output.buildPath !== context.config.output.outputPath) {
3691
3754
  const sourcePath = append.appendPath(context.config.output.buildPath, context.workspaceConfig.workspaceRoot);
3692
3755
  const destinationPath = joinPaths.joinPaths(append.appendPath(context.config.output.outputPath, context.workspaceConfig.workspaceRoot), "dist");
@@ -3702,7 +3765,10 @@ ${formatTypes(generatedTypes)}
3702
3765
  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
3766
  await copyFile.copyFiles(asset, asset.output);
3704
3767
  }));
3705
- await this.callPostHook(context, "build");
3768
+ await this.callHook("build", {
3769
+ environment: context,
3770
+ order: "post"
3771
+ });
3706
3772
  });
3707
3773
  this.context.log(types.LogLevelLabel.TRACE, "Powerlines build completed");
3708
3774
  }
@@ -3721,7 +3787,9 @@ ${formatTypes(generatedTypes)}
3721
3787
  context.log(types.LogLevelLabel.TRACE, "Writing documentation for the Powerlines project artifacts.");
3722
3788
  await this.prepare(inlineConfig);
3723
3789
  await this.#executeEnvironments(async (context2) => {
3724
- await this.callHook(context2, "docs");
3790
+ await this.callHook("docs", {
3791
+ environment: context2
3792
+ });
3725
3793
  });
3726
3794
  });
3727
3795
  this.#context.log(types.LogLevelLabel.TRACE, "Powerlines documentation generation completed");
@@ -3740,7 +3808,9 @@ ${formatTypes(generatedTypes)}
3740
3808
  this.context.log(types.LogLevelLabel.INFO, "\u{1F4E6} Deploying the Powerlines project");
3741
3809
  await this.prepare(inlineConfig);
3742
3810
  await this.#executeEnvironments(async (context) => {
3743
- await this.callHook(context, "deploy");
3811
+ await this.callHook("deploy", {
3812
+ environment: context
3813
+ });
3744
3814
  });
3745
3815
  this.context.log(types.LogLevelLabel.TRACE, "Powerlines deploy completed");
3746
3816
  }
@@ -3755,92 +3825,28 @@ ${formatTypes(generatedTypes)}
3755
3825
  async finalize() {
3756
3826
  this.context.log(types.LogLevelLabel.TRACE, "Powerlines finalize execution started");
3757
3827
  await this.#executeEnvironments(async (context) => {
3758
- await this.callHook(context, "finalize");
3828
+ await this.callHook("finalize", {
3829
+ environment: context
3830
+ });
3759
3831
  await context.fs.dispose();
3760
3832
  });
3761
3833
  this.context.log(types.LogLevelLabel.TRACE, "Powerlines finalize execution completed");
3762
3834
  }
3763
3835
  /**
3764
- * Calls a hook in parallel
3836
+ * Invokes the configured plugin hooks
3765
3837
  *
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
3838
+ * @remarks
3839
+ * By default, it will call the `"pre"`, `"normal"`, and `"post"` ordered hooks in sequence
3779
3840
  *
3780
3841
  * @param hook - The hook to call
3781
- * @param options - Options for calling the hook
3842
+ * @param options - The options to provide to the hook
3782
3843
  * @param args - The arguments to pass to the hook
3783
3844
  * @returns The result of the hook call
3784
3845
  */
3785
- async callHookSequential(hook, options, ...args) {
3846
+ async callHook(hook, options, ...args) {
3786
3847
  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
3848
+ sequential: true,
3849
+ ...options
3844
3850
  }, ...args);
3845
3851
  }
3846
3852
  /**
@@ -3868,7 +3874,7 @@ ${formatTypes(generatedTypes)}
3868
3874
  return (await Promise.all(Object.entries(this.context.config.environments).map(async ([name, config]) => {
3869
3875
  const environment = await this.context.getEnvironmentSafe(name);
3870
3876
  if (!environment) {
3871
- const resolvedEnvironment = await this.callHookParallel("configEnvironment", {
3877
+ const resolvedEnvironment = await this.callHook("configEnvironment", {
3872
3878
  environment: name
3873
3879
  }, name, config);
3874
3880
  if (resolvedEnvironment) {
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 chunkZEFI36VN_js = require('./chunk-ZEFI36VN.js');
5
+ var chunkOZS7TX5H_js = require('./chunk-OZS7TX5H.js');
6
+ var chunkV4HJVR2F_js = require('./chunk-V4HJVR2F.js');
7
+ var chunkQ5C6LQA5_js = require('./chunk-Q5C6LQA5.js');
8
+ var chunkATDCZ42E_js = require('./chunk-ATDCZ42E.js');
9
+ require('./chunk-ZWQNKIN3.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 chunkZEFI36VN_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 chunkOZS7TX5H_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 chunkV4HJVR2F_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 chunkQ5C6LQA5_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 chunkATDCZ42E_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-2LWZHRAL.mjs';
3
+ export { executor_default as prepare } from './chunk-2VIL6YJW.mjs';
4
+ export { executor_default as build } from './chunk-UA6N4XMT.mjs';
5
+ export { executor_default as clean } from './chunk-JZKQJUW6.mjs';
6
+ export { executor_default as docs } from './chunk-AAEFNMAS.mjs';
7
+ import './chunk-H47ZG3KM.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 chunkZEFI36VN_js = require('./chunk-ZEFI36VN.js');
6
+ var chunkOZS7TX5H_js = require('./chunk-OZS7TX5H.js');
7
+ var chunkV4HJVR2F_js = require('./chunk-V4HJVR2F.js');
8
+ var chunkQ5C6LQA5_js = require('./chunk-Q5C6LQA5.js');
9
+ var chunkATDCZ42E_js = require('./chunk-ATDCZ42E.js');
10
10
  require('./chunk-N2YKXZ5R.js');
11
11
  var chunkWUJKJGEW_js = require('./chunk-WUJKJGEW.js');
12
- require('./chunk-NEJYRJJ3.js');
12
+ require('./chunk-ZWQNKIN3.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 chunkZEFI36VN_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 chunkOZS7TX5H_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 chunkV4HJVR2F_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 chunkQ5C6LQA5_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 chunkATDCZ42E_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-2LWZHRAL.mjs';
4
+ export { executor_default as prepare } from './chunk-2VIL6YJW.mjs';
5
+ export { executor_default as build } from './chunk-UA6N4XMT.mjs';
6
+ export { executor_default as clean } from './chunk-JZKQJUW6.mjs';
7
+ export { executor_default as docs } from './chunk-AAEFNMAS.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-H47ZG3KM.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 chunkZWQNKIN3_js = require('../../chunk-ZWQNKIN3.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 chunkZWQNKIN3_js.withExecutor; }
12
12
  });
@@ -1,3 +1,3 @@
1
- export { withExecutor } from '../../chunk-4ORYCFWC.mjs';
1
+ export { withExecutor } from '../../chunk-H47ZG3KM.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 chunkV4HJVR2F_js = require('../../../chunk-V4HJVR2F.js');
6
+ require('../../../chunk-ZWQNKIN3.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 chunkV4HJVR2F_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 chunkV4HJVR2F_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-UA6N4XMT.mjs';
2
+ import '../../../chunk-H47ZG3KM.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 chunkQ5C6LQA5_js = require('../../../chunk-Q5C6LQA5.js');
6
+ require('../../../chunk-ZWQNKIN3.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 chunkQ5C6LQA5_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 chunkQ5C6LQA5_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-JZKQJUW6.mjs';
2
+ import '../../../chunk-H47ZG3KM.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 chunkATDCZ42E_js = require('../../../chunk-ATDCZ42E.js');
6
+ require('../../../chunk-ZWQNKIN3.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 chunkATDCZ42E_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 chunkATDCZ42E_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-AAEFNMAS.mjs';
2
+ import '../../../chunk-H47ZG3KM.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 chunkZEFI36VN_js = require('../../../chunk-ZEFI36VN.js');
6
+ require('../../../chunk-ZWQNKIN3.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 chunkZEFI36VN_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 chunkZEFI36VN_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-2LWZHRAL.mjs';
2
+ import '../../../chunk-H47ZG3KM.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 chunkOZS7TX5H_js = require('../../../chunk-OZS7TX5H.js');
6
+ require('../../../chunk-ZWQNKIN3.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 chunkOZS7TX5H_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 chunkOZS7TX5H_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-2VIL6YJW.mjs';
2
+ import '../../../chunk-H47ZG3KM.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.44",
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.1"
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": "091646e240baefe4692003e7ea76e5e337d1772e"
214
214
  }