@pnpm/installing.linking.hoist 1100.0.21 → 1100.0.22
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/CHANGELOG.md +13 -0
- package/lib/index.d.ts +71 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @pnpm/hoist
|
|
2
2
|
|
|
3
|
+
## 1100.0.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Republished every package: the tarballs published by the v11.13.1 through v11.16.0 releases were missing most of their compiled files due to a packing bug [#13164](https://github.com/pnpm/pnpm/issues/13164).
|
|
8
|
+
|
|
9
|
+
- Updated dependencies:
|
|
10
|
+
- @pnpm/bins.linker@1100.0.22
|
|
11
|
+
- @pnpm/config.matcher@1100.0.2
|
|
12
|
+
- @pnpm/constants@1100.0.1
|
|
13
|
+
- @pnpm/core-loggers@1100.2.5
|
|
14
|
+
- @pnpm/types@1101.6.0
|
|
15
|
+
|
|
3
16
|
## 1100.0.21
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { DependenciesField, DepPath, HoistedDependencies, ProjectId } from '@pnpm/types';
|
|
2
|
+
export interface DependenciesGraphNode<T extends string> {
|
|
3
|
+
dir: string;
|
|
4
|
+
children: Record<string, T>;
|
|
5
|
+
optionalDependencies: Set<string>;
|
|
6
|
+
hasBin: boolean;
|
|
7
|
+
name: string;
|
|
8
|
+
depPath: DepPath;
|
|
9
|
+
}
|
|
10
|
+
export type DependenciesGraph<T extends string> = Record<T, DependenciesGraphNode<T>>;
|
|
11
|
+
export interface DirectDependenciesByImporterId<T extends string> {
|
|
12
|
+
[importerId: string]: Map<string, T>;
|
|
13
|
+
}
|
|
14
|
+
export interface HoistOpts<T extends string> extends GetHoistedDependenciesOpts<T> {
|
|
15
|
+
extraNodePath?: string[];
|
|
16
|
+
preferSymlinkedExecutables?: boolean;
|
|
17
|
+
virtualStoreDir: string;
|
|
18
|
+
virtualStoreDirMaxLength: number;
|
|
19
|
+
}
|
|
20
|
+
export declare function hoist<T extends string>(opts: HoistOpts<T>): Promise<HoistedDependencies | null>;
|
|
21
|
+
export interface GetHoistedDependenciesOpts<T extends string> {
|
|
22
|
+
graph: DependenciesGraph<T>;
|
|
23
|
+
skipped: Set<DepPath>;
|
|
24
|
+
directDepsByImporterId: DirectDependenciesByImporterId<T>;
|
|
25
|
+
importerIds?: ProjectId[];
|
|
26
|
+
privateHoistPattern: string[];
|
|
27
|
+
privateHoistedModulesDir: string;
|
|
28
|
+
publicHoistPattern: string[];
|
|
29
|
+
publicHoistedModulesDir: string;
|
|
30
|
+
hoistedWorkspacePackages?: Record<ProjectId, HoistedWorkspaceProject>;
|
|
31
|
+
}
|
|
32
|
+
export interface HoistedWorkspaceProject {
|
|
33
|
+
name: string;
|
|
34
|
+
dir: string;
|
|
35
|
+
}
|
|
36
|
+
export declare function getHoistedDependencies<T extends string>(opts: GetHoistedDependenciesOpts<T>): HoistGraphResult<T> | null;
|
|
37
|
+
export interface Dependency<T extends string> {
|
|
38
|
+
children: Record<string, T | ProjectId>;
|
|
39
|
+
nodeId: T;
|
|
40
|
+
depth: number;
|
|
41
|
+
}
|
|
42
|
+
interface HoistGraphResult<T extends string> {
|
|
43
|
+
hoistedDependencies: HoistedDependencies;
|
|
44
|
+
hoistedDependenciesByNodeId: HoistedDependenciesByNodeId<T>;
|
|
45
|
+
hoistedAliasesWithBins: string[];
|
|
46
|
+
}
|
|
47
|
+
type HoistedDependenciesByNodeId<T extends string> = Map<T | ProjectId, Record<string, 'public' | 'private'>>;
|
|
48
|
+
export declare function graphWalker<T extends string>(graph: DependenciesGraph<T>, directDepsByImporterId: DirectDependenciesByImporterId<T>, opts?: {
|
|
49
|
+
include?: {
|
|
50
|
+
[dependenciesField in DependenciesField]: boolean;
|
|
51
|
+
};
|
|
52
|
+
skipped?: Set<DepPath>;
|
|
53
|
+
}): GraphWalker<T>;
|
|
54
|
+
export interface GraphWalker<T extends string> {
|
|
55
|
+
directDeps: Array<{
|
|
56
|
+
alias: string;
|
|
57
|
+
nodeId: T;
|
|
58
|
+
}>;
|
|
59
|
+
step: GraphWalkerStep<T>;
|
|
60
|
+
}
|
|
61
|
+
export interface GraphWalkerStep<T extends string> {
|
|
62
|
+
dependencies: Array<GraphDependency<T>>;
|
|
63
|
+
links: string[];
|
|
64
|
+
missing: string[];
|
|
65
|
+
}
|
|
66
|
+
export interface GraphDependency<T extends string> {
|
|
67
|
+
nodeId: T;
|
|
68
|
+
node: DependenciesGraphNode<T>;
|
|
69
|
+
next: () => GraphWalkerStep<T>;
|
|
70
|
+
}
|
|
71
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/installing.linking.hoist",
|
|
3
|
-
"version": "1100.0.
|
|
3
|
+
"version": "1100.0.22",
|
|
4
4
|
"description": "Hoists dependencies in a node_modules created by pnpm",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"test": "test"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@pnpm/bins.linker": "1100.0.
|
|
34
|
-
"@pnpm/config.matcher": "1100.0.
|
|
35
|
-
"@pnpm/constants": "1100.0.
|
|
36
|
-
"@pnpm/core-loggers": "1100.2.
|
|
37
|
-
"@pnpm/types": "1101.
|
|
33
|
+
"@pnpm/bins.linker": "1100.0.22",
|
|
34
|
+
"@pnpm/config.matcher": "1100.0.2",
|
|
35
|
+
"@pnpm/constants": "1100.0.1",
|
|
36
|
+
"@pnpm/core-loggers": "1100.2.5",
|
|
37
|
+
"@pnpm/types": "1101.6.0",
|
|
38
38
|
"@pnpm/util.lex-comparator": "^4.0.1",
|
|
39
39
|
"is-subdir": "^2.0.0",
|
|
40
40
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@pnpm/logger": "^1100.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@pnpm/installing.linking.hoist": "1100.0.
|
|
48
|
+
"@pnpm/installing.linking.hoist": "1100.0.22",
|
|
49
49
|
"@pnpm/logger": "1100.0.0",
|
|
50
50
|
"@types/ramda": "0.31.1"
|
|
51
51
|
},
|