Svelte

Update pnpm onlyBuiltDependencies config

#521

Development PRs

Issue

Solved
H
hyunbinseo
Apr 2, 2025, 7:59 AM

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.

Info

Closed at Oct 5, 2025, 10:00 AM
Assignees None
Labels enhancement, pkg:add, pkg:create
Milestone None

Pro tip: You can prefix GitHub URLs of issues, PRs or discussions with svcl.dev/ to view them on this page! Also try it on a GitHub release ;)