@yarnpkg/plugin-pnp 4.0.5 → 4.0.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.
@@ -31,17 +31,7 @@ export declare class PnpInstaller implements Installer {
31
31
  attachExternalDependents(locator: Locator, dependentPaths: Array<PortablePath>): Promise<void>;
32
32
  finalizeInstall(): Promise<{
33
33
  customData: {
34
- store: Map<LocatorHash, {
35
- manifest: {
36
- scripts: Map<string, string>;
37
- preferUnplugged: boolean | null;
38
- type: string | null;
39
- };
40
- misc: {
41
- extractHint: boolean;
42
- hasBindingGyp: boolean;
43
- };
44
- }>;
34
+ store: Map<LocatorHash, CustomPackageData>;
45
35
  };
46
36
  } | undefined>;
47
37
  transformPnpSettings(pnpSettings: PnpSettings): Promise<void>;
@@ -55,3 +45,17 @@ export declare class PnpInstaller implements Installer {
55
45
  private getPackageInformation;
56
46
  private getDiskInformation;
57
47
  }
48
+ type UnboxPromise<T extends Promise<any>> = T extends Promise<infer U> ? U : never;
49
+ type CustomPackageData = UnboxPromise<ReturnType<typeof extractCustomPackageData>>;
50
+ declare function extractCustomPackageData(fetchResult: FetchResult): Promise<{
51
+ manifest: {
52
+ scripts: Map<string, string>;
53
+ preferUnplugged: boolean | null;
54
+ type: string | null;
55
+ };
56
+ misc: {
57
+ extractHint: boolean;
58
+ hasBindingGyp: boolean;
59
+ };
60
+ }>;
61
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { Configuration, DependencyMeta, FetchResult, Manifest, Package, BuildRequest } from '@yarnpkg/core';
2
2
  export declare function checkManifestCompatibility(pkg: Package): boolean;
3
3
  export type ExtractBuildScriptDataRequirements = {
4
- manifest: Pick<Manifest, 'scripts'>;
4
+ manifest: Pick<Manifest, `scripts`>;
5
5
  misc: {
6
6
  hasBindingGyp: boolean;
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yarnpkg/plugin-pnp",
3
- "version": "4.0.5",
3
+ "version": "4.0.7",
4
4
  "license": "BSD-2-Clause",
5
5
  "main": "./lib/index.js",
6
6
  "exports": {
@@ -8,25 +8,25 @@
8
8
  "./package.json": "./package.json"
9
9
  },
10
10
  "dependencies": {
11
- "@yarnpkg/fslib": "^3.1.0",
12
- "@yarnpkg/plugin-stage": "^4.0.0",
13
- "@yarnpkg/pnp": "^4.0.5",
11
+ "@yarnpkg/fslib": "^3.1.2",
12
+ "@yarnpkg/plugin-stage": "^4.0.1",
13
+ "@yarnpkg/pnp": "^4.0.9",
14
14
  "clipanion": "^4.0.0-rc.2",
15
15
  "micromatch": "^4.0.2",
16
16
  "tslib": "^2.4.0"
17
17
  },
18
18
  "peerDependencies": {
19
- "@yarnpkg/cli": "^4.2.2",
20
- "@yarnpkg/core": "^4.0.5"
19
+ "@yarnpkg/cli": "^4.7.0",
20
+ "@yarnpkg/core": "^4.2.1"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/micromatch": "^4.0.1",
24
- "@yarnpkg/cli": "^4.2.2",
25
- "@yarnpkg/core": "^4.0.5"
24
+ "@yarnpkg/cli": "^4.7.0",
25
+ "@yarnpkg/core": "^4.2.1"
26
26
  },
27
27
  "repository": {
28
28
  "type": "git",
29
- "url": "ssh://git@github.com/yarnpkg/berry.git",
29
+ "url": "git+https://github.com/yarnpkg/berry.git",
30
30
  "directory": "packages/plugin-pnp"
31
31
  },
32
32
  "scripts": {