Skip to content
Source
Sign inSign up
TanStack/cli

fix(create): use shared router factory in router-only apps #481

Mergedgs0428(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/481/headmerged by tannerlinsley

Showing 11 changed files with 97 additions and 1 deletion (loading 8).

x
0 of 11 viewed, 11 left
7 additions and 0 deletions.changeset/shared-router-factory.mdAdded
View file
@@ -0,0 +1,7 @@
+---
+'@tanstack/create': patch
+---
+​
+Use the shared router factory in React and Solid router-only apps so customizations are applied and registration stays in one place. Add a browser Query provider when Query is added to a router-only app, without importing Start SSR dependencies.
+​
+Allow pnpm to update the lockfile when adding dependencies to an existing app in CI.
1 addition and 1 deletionpackages/cli/tests-e2e/helpers.tsModified
View file
@@ -429,7 +429,7 @@
​
if (postCreateAddOns?.length) {
const postAddOnsStartedAt = now()
- await runCommand(process.execPath, [cliDistPath, 'add', ...postCreateAddOns], {
+ await runCommand(process.execPath, [cliDistPath, 'add', ...postCreateAddOns, '--forced'], {
cwd: appDir,
env: {
CI: '1',
89 additions and 0 deletionspackages/cli/tests-e2e/shared-router-factory.spec.tsAdded
View file
@@ -0,0 +1,89 @@
+import { readFile, writeFile } from 'node:fs/promises'
+import { join } from 'node:path'
+import { expect, test } from '@playwright/test'
+import {
+ attachRuntimeGuards,
+ createAppFixture,
+ optimizePageForFastE2E,