@yarnpkg/plugin-pnp 3.2.0 → 4.0.0-rc.10
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/lib/PnpLinker.d.ts +1 -1
- package/lib/PnpLinker.js +7 -7
- package/package.json +11 -10
package/lib/PnpLinker.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { PnpSettings } from '@yarnpkg/pnp';
|
|
|
6
6
|
export declare class PnpLinker implements Linker {
|
|
7
7
|
protected mode: string;
|
|
8
8
|
private pnpCache;
|
|
9
|
+
getCustomDataKey(): string;
|
|
9
10
|
supportsPackage(pkg: Package, opts: MinimalLinkOptions): boolean;
|
|
10
11
|
findPackageLocation(locator: Locator, opts: LinkOptions): Promise<PortablePath>;
|
|
11
12
|
findPackageLocator(location: PortablePath, opts: LinkOptions): Promise<Locator | null>;
|
|
@@ -20,7 +21,6 @@ export declare class PnpInstaller implements Installer {
|
|
|
20
21
|
private readonly virtualTemplates;
|
|
21
22
|
private isESMLoaderRequired;
|
|
22
23
|
constructor(opts: LinkOptions);
|
|
23
|
-
getCustomDataKey(): string;
|
|
24
24
|
private customData;
|
|
25
25
|
attachCustomData(customData: any): void;
|
|
26
26
|
installPackage(pkg: Package, fetchResult: FetchResult, api: InstallPackageExtraApi): Promise<{
|
package/lib/PnpLinker.js
CHANGED
|
@@ -24,6 +24,12 @@ class PnpLinker {
|
|
|
24
24
|
this.mode = `strict`;
|
|
25
25
|
this.pnpCache = new Map();
|
|
26
26
|
}
|
|
27
|
+
getCustomDataKey() {
|
|
28
|
+
return JSON.stringify({
|
|
29
|
+
name: `PnpLinker`,
|
|
30
|
+
version: 2,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
27
33
|
supportsPackage(pkg, opts) {
|
|
28
34
|
return this.isEnabled(opts);
|
|
29
35
|
}
|
|
@@ -82,12 +88,6 @@ class PnpInstaller {
|
|
|
82
88
|
this.unpluggedPaths = new Set();
|
|
83
89
|
this.opts = opts;
|
|
84
90
|
}
|
|
85
|
-
getCustomDataKey() {
|
|
86
|
-
return JSON.stringify({
|
|
87
|
-
name: `PnpInstaller`,
|
|
88
|
-
version: 2,
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
91
|
attachCustomData(customData) {
|
|
92
92
|
this.customData = customData;
|
|
93
93
|
}
|
|
@@ -222,6 +222,7 @@ class PnpInstaller {
|
|
|
222
222
|
for (const pkg of this.opts.project.storedPackages.values())
|
|
223
223
|
if (this.opts.project.tryWorkspaceByLocator(pkg))
|
|
224
224
|
fallbackExclusionList.push({ name: core_1.structUtils.stringifyIdent(pkg), reference: pkg.reference });
|
|
225
|
+
await this.asyncActions.wait();
|
|
225
226
|
await this.finalizeInstallWithPnp({
|
|
226
227
|
dependencyTreeRoots,
|
|
227
228
|
enableTopLevelFallback,
|
|
@@ -231,7 +232,6 @@ class PnpInstaller {
|
|
|
231
232
|
packageRegistry,
|
|
232
233
|
shebang,
|
|
233
234
|
});
|
|
234
|
-
await this.asyncActions.wait();
|
|
235
235
|
return {
|
|
236
236
|
customData: this.customData,
|
|
237
237
|
};
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yarnpkg/plugin-pnp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-rc.10",
|
|
4
4
|
"license": "BSD-2-Clause",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@types/semver": "^7.1.0",
|
|
8
|
-
"@yarnpkg/fslib": "^
|
|
9
|
-
"@yarnpkg/plugin-stage": "^
|
|
10
|
-
"@yarnpkg/pnp": "^
|
|
11
|
-
"clipanion": "^3.2.0-rc.
|
|
8
|
+
"@yarnpkg/fslib": "^3.0.0-rc.10",
|
|
9
|
+
"@yarnpkg/plugin-stage": "^4.0.0-rc.10",
|
|
10
|
+
"@yarnpkg/pnp": "^4.0.0-rc.10",
|
|
11
|
+
"clipanion": "^3.2.0-rc.10",
|
|
12
12
|
"micromatch": "^4.0.2",
|
|
13
13
|
"semver": "^7.1.2",
|
|
14
14
|
"tslib": "^1.13.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@yarnpkg/cli": "^
|
|
18
|
-
"@yarnpkg/core": "^
|
|
17
|
+
"@yarnpkg/cli": "^4.0.0-rc.10",
|
|
18
|
+
"@yarnpkg/core": "^4.0.0-rc.10"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/micromatch": "^4.0.1",
|
|
22
|
-
"@yarnpkg/cli": "^
|
|
23
|
-
"@yarnpkg/core": "^
|
|
22
|
+
"@yarnpkg/cli": "^4.0.0-rc.10",
|
|
23
|
+
"@yarnpkg/core": "^4.0.0-rc.10"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
"/lib/**/*"
|
|
40
40
|
],
|
|
41
41
|
"engines": {
|
|
42
|
-
"node": ">=
|
|
42
|
+
"node": ">=14.15.0"
|
|
43
43
|
},
|
|
44
|
+
"stableVersion": "3.2.0",
|
|
44
45
|
"typings": "./lib/index.d.ts"
|
|
45
46
|
}
|