@rushstack/rush-sdk 5.128.5 → 5.129.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.
- package/dist/rush-lib.d.ts +15 -0
- package/lib/api/CommonVersionsConfiguration.d.ts +5 -0
- package/lib/api/RushConfiguration.d.ts +4 -0
- package/lib/api/Subspace.d.ts +6 -0
- package/lib/api/SubspacesConfiguration.d.ts +10 -0
- package/lib/cli/actions/InitAction.d.ts +1 -5
- package/lib/cli/actions/InitSubspaceAction.d.ts +8 -0
- package/lib/cli/actions/InitSubspaceAction.js +1 -0
- package/lib/logic/versionMismatch/VersionMismatchFinder.d.ts +2 -2
- package/lib/utilities/templateUtilities.d.ts +2 -0
- package/lib/utilities/templateUtilities.js +1 -0
- package/package.json +5 -5
package/dist/rush-lib.d.ts
CHANGED
|
@@ -298,6 +298,11 @@ export declare class CommonVersionsConfiguration {
|
|
|
298
298
|
* If the value is `undefined`, then the default value is `true`.
|
|
299
299
|
*/
|
|
300
300
|
readonly implicitlyPreferredVersions: boolean | undefined;
|
|
301
|
+
/**
|
|
302
|
+
* If true, then consistent version specifiers for dependencies will be enforced.
|
|
303
|
+
* I.e. "rush check" is run before some commands.
|
|
304
|
+
*/
|
|
305
|
+
readonly ensureConsistentVersions: boolean | undefined;
|
|
301
306
|
/**
|
|
302
307
|
* A table that specifies a "preferred version" for a given NPM package. This feature is typically used
|
|
303
308
|
* to hold back an indirect dependency to a specific older version, or to reduce duplication of indirect dependencies.
|
|
@@ -3731,6 +3736,10 @@ export declare class RushConfiguration {
|
|
|
3731
3736
|
/**
|
|
3732
3737
|
* If true, then consistent version specifiers for dependencies will be enforced.
|
|
3733
3738
|
* I.e. "rush check" is run before some commands.
|
|
3739
|
+
*
|
|
3740
|
+
* @deprecated
|
|
3741
|
+
* This setting was moved from `rush.json` to `common-versions.json`.
|
|
3742
|
+
* Read it using {@link Subspace.shouldEnsureConsistentVersions} instead.
|
|
3734
3743
|
*/
|
|
3735
3744
|
readonly ensureConsistentVersions: boolean;
|
|
3736
3745
|
/**
|
|
@@ -4708,6 +4717,12 @@ export declare class Subspace {
|
|
|
4708
4717
|
* @beta
|
|
4709
4718
|
*/
|
|
4710
4719
|
getCommonVersions(): CommonVersionsConfiguration;
|
|
4720
|
+
/**
|
|
4721
|
+
* Gets the ensureConsistentVersions property from the common-versions.json config file,
|
|
4722
|
+
* or from the rush.json file if it isn't defined in common-versions.json
|
|
4723
|
+
* @beta
|
|
4724
|
+
*/
|
|
4725
|
+
get shouldEnsureConsistentVersions(): boolean;
|
|
4711
4726
|
/**
|
|
4712
4727
|
* Gets the path to the repo-state.json file.
|
|
4713
4728
|
* @beta
|
|
@@ -41,6 +41,11 @@ export declare class CommonVersionsConfiguration {
|
|
|
41
41
|
* If the value is `undefined`, then the default value is `true`.
|
|
42
42
|
*/
|
|
43
43
|
readonly implicitlyPreferredVersions: boolean | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* If true, then consistent version specifiers for dependencies will be enforced.
|
|
46
|
+
* I.e. "rush check" is run before some commands.
|
|
47
|
+
*/
|
|
48
|
+
readonly ensureConsistentVersions: boolean | undefined;
|
|
44
49
|
/**
|
|
45
50
|
* A table that specifies a "preferred version" for a given NPM package. This feature is typically used
|
|
46
51
|
* to hold back an indirect dependency to a specific older version, or to reduce duplication of indirect dependencies.
|
|
@@ -359,6 +359,10 @@ export declare class RushConfiguration {
|
|
|
359
359
|
/**
|
|
360
360
|
* If true, then consistent version specifiers for dependencies will be enforced.
|
|
361
361
|
* I.e. "rush check" is run before some commands.
|
|
362
|
+
*
|
|
363
|
+
* @deprecated
|
|
364
|
+
* This setting was moved from `rush.json` to `common-versions.json`.
|
|
365
|
+
* Read it using {@link Subspace.shouldEnsureConsistentVersions} instead.
|
|
362
366
|
*/
|
|
363
367
|
readonly ensureConsistentVersions: boolean;
|
|
364
368
|
/**
|
package/lib/api/Subspace.d.ts
CHANGED
|
@@ -93,6 +93,12 @@ export declare class Subspace {
|
|
|
93
93
|
* @beta
|
|
94
94
|
*/
|
|
95
95
|
getCommonVersions(): CommonVersionsConfiguration;
|
|
96
|
+
/**
|
|
97
|
+
* Gets the ensureConsistentVersions property from the common-versions.json config file,
|
|
98
|
+
* or from the rush.json file if it isn't defined in common-versions.json
|
|
99
|
+
* @beta
|
|
100
|
+
*/
|
|
101
|
+
get shouldEnsureConsistentVersions(): boolean;
|
|
96
102
|
/**
|
|
97
103
|
* Gets the path to the repo-state.json file.
|
|
98
104
|
* @beta
|
|
@@ -7,6 +7,16 @@ import type { RushConfiguration } from './RushConfiguration';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const SUBSPACE_NAME_REGEXP: RegExp;
|
|
9
9
|
export declare const SPLIT_WORKSPACE_SUBSPACE_NAME_REGEXP: RegExp;
|
|
10
|
+
/**
|
|
11
|
+
* This represents the JSON data structure for the "subspaces.json" configuration file.
|
|
12
|
+
* See subspace.schema.json for documentation.
|
|
13
|
+
*/
|
|
14
|
+
export interface ISubspacesConfigurationJson {
|
|
15
|
+
subspacesEnabled: boolean;
|
|
16
|
+
splitWorkspaceCompatibility?: boolean;
|
|
17
|
+
preventSelectingAllSubspaces?: boolean;
|
|
18
|
+
subspaceNames: string[];
|
|
19
|
+
}
|
|
10
20
|
/**
|
|
11
21
|
* This represents the subspace configurations for a repository, based on the "subspaces.json"
|
|
12
22
|
* configuration file.
|
|
@@ -7,11 +7,7 @@ export declare class InitAction extends BaseConfiglessRushAction {
|
|
|
7
7
|
private _commentedBySectionName;
|
|
8
8
|
constructor(parser: RushCommandLineParser);
|
|
9
9
|
protected runAsync(): Promise<void>;
|
|
10
|
-
private _defineMacroSections;
|
|
11
10
|
private _validateFolderIsEmpty;
|
|
12
|
-
private
|
|
13
|
-
private _copyTemplateFile;
|
|
14
|
-
private _isSectionCommented;
|
|
15
|
-
private _expandMacroVariable;
|
|
11
|
+
private _copyTemplateFilesAsync;
|
|
16
12
|
}
|
|
17
13
|
//# sourceMappingURL=InitAction.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RushCommandLineParser } from '../RushCommandLineParser';
|
|
2
|
+
import { BaseRushAction } from './BaseRushAction';
|
|
3
|
+
export declare class InitSubspaceAction extends BaseRushAction {
|
|
4
|
+
private readonly _subspaceNameParameter;
|
|
5
|
+
constructor(parser: RushCommandLineParser);
|
|
6
|
+
protected runAsync(): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=InitSubspaceAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("cli/actions/InitSubspaceAction");
|
|
@@ -3,12 +3,12 @@ import type { RushConfiguration } from '../../api/RushConfiguration';
|
|
|
3
3
|
import type { VersionMismatchFinderEntity } from './VersionMismatchFinderEntity';
|
|
4
4
|
import type { Subspace } from '../../api/Subspace';
|
|
5
5
|
export interface IVersionMismatchFinderOptions {
|
|
6
|
-
subspace
|
|
6
|
+
subspace: Subspace;
|
|
7
7
|
}
|
|
8
8
|
export interface IVersionMismatchFinderRushCheckOptions extends IVersionMismatchFinderOptions {
|
|
9
9
|
printAsJson?: boolean | undefined;
|
|
10
10
|
truncateLongPackageNameLists?: boolean | undefined;
|
|
11
|
-
subspace
|
|
11
|
+
subspace: Subspace;
|
|
12
12
|
}
|
|
13
13
|
export interface IVersionMismatchFinderEnsureConsistentVersionsOptions extends IVersionMismatchFinderOptions {
|
|
14
14
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("utilities/templateUtilities");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/rush-sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.129.1",
|
|
4
4
|
"description": "An API for interacting with the Rush engine",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/semver": "7.5.0",
|
|
33
33
|
"@types/webpack-env": "1.18.0",
|
|
34
|
-
"
|
|
34
|
+
"@microsoft/rush-lib": "5.129.1",
|
|
35
35
|
"@rushstack/heft": "0.66.18",
|
|
36
|
-
"
|
|
37
|
-
"@
|
|
38
|
-
"@rushstack/
|
|
36
|
+
"local-node-rig": "1.0.0",
|
|
37
|
+
"@rushstack/stream-collator": "4.1.56",
|
|
38
|
+
"@rushstack/ts-command-line": "4.22.0"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "heft build --clean",
|