OLD feat(cli): pnpm config will now be stored in pnpm-workspace.yaml
#713
pnpm-workspace.yamlClosing issues
onlyBuiltDependencies in pnpm-workspace.yaml is supported from [email protected]:
The
pnpm.*settings frompackage.jsoncan now be specified in thepnpm-workspace.yamlfile 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-buildscommand, if package.json containsonlyBuiltDependenciesorignoredBuiltDependencies, the selected dependency package will continue to be written intopackage.json.
package.json / pnpm.onlyBuiltDependencies is added
{
"packageManager": "[email protected]+sha512.34e538c329b5553014ca8e8f4535997f96180a1d0f614339357449935350d924e22f8614682191264ec33d1462ac21561aff97f6bb18065351c162c7e8f6de67",
"pnpm": {
"onlyBuiltDependencies": [
"esbuild"
]
}
}
even when pnpm-workspace.yaml / onlyBuiltDependencies exists.
# pnpm-workspace.yaml
packages:
- packages/*
- sites/*
onlyBuiltDependencies:
- '@tailwindcss/oxide'
- esbuild
pnpm dlx sv create .
┌ Welcome to the Svelte CLI! (v0.9.5)
│
◇ Which template would you like?
│ SvelteKit minimal
│
◇ Add type checking with TypeScript?
│ Yes, using TypeScript syntax
│
◆ Project created
│
◇ What would you like to add to your project? (use arrow keys / space bar)
│ prettier, eslint, tailwindcss, sveltekit-adapter
│
◇ tailwindcss: Which plugins would you like to add?
│ none
│
◇ sveltekit-adapter: Which SvelteKit adapter would you like to use?
│ static
│
◆ Successfully setup add-ons
│
◇ Which package manager do you want to install dependencies with?
│ pnpm
│
◆ Successfully installed dependencies
│
◇ Successfully formatted modified files
│
◇ What's next? ───────────────────────────────╮
│ │
│ 📁 Project steps │
│ │
│ 1: pnpm run dev --open │
│ │
│ To close the dev server, hit Ctrl-C │
│ │
│ Stuck? Visit us at https://svelte.dev/chat │
│ │
├──────────────────────────────────────────────╯
│
└ You're all set!
corepack use pnpm@latest
╭ Warning ───────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Ignored build scripts: @tailwindcss/oxide. │
│ Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts. │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────╯Pull request
Closes: #521 Closes: #705 Closes: #714
- Note the addition of
yamlpackage (reco by e18e https://e18e.dev/guide/replacement-guides/js-yaml.html) - working with
pnpm-workspace.yamlfrom[email protected](7 months old). If not fallback topackage.jsonconfig like before this PR.
Info
🦋 Changeset detected
Latest commit: c9c8953
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 1 package
| Name | Type |
|---|---|
| sv | Patch |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
npx https://pkg.pr.new/sveltejs/cli/sv@713
npx https://pkg.pr.new/sveltejs/cli/svelte-migrate@713
commit: c9c8953
Hey @hyunbinseo would you mind testing this sv ? :)
feat(cli): pnpm config will now be stored in pnpm-workspace.yaml
fix(tailwindcss): add @tailwindcss/oxide to approve-builds in pnpm
concurrent to sequential (to not confuse pnpm i in //) let's see
• Sep 16, 2025, 6:51 AMPro 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 ;)