@rushstack/rush-sdk 5.143.0-pr5009.1 → 5.143.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.
|
@@ -8,11 +8,6 @@ import type { RushConfigurationProject } from '../../api/RushConfigurationProjec
|
|
|
8
8
|
import { PnpmProjectShrinkwrapFile } from './PnpmProjectShrinkwrapFile';
|
|
9
9
|
import type { PackageManagerOptionsConfigurationBase } from '../base/BasePackageManagerOptionsConfiguration';
|
|
10
10
|
import type { Subspace } from '../../api/Subspace';
|
|
11
|
-
import type { Lockfile, PackageSnapshot, ProjectSnapshot } from '@pnpm/lockfile.types';
|
|
12
|
-
export declare enum ShrinkwrapFileMajorVersion {
|
|
13
|
-
V6 = 6,
|
|
14
|
-
V9 = 9
|
|
15
|
-
}
|
|
16
11
|
export interface IPeerDependenciesMetaYaml {
|
|
17
12
|
optional?: boolean;
|
|
18
13
|
}
|
|
@@ -24,10 +19,10 @@ export interface IPnpmV8VersionSpecifier {
|
|
|
24
19
|
version: string;
|
|
25
20
|
specifier: string;
|
|
26
21
|
}
|
|
27
|
-
export type
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
resolution
|
|
22
|
+
export type IPnpmVersionSpecifier = IPnpmV7VersionSpecifier | IPnpmV8VersionSpecifier;
|
|
23
|
+
export interface IPnpmShrinkwrapDependencyYaml {
|
|
24
|
+
/** Information about the resolved package */
|
|
25
|
+
resolution?: {
|
|
31
26
|
/** The directory this package should clone, for injected dependencies */
|
|
32
27
|
directory?: string;
|
|
33
28
|
/** The hash of the tarball, to ensure archive integrity */
|
|
@@ -35,51 +30,101 @@ export interface IPnpmShrinkwrapDependencyYaml extends Omit<PackageSnapshot, 're
|
|
|
35
30
|
/** The name of the tarball, if this was from a TGZ file */
|
|
36
31
|
tarball?: string;
|
|
37
32
|
};
|
|
33
|
+
/** The list of bundled dependencies in this package */
|
|
34
|
+
bundledDependencies?: ReadonlyArray<string>;
|
|
35
|
+
/** The list of dependencies and the resolved version */
|
|
36
|
+
dependencies?: Record<string, IPnpmVersionSpecifier>;
|
|
37
|
+
/** The list of optional dependencies and the resolved version */
|
|
38
|
+
optionalDependencies?: Record<string, IPnpmVersionSpecifier>;
|
|
39
|
+
/** The list of peer dependencies and the resolved version */
|
|
40
|
+
peerDependencies?: Record<string, IPnpmVersionSpecifier>;
|
|
41
|
+
/**
|
|
42
|
+
* Used to indicate optional peer dependencies, as described in this RFC:
|
|
43
|
+
* https://github.com/yarnpkg/rfcs/blob/master/accepted/0000-optional-peer-dependencies.md
|
|
44
|
+
*/
|
|
45
|
+
peerDependenciesMeta?: Record<string, IPeerDependenciesMetaYaml>;
|
|
46
|
+
/** The name of the package, if the package is a local tarball */
|
|
47
|
+
name?: string;
|
|
48
|
+
/** If this is an optional dependency */
|
|
49
|
+
optional?: boolean;
|
|
50
|
+
/** The values of process.platform supported by this package */
|
|
51
|
+
os?: readonly string[];
|
|
52
|
+
/** The values of process.arch supported by this package */
|
|
53
|
+
cpu?: readonly string[];
|
|
54
|
+
/** The libc runtimes supported by this package */
|
|
55
|
+
libc?: readonly string[];
|
|
38
56
|
}
|
|
39
|
-
export
|
|
40
|
-
|
|
57
|
+
export interface IPnpmShrinkwrapImporterYaml {
|
|
58
|
+
/** The list of resolved version numbers for direct dependencies */
|
|
59
|
+
dependencies?: Record<string, IPnpmVersionSpecifier>;
|
|
60
|
+
/** The list of resolved version numbers for dev dependencies */
|
|
61
|
+
devDependencies?: Record<string, IPnpmVersionSpecifier>;
|
|
62
|
+
/** The list of resolved version numbers for optional dependencies */
|
|
63
|
+
optionalDependencies?: Record<string, IPnpmVersionSpecifier>;
|
|
64
|
+
/** The list of metadata for dependencies declared inside dependencies, optionalDependencies, and devDependencies. */
|
|
65
|
+
dependenciesMeta?: Record<string, IDependenciesMetaYaml>;
|
|
41
66
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* "@rush-temp/project1": "file:./projects/project1.tgz"
|
|
47
|
-
* },
|
|
48
|
-
* "packages": {
|
|
49
|
-
* "file:projects/library1.tgz": {
|
|
50
|
-
* "dependencies: {
|
|
51
|
-
* "markdown": "0.5.0"
|
|
52
|
-
* },
|
|
53
|
-
* "name": "@rush-temp/library1",
|
|
54
|
-
* "resolution": {
|
|
55
|
-
* "tarball": "file:projects/library1.tgz"
|
|
56
|
-
* },
|
|
57
|
-
* "version": "0.0.0"
|
|
58
|
-
* },
|
|
59
|
-
* "markdown/0.5.0": {
|
|
60
|
-
* "resolution": {
|
|
61
|
-
* "integrity": "sha1-KCBbVlqK51kt4gdGPWY33BgnIrI="
|
|
62
|
-
* }
|
|
63
|
-
* }
|
|
64
|
-
* },
|
|
65
|
-
* "registry": "http://localhost:4873/",
|
|
66
|
-
* "shrinkwrapVersion": 3,
|
|
67
|
-
* "specifiers": {
|
|
68
|
-
* "@rush-temp/project1": "file:./projects/project1.tgz"
|
|
69
|
-
* }
|
|
70
|
-
* }
|
|
67
|
+
* The list of specifiers used to resolve dependency versions
|
|
68
|
+
*
|
|
69
|
+
* @remarks
|
|
70
|
+
* This has been removed in PNPM v8
|
|
71
71
|
*/
|
|
72
|
+
specifiers?: Record<string, IPnpmVersionSpecifier>;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* This interface represents the raw pnpm-lock.YAML file
|
|
76
|
+
* Example:
|
|
77
|
+
* {
|
|
78
|
+
* "dependencies": {
|
|
79
|
+
* "@rush-temp/project1": "file:./projects/project1.tgz"
|
|
80
|
+
* },
|
|
81
|
+
* "packages": {
|
|
82
|
+
* "file:projects/library1.tgz": {
|
|
83
|
+
* "dependencies: {
|
|
84
|
+
* "markdown": "0.5.0"
|
|
85
|
+
* },
|
|
86
|
+
* "name": "@rush-temp/library1",
|
|
87
|
+
* "resolution": {
|
|
88
|
+
* "tarball": "file:projects/library1.tgz"
|
|
89
|
+
* },
|
|
90
|
+
* "version": "0.0.0"
|
|
91
|
+
* },
|
|
92
|
+
* "markdown/0.5.0": {
|
|
93
|
+
* "resolution": {
|
|
94
|
+
* "integrity": "sha1-KCBbVlqK51kt4gdGPWY33BgnIrI="
|
|
95
|
+
* }
|
|
96
|
+
* }
|
|
97
|
+
* },
|
|
98
|
+
* "registry": "http://localhost:4873/",
|
|
99
|
+
* "shrinkwrapVersion": 3,
|
|
100
|
+
* "specifiers": {
|
|
101
|
+
* "@rush-temp/project1": "file:./projects/project1.tgz"
|
|
102
|
+
* }
|
|
103
|
+
* }
|
|
104
|
+
*/
|
|
105
|
+
export interface IPnpmShrinkwrapYaml {
|
|
106
|
+
/** The version of the lockfile format */
|
|
107
|
+
lockfileVersion?: string | number;
|
|
72
108
|
/** The list of resolved version numbers for direct dependencies */
|
|
73
|
-
dependencies
|
|
74
|
-
/** The list of
|
|
75
|
-
|
|
109
|
+
dependencies: Record<string, string>;
|
|
110
|
+
/** The list of importers for local workspace projects */
|
|
111
|
+
importers: Record<string, IPnpmShrinkwrapImporterYaml>;
|
|
112
|
+
/** The description of the solved graph */
|
|
113
|
+
packages: Record<string, IPnpmShrinkwrapDependencyYaml>;
|
|
76
114
|
/** URL of the registry which was used */
|
|
77
|
-
registry
|
|
115
|
+
registry: string;
|
|
116
|
+
/** The list of specifiers used to resolve direct dependency versions */
|
|
117
|
+
specifiers: Record<string, string>;
|
|
118
|
+
/** The list of override version number for dependencies */
|
|
119
|
+
overrides?: {
|
|
120
|
+
[dependency: string]: string;
|
|
121
|
+
};
|
|
122
|
+
/** The checksum of package extensions fields for extending dependencies */
|
|
123
|
+
packageExtensionsChecksum?: string;
|
|
78
124
|
}
|
|
79
125
|
export interface ILoadFromFileOptions {
|
|
80
126
|
withCaching?: boolean;
|
|
81
127
|
}
|
|
82
|
-
export declare function parsePnpm9DependencyKey(dependencyName: string, versionSpecifier: IPnpmVersionSpecifier): DependencySpecifier | undefined;
|
|
83
128
|
/**
|
|
84
129
|
* Given an encoded "dependency key" from the PNPM shrinkwrap file, this parses it into an equivalent
|
|
85
130
|
* DependencySpecifier.
|
|
@@ -103,7 +148,6 @@ export declare class PnpmShrinkwrapFile extends BaseShrinkwrapFile {
|
|
|
103
148
|
private readonly _integrities;
|
|
104
149
|
private _pnpmfileConfiguration;
|
|
105
150
|
private constructor();
|
|
106
|
-
static getLockfileV9PackageId(name: string, version: string): string;
|
|
107
151
|
static loadFromFile(shrinkwrapYamlFilePath: string, { withCaching }?: ILoadFromFileOptions): PnpmShrinkwrapFile | undefined;
|
|
108
152
|
static loadFromString(shrinkwrapContent: string): PnpmShrinkwrapFile;
|
|
109
153
|
getShrinkwrapHash(experimentsConfig?: IExperimentsJson): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/rush-sdk",
|
|
3
|
-
"version": "5.143.0
|
|
3
|
+
"version": "5.143.0",
|
|
4
4
|
"description": "An API for interacting with the Rush engine",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,25 +33,24 @@
|
|
|
33
33
|
},
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@pnpm/lockfile.types": "~1.0.3",
|
|
37
36
|
"@types/node-fetch": "2.6.2",
|
|
38
37
|
"tapable": "2.2.1",
|
|
39
38
|
"@rushstack/lookup-by-path": "0.4.5",
|
|
40
|
-
"@rushstack/package-deps-hash": "4.2.10",
|
|
41
39
|
"@rushstack/node-core-library": "5.10.0",
|
|
40
|
+
"@rushstack/package-deps-hash": "4.2.10",
|
|
42
41
|
"@rushstack/terminal": "0.14.3"
|
|
43
42
|
},
|
|
44
43
|
"devDependencies": {
|
|
45
44
|
"@types/semver": "7.5.0",
|
|
46
45
|
"@types/webpack-env": "1.18.0",
|
|
47
46
|
"webpack": "~5.95.0",
|
|
48
|
-
"@microsoft/rush-lib": "5.143.0
|
|
47
|
+
"@microsoft/rush-lib": "5.143.0",
|
|
49
48
|
"@rushstack/heft": "0.68.9",
|
|
50
|
-
"local-node-rig": "1.0.0",
|
|
51
|
-
"@rushstack/stream-collator": "4.1.77",
|
|
52
49
|
"@rushstack/heft-webpack5-plugin": "0.11.7",
|
|
50
|
+
"@rushstack/stream-collator": "4.1.77",
|
|
53
51
|
"@rushstack/ts-command-line": "4.23.1",
|
|
54
|
-
"@rushstack/webpack-preserve-dynamic-require-plugin": "0.11.76"
|
|
52
|
+
"@rushstack/webpack-preserve-dynamic-require-plugin": "0.11.76",
|
|
53
|
+
"local-node-rig": "1.0.0"
|
|
55
54
|
},
|
|
56
55
|
"scripts": {
|
|
57
56
|
"build": "heft build --clean",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Lockfile, LockfileFileV9 } from '@pnpm/lockfile.types';
|
|
2
|
-
/**
|
|
3
|
-
* Convert lockfile v9 object to standard lockfile object.
|
|
4
|
-
*
|
|
5
|
-
* This function will mutate the lockfile object. It will:
|
|
6
|
-
* 1. Ensure importers['.'] exists.
|
|
7
|
-
* 2. Merge snapshots and packages into packages.
|
|
8
|
-
* 3. Extract specifier from importers['xxx'] into the specifiers field.
|
|
9
|
-
*/
|
|
10
|
-
export declare function convertLockfileV9ToLockfileObject(lockfile: LockfileFileV9): Lockfile;
|
|
11
|
-
//# sourceMappingURL=PnpmShrinkWrapFileConverters.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/pnpm/PnpmShrinkWrapFileConverters");
|