@pnpm/assert-project 3.0.0 → 4.0.0
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 +3 -3
- package/package.json +7 -7
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type LockfileFile } from '@pnpm/lockfile.types';
|
|
2
2
|
import { type Modules } from '@pnpm/modules-yaml';
|
|
3
3
|
import isExecutable from './isExecutable';
|
|
4
4
|
export { isExecutable, type Modules };
|
|
@@ -20,14 +20,14 @@ export interface Project {
|
|
|
20
20
|
*
|
|
21
21
|
* https://github.com/microsoft/TypeScript/pull/32695 might help with this.
|
|
22
22
|
*/
|
|
23
|
-
readCurrentLockfile: () => Required<
|
|
23
|
+
readCurrentLockfile: () => Required<LockfileFile>;
|
|
24
24
|
readModulesManifest: () => Modules | null;
|
|
25
25
|
/**
|
|
26
26
|
* TODO: Remove the `Required<T>` cast.
|
|
27
27
|
*
|
|
28
28
|
* https://github.com/microsoft/TypeScript/pull/32695 might help with this.
|
|
29
29
|
*/
|
|
30
|
-
readLockfile: (lockfileName?: string) => Required<
|
|
30
|
+
readLockfile: (lockfileName?: string) => Required<LockfileFile>;
|
|
31
31
|
writePackageJson: (pkgJson: object) => void;
|
|
32
32
|
}
|
|
33
33
|
export declare function assertProject(projectPath: string, encodedRegistryName?: string): Project;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/assert-project",
|
|
3
3
|
"description": "Utils for testing projects that use pnpm",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Zoltan Kochan",
|
|
7
7
|
"email": "z@kochan.io",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@types/is-windows": "^1.0.2",
|
|
20
20
|
"@types/isexe": "2.0.2",
|
|
21
21
|
"@types/node": "^18.19.34",
|
|
22
|
-
"@pnpm/assert-project": "
|
|
22
|
+
"@pnpm/assert-project": "4.0.0"
|
|
23
23
|
},
|
|
24
24
|
"directories": {
|
|
25
25
|
"test": "test"
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"isexe": "2.0.0",
|
|
38
38
|
"read-yaml-file": "^2.1.0",
|
|
39
39
|
"write-pkg": "4.0.0",
|
|
40
|
-
"@pnpm/assert-store": "2.0.
|
|
41
|
-
"@pnpm/lockfile.types": "
|
|
42
|
-
"@pnpm/
|
|
43
|
-
"@pnpm/
|
|
44
|
-
"@pnpm/types": "
|
|
40
|
+
"@pnpm/assert-store": "2.0.1",
|
|
41
|
+
"@pnpm/lockfile.types": "1001.0.0",
|
|
42
|
+
"@pnpm/constants": "1001.0.0",
|
|
43
|
+
"@pnpm/modules-yaml": "1000.0.0",
|
|
44
|
+
"@pnpm/types": "1000.0.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"lint": "eslint src/**/*.ts test/**/*.ts",
|