@pnpm/napi 12.0.0-beta.2 → 12.0.0-beta.3

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @pnpm/napi
2
2
 
3
+ ## 12.0.0-beta.3
4
+
5
+ ### Minor Changes
6
+
7
+ - `readConfig` now returns `explicitSettings` — the camelCase names of settings the config cascade set explicitly — so hosts that layer the resolved config over their own defaults can forward only the values the user actually configured.
8
+
9
+ - Added a `returnListOfDepsRequiringBuild` install option. When it is set, `InstallResult.depsRequiringBuild` lists the dep path of every package whose files carry install scripts, whether or not the scripts were allowed to run, matching the TypeScript CLI's option of the same name. An install that computes no list, such as one served from the lockfile, leaves the field undefined.
10
+
3
11
  ## 12.0.0-beta.2
4
12
 
5
13
  ### Minor Changes
package/index.d.ts CHANGED
@@ -197,6 +197,15 @@ export interface InstallOptions extends SharedEngineOptions {
197
197
  * `InstallResult.depsRequiringBuild` instead.
198
198
  */
199
199
  strictDepBuilds?: boolean
200
+ /**
201
+ * Report in `InstallResult.depsRequiringBuild` the dep path of every
202
+ * package whose files carry install scripts, regardless of the
203
+ * allow-build policy. The list is computed only when a fresh resolve
204
+ * materializes `node_modules`; an install served from the
205
+ * frozen-lockfile path (or `lockfileOnly`) leaves the field undefined
206
+ * so the embedder keeps its previously recorded list.
207
+ */
208
+ returnListOfDepsRequiringBuild?: boolean
200
209
  /** Customizations for how peer-dependency mismatches are treated. */
201
210
  peerDependencyRules?: PeerDependencyRules
202
211
  }
@@ -214,7 +223,13 @@ export interface InstallResult {
214
223
  removed: number
215
224
  linkedToRoot: number
216
225
  }
217
- /** Dep paths whose build scripts were skipped and require approval to run. */
226
+ /**
227
+ * With `returnListOfDepsRequiringBuild`: the dep path of every package
228
+ * whose files carry install scripts, whether or not the scripts were
229
+ * allowed to run; undefined when the install did not compute the list
230
+ * (see the option). Without it: the dep paths whose build scripts were
231
+ * skipped and require approval to run.
232
+ */
218
233
  depsRequiringBuild?: string[]
219
234
  /** The resolved content-addressable store directory used by this install. */
220
235
  storeDir: string
@@ -400,6 +415,13 @@ export interface ResolvedConfig {
400
415
  * not a per-project setting. Absent when no home directory is resolvable.
401
416
  */
402
417
  pnpmHomeDir?: string
418
+ /**
419
+ * The camelCase names of settings the cascade set explicitly
420
+ * (`pnpm-workspace.yaml`, the global config, `pnpm_config_*` env vars).
421
+ * Every other projected value is an engine default; an embedder that
422
+ * layers this config over its own must forward only the explicit ones.
423
+ */
424
+ explicitSettings: string[]
403
425
  }
404
426
 
405
427
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/napi",
3
- "version": "12.0.0-beta.2",
3
+ "version": "12.0.0-beta.3",
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-beta.2",
31
- "@pnpm/napi.win32-arm64": "12.0.0-beta.2",
32
- "@pnpm/napi.darwin-x64": "12.0.0-beta.2",
33
- "@pnpm/napi.darwin-arm64": "12.0.0-beta.2",
34
- "@pnpm/napi.linux-x64": "12.0.0-beta.2",
35
- "@pnpm/napi.linux-arm64": "12.0.0-beta.2",
36
- "@pnpm/napi.linux-x64-musl": "12.0.0-beta.2",
37
- "@pnpm/napi.linux-arm64-musl": "12.0.0-beta.2"
30
+ "@pnpm/napi.win32-x64": "12.0.0-beta.3",
31
+ "@pnpm/napi.win32-arm64": "12.0.0-beta.3",
32
+ "@pnpm/napi.darwin-x64": "12.0.0-beta.3",
33
+ "@pnpm/napi.darwin-arm64": "12.0.0-beta.3",
34
+ "@pnpm/napi.linux-x64": "12.0.0-beta.3",
35
+ "@pnpm/napi.linux-arm64": "12.0.0-beta.3",
36
+ "@pnpm/napi.linux-x64-musl": "12.0.0-beta.3",
37
+ "@pnpm/napi.linux-arm64-musl": "12.0.0-beta.3"
38
38
  },
39
39
  "scripts": {
40
40
  "generate-packages": "node scripts/generate-packages.mjs"