Skip to content

Skip generating pnpm-workspace.yaml when template provides one#7591

Merged
jantnovi merged 1 commit into
mainfrom
fix/pnpm-workspace-merge
May 21, 2026
Merged

Skip generating pnpm-workspace.yaml when template provides one#7591
jantnovi merged 1 commit into
mainfrom
fix/pnpm-workspace-merge

Conversation

@jantnovi
Copy link
Copy Markdown
Contributor

@jantnovi jantnovi commented May 20, 2026

When scaffolding with pnpm, the CLI generates a pnpm-workspace.yaml with workspace package globs. Previously this always overwrote any existing file from the template.

Now the CLI skips generation if the template already provides one, allowing templates to ship their own pnpm-workspace.yaml with additional settings (e.g. allowBuilds).

@jantnovi jantnovi requested a review from a team as a code owner May 20, 2026 16:51
@github-actions github-actions Bot added the no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. label May 20, 2026
@jantnovi jantnovi force-pushed the fix/pnpm-workspace-merge branch from 64e9ea7 to 70aa36e Compare May 20, 2026 16:59
When scaffolding with pnpm, the CLI generates a pnpm-workspace.yaml
with workspace package globs. Previously this always overwrote any
existing file from the template.

Now the CLI skips generation if the template already provides one,
allowing templates to ship their own pnpm-workspace.yaml with
additional settings (e.g. allowBuilds).
@jantnovi jantnovi force-pushed the fix/pnpm-workspace-merge branch from 70aa36e to 833d866 Compare May 20, 2026 17:44
@jantnovi jantnovi changed the title Preserve template pnpm-workspace.yaml content during init Skip generating pnpm-workspace.yaml when template provides one May 20, 2026
@jantnovi jantnovi added this pull request to the merge queue May 21, 2026
Merged via the queue into main with commit 662b481 May 21, 2026
68 of 74 checks passed
@jantnovi jantnovi deleted the fix/pnpm-workspace-merge branch May 21, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants