@yarnpkg/plugin-pnp 4.0.0-rc.6 → 4.0.0-rc.7
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 +6 -6
- package/package.json +8 -8
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
|
}
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yarnpkg/plugin-pnp",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.7",
|
|
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": "^3.0.0-rc.
|
|
9
|
-
"@yarnpkg/plugin-stage": "^4.0.0-rc.
|
|
10
|
-
"@yarnpkg/pnp": "^4.0.0-rc.
|
|
8
|
+
"@yarnpkg/fslib": "^3.0.0-rc.7",
|
|
9
|
+
"@yarnpkg/plugin-stage": "^4.0.0-rc.7",
|
|
10
|
+
"@yarnpkg/pnp": "^4.0.0-rc.7",
|
|
11
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": "^4.0.0-rc.
|
|
18
|
-
"@yarnpkg/core": "^4.0.0-rc.
|
|
17
|
+
"@yarnpkg/cli": "^4.0.0-rc.7",
|
|
18
|
+
"@yarnpkg/core": "^4.0.0-rc.7"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/micromatch": "^4.0.1",
|
|
22
|
-
"@yarnpkg/cli": "^4.0.0-rc.
|
|
23
|
-
"@yarnpkg/core": "^4.0.0-rc.
|
|
22
|
+
"@yarnpkg/cli": "^4.0.0-rc.7",
|
|
23
|
+
"@yarnpkg/core": "^4.0.0-rc.7"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|