GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(create): preserve native build approvals across pnpm versions by dario-piotrowicz · Pull Request #485 · TanStack/cli Conversation
|
Findings
|
| Layer / File(s) | Summary |
|---|---|
Workspace approval merging packages/create/src/pnpm-workspace.ts, packages/create/package.json, packages/create/tests/pnpm-workspace.test.ts |
The package adds the yaml dependency and helpers to extract build dependencies and merge approvals into workspace YAML. Tests cover retained configuration, explicit denials, unsupported policies, and invalid YAML. |
App creation and standalone npmrc handling packages/create/src/create-app.ts, packages/create/src/edge-create-app.ts, packages/create/src/pnpm-workspace.ts, packages/create/tests/pnpm-workspace.test.ts |
Both app creation paths track existing workspace files and call the pnpm workspace writer. The writer handles build dependencies and may add standalone root-check configuration. Tests cover standalone and existing-project cases. |
Add-on installation updates packages/create/src/add-to-app.ts, packages/create/tests/pnpm-workspace.test.ts, .changeset/pnpm-native-build-approvals.md |
Add-on installation merges build dependencies from current and generated package data into workspace configuration, may update .npmrc, and awaits package JSON writes. The changeset describes the release. |
Estimated code review effort: 3 (Moderate) | ~25 minutes
Change: Bug fix
sequenceDiagram
participant createApp
participant writeFiles
participant writePnpmWorkspace
participant Environment
createApp->>writeFiles: Pass package data and context
writeFiles->>Environment: Check for existing pnpm-workspace.yaml
writeFiles->>writePnpmWorkspace: Pass package manager and workspace state
writePnpmWorkspace->>Environment: Write merged workspace and optional .npmrc
Suggested reviewers: tannerlinsley
3b4b1New standalone pnpm 11 projects may reject root-level dependency additions. Write the setting to the workspace configuration before merging.
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 9 functions across 5 files. (2 skipped: 2 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Warning
Some tools did not complete. Review the errors below.
If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.
Parsing error: "parserOptions.project" has been provided for @typescript-eslint/parser.
The file was not found in any of the provided project(s): packages/create/tests/pnpm-workspace.test.ts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
sharp and workerd in Cloudflare deployment add-on
🦋 Changeset detectedLatest commit: 3b4b188 The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
* perf: use native temp dir creation Switches from `tempy` to using the built-in `mkdtemp`. * fix(create): preserve native build approvals across pnpm versions (#485) * fix: add pnpm build approvals for `sharp` and `workerd` in Cloudflare deployment add-on When using pnpm v11, creating a Cloudflare-deployed project fails because `wrangler` transitively depends on `sharp` and `workerd`, which have build scripts that are not listed in `pnpm.onlyBuiltDependencies`. Add these entries to both the React and Solid Cloudflare host `package.json.ejs` templates so they are merged with the base approvals at project creation time. * fix(create): preserve standalone pnpm dependency additions --------- Co-authored-by: Tanner Linsley <[email protected]> * ci: Version Packages (#538) ci: changeset release Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: update Sentry link to correct URL (#413) Co-authored-by: Tanner Linsley <[email protected]> * ci: Version Packages (#539) ci: changeset release Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix(create): repair example assistant lifecycle (#446) * Update RemyAssistant.tsx - the use of useeffect causes destroy is not a function error * Update RemyAssistant.tsx - Added unsubscribe instead of removing the use effect I have now studied up more regarding useeffect and understand why coderabbit said what it said --------- Co-authored-by: Tanner Linsley <[email protected]> * ci: Version Packages (#540) ci: changeset release Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: restore clean npm and pnpm AI app installs (#541) * fix: approve AI dependency builds in pnpm projects * fix: support TypeScript 6 in content examples * ci: Version Packages (#542) ci: changeset release Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: Preallow esbuild build when installing Storybook (#521) Co-authored-by: Tanner Linsley <[email protected]> * fix(create): tolerate unavailable pnpm version probes (#545) * fix(create): keep optional pnpm probes from aborting generation * fix(create): validate complete pnpm version suffixes * ci: Version Packages (#544) ci: changeset release Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix(cli): refresh frameworks on repeated dev-watch edits (#546) * fix(cli): refresh frameworks on repeated dev-watch edits * test(cli): load current dev-watch source in child fixture * ci: Version Packages (#547) ci: changeset release Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix(create): replace retired Claude 3 Opus model in solid tanchat template (#543) * fix(create): replace retired Claude 3 Opus model in solid tanchat template The Solid tanchat example hard-coded claude-3-opus-20240229, which Anthropic has retired, so generated projects failed on the first chat request. Use claude-haiku-4-5 like the React templates, and add a test that rejects retired Claude 3 model IDs anywhere in the framework templates. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * fix: Preallow esbuild build when installing Storybook (#521) Co-authored-by: Tanner Linsley <[email protected]> * fix(create): tolerate unavailable pnpm version probes (#545) * fix(create): keep optional pnpm probes from aborting generation * fix(create): validate complete pnpm version suffixes * ci: Version Packages (#544) ci: changeset release Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix(cli): refresh frameworks on repeated dev-watch edits (#546) * fix(cli): refresh frameworks on repeated dev-watch edits * test(cli): load current dev-watch source in child fixture * ci: Version Packages (#547) ci: changeset release Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]> Co-authored-by: Steve Dodier-Lazaro <[email protected]> Co-authored-by: Tanner Linsley <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * ci: Version Packages (#548) ci: changeset release Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Dario Piotrowicz <[email protected]> Co-authored-by: Tanner Linsley <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: eszn <[email protected]> Co-authored-by: killerfrienddk <[email protected]> Co-authored-by: Steve Dodier-Lazaro <[email protected]> Co-authored-by: alexcastgonz <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.