Skip to content

Update pnpm onlyBuiltDependencies config #521

Open
@hyunbinseo

Description

@hyunbinseo

onlyBuiltDependencies in pnpm-workspace.yaml is supported from [email protected]:

The pnpm.* settings from package.json can now be specified in the pnpm-workspace.yaml file instead.

onlyBuiltDependencies:
- esbuild
- fuse-native

pnpm approve-builds adds onlyBuiltDependencies to pnpm-workspace.yaml as of 10.7.1.

Current implementation is fixed to the pnpm.onlyBuiltDependencies field in the pacakge.json:

Backwards compatibility is supported and is probably fixed (?) in 10.6.1

When executing the approve-builds command, if package.json contains onlyBuiltDependencies or ignoredBuiltDependencies, the selected dependency package will continue to be written into package.json.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions