@rushstack/rush-sdk 5.97.0 → 5.97.1-pr3481.18

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 (53) hide show
  1. package/dist/rush-lib.d.ts +425 -29
  2. package/lib/api/CobuildConfiguration.d.ts +63 -0
  3. package/lib/api/CobuildConfiguration.js +1 -0
  4. package/lib/api/EnvironmentConfiguration.d.ts +41 -0
  5. package/lib/api/ExperimentsConfiguration.d.ts +5 -0
  6. package/lib/api/LastInstallFlag.d.ts +58 -21
  7. package/lib/api/LastLinkFlag.d.ts +3 -7
  8. package/lib/api/RushConfiguration.d.ts +52 -0
  9. package/lib/api/RushConfigurationProject.d.ts +6 -0
  10. package/lib/api/base/BaseFlag.d.ts +50 -0
  11. package/lib/api/base/BaseFlag.js +1 -0
  12. package/lib/api/packageManager/PnpmPackageManager.d.ts +14 -0
  13. package/lib/cli/actions/InstallAction.d.ts +7 -0
  14. package/lib/cli/actions/ListAction.d.ts +4 -0
  15. package/lib/cli/actions/UpdateAction.d.ts +7 -0
  16. package/lib/cli/parsing/SelectionParameterSet.d.ts +17 -3
  17. package/lib/index.d.ts +5 -2
  18. package/lib/logic/PurgeManager.d.ts +1 -0
  19. package/lib/logic/RushConstants.d.ts +15 -0
  20. package/lib/logic/base/BaseInstallManagerTypes.d.ts +23 -0
  21. package/lib/logic/buildCache/ProjectBuildCache.d.ts +5 -4
  22. package/lib/logic/cobuild/CobuildLock.d.ts +24 -0
  23. package/lib/logic/cobuild/CobuildLock.js +1 -0
  24. package/lib/logic/cobuild/ICobuildLockProvider.d.ts +46 -0
  25. package/lib/logic/cobuild/ICobuildLockProvider.js +1 -0
  26. package/lib/logic/installManager/InstallHelpers.d.ts +1 -0
  27. package/lib/logic/operations/AsyncOperationQueue.d.ts +23 -4
  28. package/lib/logic/operations/CacheableOperationPlugin.d.ts +21 -0
  29. package/lib/logic/operations/CacheableOperationPlugin.js +1 -0
  30. package/lib/logic/operations/IOperationRunner.d.ts +29 -10
  31. package/lib/logic/operations/OperationExecutionManager.d.ts +5 -0
  32. package/lib/logic/operations/OperationExecutionRecord.d.ts +7 -1
  33. package/lib/logic/operations/OperationRunnerHooks.d.ts +50 -0
  34. package/lib/logic/operations/OperationRunnerHooks.js +1 -0
  35. package/lib/logic/operations/OperationStatus.d.ts +8 -0
  36. package/lib/logic/operations/PeriodicCallback.d.ts +20 -0
  37. package/lib/logic/operations/PeriodicCallback.js +1 -0
  38. package/lib/logic/operations/ShellOperationRunner.d.ts +4 -13
  39. package/lib/logic/pnpm/IPnpmfile.d.ts +16 -0
  40. package/lib/logic/pnpm/PnpmProjectShrinkwrapFile.d.ts +7 -0
  41. package/lib/logic/pnpm/PnpmShrinkwrapFile.d.ts +26 -0
  42. package/lib/logic/pnpm/SplitWorkspaceGlobalPnpmfileShim.d.ts +3 -0
  43. package/lib/logic/pnpm/SplitWorkspaceGlobalPnpmfileShim.js +1 -0
  44. package/lib/logic/pnpm/SplitWorkspacePnpmfileConfiguration.d.ts +23 -0
  45. package/lib/logic/pnpm/SplitWorkspacePnpmfileConfiguration.js +1 -0
  46. package/lib/logic/selectors/SplitWorkspaceProjectSelectorParser.d.ts +10 -0
  47. package/lib/logic/selectors/SplitWorkspaceProjectSelectorParser.js +1 -0
  48. package/lib/logic/versionMismatch/VersionMismatchFinderProject.d.ts +2 -0
  49. package/lib/pluginFramework/PhasedCommandHooks.d.ts +15 -1
  50. package/lib/pluginFramework/RushSession.d.ts +11 -2
  51. package/lib/utilities/PathConstants.d.ts +1 -0
  52. package/lib/utilities/npmrcUtilities.d.ts +1 -1
  53. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/pnpm/SplitWorkspacePnpmfileConfiguration");
@@ -0,0 +1,10 @@
1
+ import type { RushConfiguration } from '../../api/RushConfiguration';
2
+ import type { RushConfigurationProject } from '../../api/RushConfigurationProject';
3
+ import type { IEvaluateSelectorOptions, ISelectorParser } from './ISelectorParser';
4
+ export declare class SplitWorkspaceProjectSelectorParser implements ISelectorParser<RushConfigurationProject> {
5
+ private readonly _rushConfiguration;
6
+ constructor(rushConfiguration: RushConfiguration);
7
+ evaluateSelectorAsync({ unscopedSelector, terminal, parameterName }: IEvaluateSelectorOptions): Promise<Iterable<RushConfigurationProject>>;
8
+ getCompletions(): Iterable<string>;
9
+ }
10
+ //# sourceMappingURL=SplitWorkspaceProjectSelectorParser.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/selectors/SplitWorkspaceProjectSelectorParser");
@@ -4,8 +4,10 @@ import { RushConfigurationProject } from '../../api/RushConfigurationProject';
4
4
  export declare class VersionMismatchFinderProject extends VersionMismatchFinderEntity {
5
5
  packageName: string;
6
6
  private _fileManager;
7
+ private _project;
7
8
  constructor(project: RushConfigurationProject);
8
9
  get filePath(): string;
10
+ get project(): RushConfigurationProject;
9
11
  get allDependencies(): ReadonlyArray<PackageJsonDependency>;
10
12
  tryGetDependency(packageName: string): PackageJsonDependency | undefined;
11
13
  tryGetDevDependency(packageName: string): PackageJsonDependency | undefined;
@@ -6,7 +6,9 @@ import type { RushConfiguration } from '../api/RushConfiguration';
6
6
  import type { RushConfigurationProject } from '../api/RushConfigurationProject';
7
7
  import type { Operation } from '../logic/operations/Operation';
8
8
  import type { ProjectChangeAnalyzer } from '../logic/ProjectChangeAnalyzer';
9
- import { IExecutionResult, IOperationExecutionResult } from '../logic/operations/IOperationExecutionResult';
9
+ import type { IExecutionResult, IOperationExecutionResult } from '../logic/operations/IOperationExecutionResult';
10
+ import type { CobuildConfiguration } from '../api/CobuildConfiguration';
11
+ import type { IOperationRunnerContext } from '../logic/operations/IOperationRunner';
10
12
  /**
11
13
  * A plugin that interacts with a phased commands.
12
14
  * @alpha
@@ -26,6 +28,10 @@ export interface ICreateOperationsContext {
26
28
  * The configuration for the build cache, if the feature is enabled.
27
29
  */
28
30
  readonly buildCacheConfiguration: BuildCacheConfiguration | undefined;
31
+ /**
32
+ * The configuration for the cobuild, if cobuild feature and build cache feature are both enabled.
33
+ */
34
+ readonly cobuildConfiguration: CobuildConfiguration | undefined;
29
35
  /**
30
36
  * The set of custom parameters for the executing command.
31
37
  * Maps from the `longName` field in command-line.json to the parser configuration in ts-command-line.
@@ -97,6 +103,14 @@ export declare class PhasedCommandHooks {
97
103
  * Hook is series for stable output.
98
104
  */
99
105
  readonly afterExecuteOperations: AsyncSeriesHook<[IExecutionResult, ICreateOperationsContext]>;
106
+ /**
107
+ * Hook invoked before executing a operation.
108
+ */
109
+ readonly beforeExecuteOperation: AsyncSeriesHook<[IOperationRunnerContext]>;
110
+ /**
111
+ * Hook invoked after executing a operation.
112
+ */
113
+ readonly afterExecuteOperation: AsyncSeriesHook<[IOperationRunnerContext]>;
100
114
  /**
101
115
  * Hook invoked after a run has finished and the command is watching for changes.
102
116
  * May be used to display additional relevant data to the user.
@@ -1,8 +1,10 @@
1
1
  import { ITerminalProvider } from '@rushstack/node-core-library';
2
- import { IBuildCacheJson } from '../api/BuildCacheConfiguration';
3
- import { ICloudBuildCacheProvider } from '../logic/buildCache/ICloudBuildCacheProvider';
4
2
  import { ILogger } from './logging/Logger';
5
3
  import { RushLifecycleHooks } from './RushLifeCycle';
4
+ import type { IBuildCacheJson } from '../api/BuildCacheConfiguration';
5
+ import type { ICloudBuildCacheProvider } from '../logic/buildCache/ICloudBuildCacheProvider';
6
+ import type { ICobuildJson } from '../api/CobuildConfiguration';
7
+ import type { ICobuildLockProvider } from '../logic/cobuild/ICobuildLockProvider';
6
8
  /**
7
9
  * @beta
8
10
  */
@@ -14,17 +16,24 @@ export interface IRushSessionOptions {
14
16
  * @beta
15
17
  */
16
18
  export declare type CloudBuildCacheProviderFactory = (buildCacheJson: IBuildCacheJson) => ICloudBuildCacheProvider;
19
+ /**
20
+ * @beta
21
+ */
22
+ export declare type CobuildLockProviderFactory = (cobuildJson: ICobuildJson) => ICobuildLockProvider;
17
23
  /**
18
24
  * @beta
19
25
  */
20
26
  export declare class RushSession {
21
27
  private readonly _options;
22
28
  private readonly _cloudBuildCacheProviderFactories;
29
+ private readonly _cobuildLockProviderFactories;
23
30
  readonly hooks: RushLifecycleHooks;
24
31
  constructor(options: IRushSessionOptions);
25
32
  getLogger(name: string): ILogger;
26
33
  get terminalProvider(): ITerminalProvider;
27
34
  registerCloudBuildCacheProviderFactory(cacheProviderName: string, factory: CloudBuildCacheProviderFactory): void;
28
35
  getCloudBuildCacheProviderFactory(cacheProviderName: string): CloudBuildCacheProviderFactory | undefined;
36
+ registerCobuildLockProviderFactory(cobuildLockProviderName: string, factory: CobuildLockProviderFactory): void;
37
+ getCobuildLockProviderFactory(cobuildLockProviderName: string): CobuildLockProviderFactory | undefined;
29
38
  }
30
39
  //# sourceMappingURL=RushSession.d.ts.map
@@ -11,6 +11,7 @@ export declare const assetsFolderPath: string;
11
11
  */
12
12
  export declare const scriptsFolderName: string;
13
13
  export declare const pnpmfileShimFilename: string;
14
+ export declare const splitWorkspacePnpmfileShimFilename: string;
14
15
  export declare const installRunScriptFilename: string;
15
16
  export declare const installRunRushScriptFilename: string;
16
17
  export declare const installRunRushxScriptFilename: string;
@@ -11,5 +11,5 @@ export interface ILogger {
11
11
  * @returns
12
12
  * The text of the the synced .npmrc, if one exists. If one does not exist, then undefined is returned.
13
13
  */
14
- export declare function syncNpmrc(sourceNpmrcFolder: string, targetNpmrcFolder: string, useNpmrcPublish?: boolean, logger?: ILogger): string | undefined;
14
+ export declare function syncNpmrc(sourceNpmrcFolder: string, targetNpmrcFolder: string, useNpmrcPublish?: boolean, sourceNpmrcFilename?: string, logger?: ILogger): string | undefined;
15
15
  //# sourceMappingURL=npmrcUtilities.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rushstack/rush-sdk",
3
- "version": "5.97.0",
3
+ "version": "5.97.1-pr3481.18",
4
4
  "description": "An API for interacting with the Rush engine",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,7 +20,7 @@
20
20
  "@types/heft-jest": "1.0.1",
21
21
  "@types/semver": "7.3.5",
22
22
  "@types/webpack-env": "1.18.0",
23
- "@microsoft/rush-lib": "5.97.0",
23
+ "@microsoft/rush-lib": "5.97.1-pr3481.18",
24
24
  "@rushstack/eslint-config": "3.2.0",
25
25
  "@rushstack/heft": "0.50.0",
26
26
  "@rushstack/heft-node-rig": "1.12.6",