@rushstack/rush-sdk 5.132.0 → 5.133.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.
@@ -2148,6 +2148,7 @@ declare interface IRushConfigurationJson {
2148
2148
  nodeSupportedVersionRange?: string;
2149
2149
  nodeSupportedVersionInstructions?: string;
2150
2150
  suppressNodeLtsWarning?: boolean;
2151
+ suppressRushIsPublicVersionCheck?: boolean;
2151
2152
  projectFolderMinDepth?: number;
2152
2153
  projectFolderMaxDepth?: number;
2153
2154
  allowMostlyStandardPackageNames?: boolean;
@@ -4424,7 +4425,11 @@ export declare class RushLifecycleHooks {
4424
4425
  /**
4425
4426
  * The hook to run between preparing the common/temp folder and invoking the package manager during "rush install" or "rush update".
4426
4427
  */
4427
- readonly beforeInstall: AsyncSeriesHook<IGlobalCommand>;
4428
+ readonly beforeInstall: AsyncSeriesHook<[IGlobalCommand, Subspace]>;
4429
+ /**
4430
+ * The hook to run after a successful install.
4431
+ */
4432
+ readonly afterInstall: AsyncSeriesHook<[IRushCommand, Subspace]>;
4428
4433
  /**
4429
4434
  * A hook to allow plugins to hook custom logic to process telemetry data.
4430
4435
  */
@@ -91,6 +91,7 @@ export interface IRushConfigurationJson {
91
91
  nodeSupportedVersionRange?: string;
92
92
  nodeSupportedVersionInstructions?: string;
93
93
  suppressNodeLtsWarning?: boolean;
94
+ suppressRushIsPublicVersionCheck?: boolean;
94
95
  projectFolderMinDepth?: number;
95
96
  projectFolderMaxDepth?: number;
96
97
  allowMostlyStandardPackageNames?: boolean;
@@ -87,7 +87,11 @@ export interface IInstallManagerOptions {
87
87
  /**
88
88
  * Callback to invoke between preparing the common/temp folder and running installation.
89
89
  */
90
- beforeInstallAsync?: () => Promise<void>;
90
+ beforeInstallAsync?: (subspace: Subspace) => Promise<void>;
91
+ /**
92
+ * Callback to invoke after a successful installation.
93
+ */
94
+ afterInstallAsync?: (subspace: Subspace) => Promise<void>;
91
95
  /**
92
96
  * The specific subspace to install.
93
97
  */
@@ -23,9 +23,11 @@ export type IPnpmVersionSpecifier = IPnpmV7VersionSpecifier | IPnpmV8VersionSpec
23
23
  export interface IPnpmShrinkwrapDependencyYaml {
24
24
  /** Information about the resolved package */
25
25
  resolution?: {
26
+ /** The directory this package should clone, for injected dependencies */
27
+ directory?: string;
26
28
  /** The hash of the tarball, to ensure archive integrity */
27
- integrity: string;
28
- /** The name of the tarball, if this was from a TGX file */
29
+ integrity?: string;
30
+ /** The name of the tarball, if this was from a TGZ file */
29
31
  tarball?: string;
30
32
  };
31
33
  /** The list of dependencies and the resolved version */
@@ -39,6 +41,16 @@ export interface IPnpmShrinkwrapDependencyYaml {
39
41
  * https://github.com/yarnpkg/rfcs/blob/master/accepted/0000-optional-peer-dependencies.md
40
42
  */
41
43
  peerDependenciesMeta?: Record<string, IPeerDependenciesMetaYaml>;
44
+ /** The name of the package, if the package is a local tarball */
45
+ name?: string;
46
+ /** If this is an optional dependency */
47
+ optional?: boolean;
48
+ /** The values of process.platform supported by this package */
49
+ os?: readonly string[];
50
+ /** The values of process.arch supported by this package */
51
+ cpu?: readonly string[];
52
+ /** The libc runtimes supported by this package */
53
+ libc?: readonly string[];
42
54
  }
43
55
  export interface IPnpmShrinkwrapImporterYaml {
44
56
  /** The list of resolved version numbers for direct dependencies */
@@ -1,6 +1,7 @@
1
1
  import { AsyncParallelHook, AsyncSeriesHook, HookMap } from 'tapable';
2
2
  import type { ITelemetryData } from '../logic/Telemetry';
3
3
  import type { PhasedCommandHooks } from './PhasedCommandHooks';
4
+ import type { Subspace } from '../api/Subspace';
4
5
  /**
5
6
  * Information about the currently executing command provided to plugins.
6
7
  * @beta
@@ -57,7 +58,11 @@ export declare class RushLifecycleHooks {
57
58
  /**
58
59
  * The hook to run between preparing the common/temp folder and invoking the package manager during "rush install" or "rush update".
59
60
  */
60
- readonly beforeInstall: AsyncSeriesHook<IGlobalCommand>;
61
+ readonly beforeInstall: AsyncSeriesHook<[IGlobalCommand, Subspace]>;
62
+ /**
63
+ * The hook to run after a successful install.
64
+ */
65
+ readonly afterInstall: AsyncSeriesHook<[IRushCommand, Subspace]>;
61
66
  /**
62
67
  * A hook to allow plugins to hook custom logic to process telemetry data.
63
68
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rushstack/rush-sdk",
3
- "version": "5.132.0",
3
+ "version": "5.133.0",
4
4
  "description": "An API for interacting with the Rush engine",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,20 +36,20 @@
36
36
  "@types/node-fetch": "2.6.2",
37
37
  "tapable": "2.2.1",
38
38
  "@rushstack/lookup-by-path": "0.1.2",
39
- "@rushstack/terminal": "0.14.0",
40
- "@rushstack/node-core-library": "5.7.0"
39
+ "@rushstack/node-core-library": "5.7.0",
40
+ "@rushstack/terminal": "0.14.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/semver": "7.5.0",
44
44
  "@types/webpack-env": "1.18.0",
45
45
  "webpack": "~5.82.1",
46
- "@microsoft/rush-lib": "5.132.0",
47
- "@rushstack/heft": "0.67.0",
48
- "local-node-rig": "1.0.0",
46
+ "@microsoft/rush-lib": "5.133.0",
49
47
  "@rushstack/heft-webpack5-plugin": "0.10.9",
48
+ "@rushstack/heft": "0.67.0",
50
49
  "@rushstack/ts-command-line": "4.22.6",
51
- "@rushstack/webpack-preserve-dynamic-require-plugin": "0.11.64",
52
- "@rushstack/stream-collator": "4.1.65"
50
+ "local-node-rig": "1.0.0",
51
+ "@rushstack/stream-collator": "4.1.65",
52
+ "@rushstack/webpack-preserve-dynamic-require-plugin": "0.11.64"
53
53
  },
54
54
  "scripts": {
55
55
  "build": "heft build --clean",
@@ -1,49 +0,0 @@
1
- /// <reference types="node" />
2
- import * as fetch from 'node-fetch';
3
- /**
4
- * For use with {@link WebClient}.
5
- */
6
- export type WebClientResponse = fetch.Response;
7
- /**
8
- * For use with {@link WebClient}.
9
- */
10
- export interface IWebFetchOptionsBase {
11
- timeoutMs?: number;
12
- verb?: 'GET' | 'PUT';
13
- headers?: fetch.Headers;
14
- }
15
- /**
16
- * For use with {@link WebClient}.
17
- */
18
- export interface IGetFetchOptions extends IWebFetchOptionsBase {
19
- verb: 'GET' | never;
20
- }
21
- /**
22
- * For use with {@link WebClient}.
23
- */
24
- export interface IPutFetchOptions extends IWebFetchOptionsBase {
25
- verb: 'PUT';
26
- body?: Buffer;
27
- }
28
- /**
29
- * For use with {@link WebClient}.
30
- */
31
- export declare enum WebClientProxy {
32
- None = 0,
33
- Detect = 1,
34
- Fiddler = 2
35
- }
36
- /**
37
- * A helper for issuing HTTP requests.
38
- */
39
- export declare class WebClient {
40
- readonly standardHeaders: fetch.Headers;
41
- accept: string | undefined;
42
- userAgent: string | undefined;
43
- proxy: WebClientProxy;
44
- constructor();
45
- static mergeHeaders(target: fetch.Headers, source: fetch.Headers): void;
46
- addBasicAuthHeader(userName: string, password: string): void;
47
- fetchAsync(url: string, options?: IGetFetchOptions | IPutFetchOptions): Promise<WebClientResponse>;
48
- }
49
- //# sourceMappingURL=WebClient.d.ts.map
@@ -1 +0,0 @@
1
- module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("utilities/WebClient");