This commit is contained in:
shadcn
2026-02-17 14:29:20 +04:00
parent 3877ae5328
commit da309ae929
3 changed files with 6 additions and 4 deletions

View File

@@ -453,6 +453,11 @@ export async function runInit(
options.isNewProject || projectInfo?.framework.name === "next-app",
})
// Run postInit for new projects without a custom init (e.g. git init).
if (selectedTemplate) {
await selectedTemplate.postInit({ projectPath: options.cwd })
}
return fullConfig
}

View File

@@ -551,7 +551,7 @@ describe("shadcn init - next-monorepo", () => {
"--preset",
"radix-nova",
],
{ timeout: 300000 }
{ timeout: 300000, debug: true }
)
expect(result.exitCode).toBe(0)

View File

@@ -2,8 +2,6 @@ import { HeadContent, Scripts, createRootRoute } from "@tanstack/react-router"
import { TanStackRouterDevtoolsPanel } from "@tanstack/react-router-devtools"
import { TanStackDevtools } from "@tanstack/react-devtools"
import Header from "../components/Header"
import appCss from "../styles.css?url"
export const Route = createRootRoute({
@@ -37,7 +35,6 @@ function RootDocument({ children }: { children: React.ReactNode }) {
<HeadContent />
</head>
<body>
<Header />
{children}
<TanStackDevtools
config={{