Repository navigation
Ship the starters' build script approvals with the starters - #466
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A project copied straight from
starters/sveltekitorstarters/tanstack-starthas nopnpm-workspace.yaml. In the monorepo the root workspace approves the build scripts ofesbuildandworkerd, andtools/package-cli.tswrites the file only into the packaged CLI templates. A freshpnpm install --frozen-lockfileof 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.yamlandstarters/tanstack-start/pnpm-workspace.yamlcarry the settings the packaged templates had: no workspace packages, strict peer dependencies, strict dependency builds, and approved builds foresbuildandworkerd.tools/package-cli.tscopies that file into each template instead of writing it.Checks
pnpm install --frozen-lockfileand leaves the checkout unchanged.pnpm install --frozen-lockfileat the repository root still succeeds and keeps both starters as workspace packages.