Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.23 KB

File metadata and controls

23 lines (16 loc) · 1.23 KB
hide_title true
custom_edit_url
pagination_prev
pagination_next

Home > @microsoft/rush-lib > PnpmOptionsConfiguration > globalOnlyBuiltDependencies

PnpmOptionsConfiguration.globalOnlyBuiltDependencies property

The globalOnlyBuiltDependencies setting specifies an allowlist of dependencies that are permitted to run build scripts (preinstall<></>, install<></>, and postinstall lifecycle events). This is the inverse of globalNeverBuiltDependencies<></>. In PNPM 10.x, build scripts are disabled by default for security, so this setting is required to explicitly permit specific packages to run their build scripts. The settings are copied into the pnpm.onlyBuiltDependencies field of the common/temp/package.json file that is generated by Rush during installation.

(SUPPORTED ONLY IN PNPM 10.1.0 AND NEWER)

PNPM documentation: https://pnpm.io/package\_json\#pnpmonlybuiltdependencies

Signature:

readonly globalOnlyBuiltDependencies: string[] | undefined;