fix(cli): update template handling for pnpm 11 (#10659)

* fix(cli): allow esbuild builds in Vite templates

* fix(cli): extend pnpm 11 build-script allowlists across app templates

- Add packages: [] to single-app pnpm-workspace.yaml so pnpm 9 does
  not reject the file with "packages field missing or empty".
- Add astro-app, react-router-app, start-app, next-app workspace
  yamls with the build-script allowlist each template needs
  (esbuild, sharp, unrs-resolver as applicable).
- Set msw: false across all app allowlists so the registry component
  install runs cleanly under pnpm 11 without executing msw's
  service-worker postinstall.
- Add a scaffold test pinning the packages:[] + allowBuilds shape
  so the parser keeps treating it as single-app.

* chore: changeset

* fix(templates): allow monorepo pnpm builds

* ci(templates): validate app workspace conversion

---------

Co-authored-by: shadcn <m@shadcn.com>
This commit is contained in:
Raashish Aggarwal
2026-05-29 09:54:31 +05:30
committed by GitHub
parent 360e8a19c3
commit 07900769d9
14 changed files with 186 additions and 61 deletions

View File

@@ -1,5 +1,6 @@
packages:
- "."
packages: []
ignoredBuiltDependencies:
- esbuild
allowBuilds:
esbuild: true
sharp: true
msw: false

View File

@@ -2,6 +2,7 @@ packages:
- "apps/*"
- "packages/*"
ignoredBuiltDependencies:
- esbuild
allowBuilds:
esbuild: true
sharp: true
msw: false

View File

@@ -1,6 +1,6 @@
packages:
- "."
packages: []
ignoredBuiltDependencies:
- sharp
- unrs-resolver
allowBuilds:
sharp: true
unrs-resolver: true
msw: false

View File

@@ -2,7 +2,7 @@ packages:
- "apps/*"
- "packages/*"
ignoredBuiltDependencies:
- sharp
- unrs-resolver
allowBuilds:
sharp: true
unrs-resolver: true
msw: false

View File

@@ -1,5 +1,5 @@
packages:
- "."
packages: []
ignoredBuiltDependencies:
- esbuild
allowBuilds:
esbuild: true
msw: false

View File

@@ -2,6 +2,6 @@ packages:
- "apps/*"
- "packages/*"
ignoredBuiltDependencies:
- esbuild
allowBuilds:
esbuild: true
msw: false

View File

@@ -1,6 +1,7 @@
packages:
- "."
packages: []
onlyBuiltDependencies:
- esbuild
- lightningcss
allowBuilds:
esbuild: true
lightningcss: true
unrs-resolver: true
msw: false

View File

@@ -1,3 +1,9 @@
packages:
- "apps/*"
- "packages/*"
allowBuilds:
esbuild: true
lightningcss: true
unrs-resolver: true
msw: false

View File

@@ -1,5 +1,5 @@
packages:
- "."
packages: []
ignoredBuiltDependencies:
- esbuild
allowBuilds:
esbuild: true
msw: false

View File

@@ -2,6 +2,6 @@ packages:
- "apps/*"
- "packages/*"
ignoredBuiltDependencies:
- esbuild
allowBuilds:
esbuild: true
msw: false