@pnpm/napi 12.0.0-alpha.8 → 12.0.0-alpha.9
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/index.d.ts +13 -5
- package/package.json +9 -9
package/index.d.ts
CHANGED
|
@@ -59,8 +59,16 @@ export interface NetworkConfig {
|
|
|
59
59
|
userAgent?: string
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
/**
|
|
63
|
-
|
|
62
|
+
/**
|
|
63
|
+
* A synchronous `readPackage` hook applied to resolved dependency manifests.
|
|
64
|
+
*
|
|
65
|
+
* `resolvedDir` is set when the manifest came from a directory resolution (an
|
|
66
|
+
* injected workspace project or a `file:` dependency); it is the directory
|
|
67
|
+
* recorded in the lockfile, relative to the lockfile root. Hosts use it to
|
|
68
|
+
* recognize a workspace project's dependency instance and substitute the
|
|
69
|
+
* project's raw manifest.
|
|
70
|
+
*/
|
|
71
|
+
export type ReadPackageHook = (manifest: PackageManifest, resolvedDir?: string) => PackageManifest
|
|
64
72
|
|
|
65
73
|
/**
|
|
66
74
|
* Receives engine log events. The event stream is wire-compatible with
|
|
@@ -190,9 +198,9 @@ export interface InstallResult {
|
|
|
190
198
|
|
|
191
199
|
/**
|
|
192
200
|
* @param onLog receives wire-compatible pnpm log events.
|
|
193
|
-
* @param readPackageHook a **synchronous** `(manifest) => manifest`
|
|
194
|
-
* applied to every resolved dependency manifest during resolution
|
|
195
|
-
* `readPackage` hook). Must return the manifest object, not a promise.
|
|
201
|
+
* @param readPackageHook a **synchronous** `(manifest, resolvedDir?) => manifest`
|
|
202
|
+
* transform applied to every resolved dependency manifest during resolution
|
|
203
|
+
* (the `readPackage` hook). Must return the manifest object, not a promise.
|
|
196
204
|
*/
|
|
197
205
|
export function install(
|
|
198
206
|
options: InstallOptions,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/napi",
|
|
3
|
-
"version": "12.0.0-alpha.
|
|
3
|
+
"version": "12.0.0-alpha.9",
|
|
4
4
|
"description": "Node.js addon bindings for the pnpm v12 Rust engine (pacquet)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"README.md"
|
|
28
28
|
],
|
|
29
29
|
"optionalDependencies": {
|
|
30
|
-
"@pnpm/napi.win32-x64": "12.0.0-alpha.
|
|
31
|
-
"@pnpm/napi.win32-arm64": "12.0.0-alpha.
|
|
32
|
-
"@pnpm/napi.darwin-x64": "12.0.0-alpha.
|
|
33
|
-
"@pnpm/napi.darwin-arm64": "12.0.0-alpha.
|
|
34
|
-
"@pnpm/napi.linux-x64": "12.0.0-alpha.
|
|
35
|
-
"@pnpm/napi.linux-arm64": "12.0.0-alpha.
|
|
36
|
-
"@pnpm/napi.linux-x64-musl": "12.0.0-alpha.
|
|
37
|
-
"@pnpm/napi.linux-arm64-musl": "12.0.0-alpha.
|
|
30
|
+
"@pnpm/napi.win32-x64": "12.0.0-alpha.9",
|
|
31
|
+
"@pnpm/napi.win32-arm64": "12.0.0-alpha.9",
|
|
32
|
+
"@pnpm/napi.darwin-x64": "12.0.0-alpha.9",
|
|
33
|
+
"@pnpm/napi.darwin-arm64": "12.0.0-alpha.9",
|
|
34
|
+
"@pnpm/napi.linux-x64": "12.0.0-alpha.9",
|
|
35
|
+
"@pnpm/napi.linux-arm64": "12.0.0-alpha.9",
|
|
36
|
+
"@pnpm/napi.linux-x64-musl": "12.0.0-alpha.9",
|
|
37
|
+
"@pnpm/napi.linux-arm64-musl": "12.0.0-alpha.9"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"generate-packages": "node scripts/generate-packages.mjs"
|