feat: support engines in publishConfig (#10169)

This commit is contained in:
Zoltan Kochan
2025-11-11 01:18:23 +01:00
committed by GitHub
parent d5f736ce56
commit f03b9ecf4e
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
---
"@pnpm/exportable-manifest": minor
"pnpm": minor
---
Allow to override the `engines` field on publish by the `publishConfig.engines` field.

View File

@@ -5,6 +5,7 @@ import { isEmpty } from 'ramda'
const PUBLISH_CONFIG_WHITELIST = new Set([
// manifest fields that may make sense to overwrite
'bin',
'engines',
'type',
'imports',
// https://github.com/stereobooster/package.json#package-bundlers