@rushstack/rush-sdk 5.76.0 → 5.77.1

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 +90 -17
  2. package/package.json +7 -7
@@ -517,12 +517,12 @@ export declare enum EnvironmentVariableNames {
517
517
  */
518
518
  RUSH_GLOBAL_FOLDER = "RUSH_GLOBAL_FOLDER",
519
519
  /**
520
- * Provides a credential for a remote build cache, if configured. Setting this environment variable
521
- * overrides whatever credential has been saved in the local cloud cache credentials using
522
- * `rush update-cloud-credentials`.
520
+ * Provides a credential for a remote build cache, if configured. This credential overrides any cached credentials.
523
521
  *
524
522
  * @remarks
525
- * This credential overrides any cached credentials.
523
+ * Setting this environment variable overrides whatever credential has been saved in the
524
+ * local cloud cache credentials using `rush update-cloud-credentials`.
525
+ *
526
526
  *
527
527
  * If Azure Blob Storage is used to store cache entries, this must be a SAS token serialized as query
528
528
  * parameters.
@@ -532,22 +532,28 @@ export declare enum EnvironmentVariableNames {
532
532
  RUSH_BUILD_CACHE_CREDENTIAL = "RUSH_BUILD_CACHE_CREDENTIAL",
533
533
  /**
534
534
  * Setting this environment variable overrides the value of `buildCacheEnabled` in the `build-cache.json`
535
- * configuration file. Specify `1` to enable the build cache or `0` to disable it.
535
+ * configuration file.
536
+ *
537
+ * @remarks
538
+ * Specify `1` to enable the build cache or `0` to disable it.
536
539
  *
537
540
  * If set to `0`, this is equivalent to passing the `--disable-build-cache` flag.
541
+ *
542
+ * If there is no build cache configured, then this environment variable is ignored.
538
543
  */
539
544
  RUSH_BUILD_CACHE_ENABLED = "RUSH_BUILD_CACHE_ENABLED",
540
545
  /**
541
- * Setting this environment variable overrides the value of `isCacheWriteAllowed` in the `build-cache.json`
542
- * configuration file. Specify `1` to allow cache write and `0` to disable it.
546
+ * Overrides the value of `isCacheWriteAllowed` in the `build-cache.json` configuration file. The value of this
547
+ * environment variable must be `1` (for true) or `0` (for false). If there is no build cache configured, then
548
+ * this environment variable is ignored.
543
549
  */
544
550
  RUSH_BUILD_CACHE_WRITE_ALLOWED = "RUSH_BUILD_CACHE_WRITE_ALLOWED",
545
551
  /**
546
- * Allows the git binary path to be explicitly specified.
552
+ * Explicitly specifies the path for the Git binary that is invoked by certain Rush operations.
547
553
  */
548
554
  RUSH_GIT_BINARY_PATH = "RUSH_GIT_BINARY_PATH",
549
555
  /**
550
- * Allows the tar binary path to be explicitly specified.
556
+ * Explicitly specifies the path for the `tar` binary that is invoked by certain Rush operations.
551
557
  */
552
558
  RUSH_TAR_BINARY_PATH = "RUSH_TAR_BINARY_PATH",
553
559
  /**
@@ -1440,7 +1446,7 @@ export declare interface IStopwatchResult {
1440
1446
  export declare interface ITelemetryData {
1441
1447
  /**
1442
1448
  * Command name
1443
- * @example 'build'
1449
+ * @example `"build"`
1444
1450
  */
1445
1451
  readonly name: string;
1446
1452
  /**
@@ -1452,25 +1458,86 @@ export declare interface ITelemetryData {
1452
1458
  */
1453
1459
  readonly result: 'Succeeded' | 'Failed';
1454
1460
  /**
1455
- * The timestamp of the telemetry logging
1461
+ * The millisecond-resolution timestamp of the telemetry logging
1456
1462
  * @example 1648001893024
1457
1463
  */
1458
- readonly timestamp?: number;
1464
+ readonly timestampMs?: number;
1459
1465
  /**
1460
- * The platform the command was executed on, reads from process.platform
1461
- * @example darwin, win32, linux...
1466
+ * The platform the command was executed on, based on the Node.js `process.platform()` API
1467
+ * @example `"darwin"`, `"win32"`, `"linux"`
1462
1468
  */
1463
1469
  readonly platform?: string;
1464
1470
  /**
1465
- * The rush version
1466
- * @example 5.63.0
1471
+ * The Rush version
1472
+ * @example `5.63.0`
1467
1473
  */
1468
1474
  readonly rushVersion?: string;
1475
+ /**
1476
+ * Detailed information about the host machine.
1477
+ */
1478
+ readonly machineInfo?: ITelemetryMachineInfo;
1479
+ /**
1480
+ * Only applicable to phased commands. Provides detailed results by operation.
1481
+ * Keys are operation names, values contain result, timing information, and dependencies.
1482
+ */
1483
+ readonly operationResults?: Record<string, ITelemetryOperationResult>;
1469
1484
  readonly extraData?: {
1470
1485
  [key: string]: string | number | boolean;
1471
1486
  };
1472
1487
  }
1473
1488
 
1489
+ /**
1490
+ * @beta
1491
+ */
1492
+ export declare interface ITelemetryMachineInfo {
1493
+ /**
1494
+ * The CPU architecture
1495
+ * @example `"AMD64"`
1496
+ */
1497
+ machineArchitecture: string;
1498
+ /**
1499
+ * The CPU model
1500
+ * * @example `"AMD Ryzen 7 3700X 8-Core Processor"`
1501
+ */
1502
+ machineCpu: string;
1503
+ /**
1504
+ * The number of logical CPU cores.
1505
+ */
1506
+ machineCores: number;
1507
+ /**
1508
+ * The total amount of RAM on the machine, in MiB.
1509
+ */
1510
+ machineTotalMemoryMiB: number;
1511
+ /**
1512
+ * The amount of free RAM on the machine at the end of execution, in MiB.
1513
+ */
1514
+ machineFreeMemoryMiB: number;
1515
+ }
1516
+
1517
+ /**
1518
+ * @beta
1519
+ */
1520
+ export declare interface ITelemetryOperationResult {
1521
+ /**
1522
+ * The names of operations that this operation depends on.
1523
+ */
1524
+ dependencies: string[];
1525
+ /**
1526
+ * The status code for the operation.
1527
+ */
1528
+ result: string;
1529
+ /**
1530
+ * A timestamp in milliseconds (from `performance.now()`) when the operation started.
1531
+ * If the operation was blocked, will be `undefined`.
1532
+ */
1533
+ startTimestampMs?: number;
1534
+ /**
1535
+ * A timestamp in milliseconds (from `performance.now()`) when the operation finished.
1536
+ * If the operation was blocked, will be `undefined`.
1537
+ */
1538
+ endTimestampMs?: number;
1539
+ }
1540
+
1474
1541
  /**
1475
1542
  * Options for `RushConfiguration.tryFindRushJsonLocation`.
1476
1543
  * @public
@@ -2876,7 +2943,13 @@ export declare class RushConfigurationProject {
2876
2943
  */
2877
2944
  get isMainProject(): boolean;
2878
2945
  /**
2879
- * The set of tags applied to this project.
2946
+ * An optional set of custom tags that can be used to select this project.
2947
+ *
2948
+ * @remarks
2949
+ * For example, adding `my-custom-tag` will allow this project to be selected by the
2950
+ * command `rush list --only tag:my-custom-tag`. The tag name must be one or more words separated
2951
+ * by hyphens, where a word may contain lowercase letters, digits, and the period character.
2952
+ *
2880
2953
  * @beta
2881
2954
  */
2882
2955
  get tags(): ReadonlySet<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rushstack/rush-sdk",
3
- "version": "5.76.0",
3
+ "version": "5.77.1",
4
4
  "description": "An API for interacting with the Rush engine",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,18 +12,18 @@
12
12
  "typings": "dist/rush-lib.d.ts",
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
- "@rushstack/node-core-library": "3.50.1",
15
+ "@rushstack/node-core-library": "3.51.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.76.0",
20
+ "@microsoft/rush-lib": "5.77.1",
21
21
  "@rushstack/eslint-config": "3.0.0",
22
- "@rushstack/heft": "0.47.0",
23
- "@rushstack/heft-node-rig": "1.10.0",
24
- "@rushstack/stream-collator": "4.0.193",
22
+ "@rushstack/heft": "0.47.5",
23
+ "@rushstack/heft-node-rig": "1.10.5",
24
+ "@rushstack/stream-collator": "4.0.198",
25
25
  "@rushstack/ts-command-line": "4.12.2",
26
- "@rushstack/terminal": "0.3.62",
26
+ "@rushstack/terminal": "0.3.67",
27
27
  "@types/heft-jest": "1.0.1",
28
28
  "@types/semver": "7.3.5",
29
29
  "@types/webpack-env": "1.13.0"