@rushstack/rush-sdk 5.62.4 → 5.63.0

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 (2) hide show
  1. package/dist/rush-lib.d.ts +46 -2
  2. package/package.json +6 -6
@@ -6,6 +6,7 @@
6
6
  /// <reference types="node" />
7
7
 
8
8
  import { AsyncSeriesHook } from 'tapable';
9
+ import { HookMap } from 'tapable';
9
10
  import { IPackageJson } from '@rushstack/node-core-library';
10
11
  import { ITerminal } from '@rushstack/node-core-library';
11
12
  import { ITerminalProvider } from '@rushstack/node-core-library';
@@ -753,6 +754,13 @@ export declare interface IGetChangedProjectsOptions {
753
754
  enableFiltering: boolean;
754
755
  }
755
756
 
757
+ /**
758
+ * Information about the currently executing global script command (as defined in command-line.json) provided to plugins.
759
+ * @beta
760
+ */
761
+ export declare interface IGlobalCommand extends IRushCommand {
762
+ }
763
+
756
764
  declare interface IIndividualVersionJson extends IVersionPolicyJson {
757
765
  lockedMajor?: number;
758
766
  }
@@ -872,6 +880,13 @@ export declare interface IPackageManagerOptionsJsonBase {
872
880
  environmentVariables?: IConfigurationEnvironment;
873
881
  }
874
882
 
883
+ /**
884
+ * Information about the currently executing phased script command (as defined in command-line.json, or default "build" or "rebuild") provided to plugins.
885
+ * @beta
886
+ */
887
+ export declare interface IPhasedCommand extends IRushCommand {
888
+ }
889
+
875
890
  /**
876
891
  * Part of IRushConfigurationJson.
877
892
  * @internal
@@ -895,6 +910,17 @@ export declare interface _IPnpmOptionsJson extends IPackageManagerOptionsJsonBas
895
910
  useWorkspaces?: boolean;
896
911
  }
897
912
 
913
+ /**
914
+ * Information about the currently executing command provided to plugins.
915
+ * @beta
916
+ */
917
+ export declare interface IRushCommand {
918
+ /**
919
+ * The name of this command, as seen on the command line
920
+ */
921
+ readonly actionName: string;
922
+ }
923
+
898
924
  /**
899
925
  * This represents the JSON data structure for the "rush.json" configuration file.
900
926
  * See rush.schema.json for documentation.
@@ -2542,13 +2568,31 @@ export declare class _RushGlobalFolder {
2542
2568
  }
2543
2569
 
2544
2570
  /**
2571
+ * Hooks into the lifecycle of the Rush process invocation that plugins may tap into.
2572
+ *
2545
2573
  * @beta
2546
2574
  */
2547
2575
  export declare class RushLifecycleHooks {
2548
2576
  /**
2549
- * The hook to run when all rush plugins is initialized.
2577
+ * The hook to run before executing any Rush CLI Command.
2578
+ */
2579
+ initialize: AsyncSeriesHook<IRushCommand>;
2580
+ /**
2581
+ * The hook to run before executing any global Rush CLI Command (defined in command-line.json).
2582
+ */
2583
+ runAnyGlobalCustomCommand: AsyncSeriesHook<IGlobalCommand>;
2584
+ /**
2585
+ * A hook map to allow plugins to hook specific named global commands (defined in command-line.json) before execution.
2586
+ */
2587
+ runGlobalCustomCommand: HookMap<AsyncSeriesHook<IGlobalCommand>>;
2588
+ /**
2589
+ * The hook to run before executing any phased Rush CLI Command (defined in command-line.json, or the default "build" or "rebuild").
2590
+ */
2591
+ runAnyPhasedCommand: AsyncSeriesHook<IPhasedCommand>;
2592
+ /**
2593
+ * A hook map to allow plugins to hook specific named phased commands (defined in command-line.json) before execution.
2550
2594
  */
2551
- initialize: AsyncSeriesHook<void>;
2595
+ runPhasedCommand: HookMap<AsyncSeriesHook<IPhasedCommand>>;
2552
2596
  }
2553
2597
 
2554
2598
  declare class RushPluginsConfiguration {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rushstack/rush-sdk",
3
- "version": "5.62.4",
3
+ "version": "5.63.0",
4
4
  "description": "An API for interacting with the Rush engine",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,15 +12,15 @@
12
12
  "typings": "dist/rush-lib.d.ts",
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
- "@rushstack/node-core-library": "3.45.0",
15
+ "@rushstack/node-core-library": "3.45.1",
16
16
  "@types/node-fetch": "1.6.9",
17
17
  "tapable": "2.2.1"
18
18
  },
19
19
  "devDependencies": {
20
- "@microsoft/rush-lib": "5.62.4",
21
- "@rushstack/eslint-config": "2.5.1",
22
- "@rushstack/heft": "0.44.2",
23
- "@rushstack/heft-node-rig": "1.8.0",
20
+ "@microsoft/rush-lib": "5.63.0",
21
+ "@rushstack/eslint-config": "2.5.2",
22
+ "@rushstack/heft": "0.44.3",
23
+ "@rushstack/heft-node-rig": "1.8.1",
24
24
  "@types/heft-jest": "1.0.1",
25
25
  "@types/semver": "7.3.5",
26
26
  "@types/webpack-env": "1.13.0"