@pnpm/lockfile.types 1001.1.0 → 1002.0.1
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/index.d.ts +17 -5
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/lockfileFileTypes.d.ts +1 -1
- package/package.json +5 -4
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type PatchFile } from '@pnpm/patching.types';
|
|
2
2
|
import { type DependenciesMeta, type DepPath, type ProjectId } from '@pnpm/types';
|
|
3
|
+
import { type PlatformAssetTarget } from '@pnpm/resolver-base';
|
|
3
4
|
export type { PatchFile, ProjectId };
|
|
4
|
-
export * from './lockfileFileTypes';
|
|
5
|
+
export * from './lockfileFileTypes.js';
|
|
5
6
|
export interface LockfileSettings {
|
|
6
7
|
autoInstallPeers?: boolean;
|
|
7
8
|
excludeLinksFromLockfile?: boolean;
|
|
@@ -95,12 +96,23 @@ export interface GitRepositoryResolution {
|
|
|
95
96
|
commit: string;
|
|
96
97
|
path?: string;
|
|
97
98
|
}
|
|
98
|
-
export interface
|
|
99
|
-
type: '
|
|
99
|
+
export interface BinaryResolution {
|
|
100
|
+
type: 'binary';
|
|
101
|
+
url: string;
|
|
100
102
|
integrity: string;
|
|
103
|
+
bin: string;
|
|
104
|
+
archive: 'zip' | 'tarball';
|
|
101
105
|
}
|
|
102
|
-
export
|
|
103
|
-
|
|
106
|
+
export interface PlatformAssetResolution {
|
|
107
|
+
resolution: Resolution;
|
|
108
|
+
targets: PlatformAssetTarget[];
|
|
109
|
+
}
|
|
110
|
+
export type Resolution = TarballResolution | GitRepositoryResolution | DirectoryResolution | BinaryResolution;
|
|
111
|
+
export interface VariationsResolution {
|
|
112
|
+
type: 'variations';
|
|
113
|
+
variants: PlatformAssetResolution[];
|
|
114
|
+
}
|
|
115
|
+
export type LockfileResolution = Resolution | VariationsResolution | {
|
|
104
116
|
integrity: string;
|
|
105
117
|
};
|
|
106
118
|
export type PackageSnapshot = LockfilePackageInfo & LockfilePackageSnapshot;
|
package/lib/index.js
CHANGED
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./lockfileFileTypes"), exports);
|
|
17
|
+
__exportStar(require("./lockfileFileTypes.js"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAMA,yDAAsC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type LockfileBase, type LockfilePackageInfo, type LockfilePackageSnapshot, type ProjectSnapshotBase } from '.';
|
|
1
|
+
import { type LockfileBase, type LockfilePackageInfo, type LockfilePackageSnapshot, type ProjectSnapshotBase } from './index.js';
|
|
2
2
|
export interface LockfileFile extends LockfileBase {
|
|
3
3
|
importers?: Record<string, LockfileFileProjectSnapshot>;
|
|
4
4
|
packages?: Record<string, LockfilePackageInfo>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/lockfile.types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1002.0.1",
|
|
4
4
|
"description": "Types for the pnpm-lock.yaml lockfile",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -26,11 +26,12 @@
|
|
|
26
26
|
"!*.map"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@pnpm/types": "1000.
|
|
30
|
-
"@pnpm/
|
|
29
|
+
"@pnpm/patching.types": "1000.1.0",
|
|
30
|
+
"@pnpm/resolver-base": "1005.0.1",
|
|
31
|
+
"@pnpm/types": "1000.8.0"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
33
|
-
"@pnpm/lockfile.types": "
|
|
34
|
+
"@pnpm/lockfile.types": "1002.0.1"
|
|
34
35
|
},
|
|
35
36
|
"engines": {
|
|
36
37
|
"node": ">=18.12"
|