Skip to content

Ship the starters' build script approvals with the starters - #466

Merged
tnkuehne merged 2 commits into
mainfrom
starter-allow-builds
Nov 28, 2026
Merged

tnkuehne merged 2 commits into
mainfrom
starter-allow-builds

Conversation

@tnkuehne

Copy link
Copy Markdown
Contributor

A project copied straight from starters/sveltekit or starters/tanstack-start has no pnpm-workspace.yaml. In the monorepo the root workspace approves the build scripts of esbuild and workerd, and tools/package-cli.ts writes the file only into the packaged CLI templates. A fresh pnpm install --frozen-lockfile of such a copy fails with pnpm 12 (ERR_PNPM_IGNORED_BUILDS), and pnpm writes placeholder approvals (set this to true or false) into the project. Server builds install from scratch and stop there.

Changes

  • starters/sveltekit/pnpm-workspace.yaml and starters/tanstack-start/pnpm-workspace.yaml carry the settings the packaged templates had: no workspace packages, strict peer dependencies, strict dependency builds, and approved builds for esbuild and workerd.
  • tools/package-cli.ts copies that file into each template instead of writing it.

Checks

  • A fresh copy of each starter as its own Git repository installs with pnpm install --frozen-lockfile and leaves the checkout unchanged.
  • pnpm install --frozen-lockfile at the repository root still succeeds and keeps both starters as workspace packages.
  • The CLI package test runs in the CLI platform checks.

A copy of a starter is its own pnpm workspace. The approvals for esbuild
and workerd existed only in the packaged CLI templates, so a project made
straight from a starter failed a fresh install with pnpm 12, and pnpm
wrote placeholder approvals into it. The starters now carry their
pnpm-workspace.yaml, and packaging copies it.
@tnkuehne
tnkuehne merged commit 7254ebe into main Nov 28, 2026
4 checks passed
@tnkuehne
tnkuehne deleted the starter-allow-builds branch November 28, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant