fix(cli): Add conditional rendering for private data based on API type

This commit is contained in:
Aman Varshney
2025-07-17 09:55:40 +05:30
parent 6a43a4f161
commit 5ab503a814
10 changed files with 70 additions and 56 deletions

View File

@@ -475,33 +475,16 @@ export async function setupAuthTemplate(
} else {
}
} else if (hasSvelteWeb) {
if (context.api === "orpc") {
const authWebSvelteSrc = path.join(
PKG_ROOT,
"templates/auth/web/svelte",
);
if (await fs.pathExists(authWebSvelteSrc)) {
await processAndCopyFiles(
"**/*",
authWebSvelteSrc,
webAppDir,
context,
);
} else {
}
const authWebSvelteSrc = path.join(PKG_ROOT, "templates/auth/web/svelte");
if (await fs.pathExists(authWebSvelteSrc)) {
await processAndCopyFiles("**/*", authWebSvelteSrc, webAppDir, context);
} else {
}
} else if (hasSolidWeb) {
if (context.api === "orpc") {
const authWebSolidSrc = path.join(PKG_ROOT, "templates/auth/web/solid");
if (await fs.pathExists(authWebSolidSrc)) {
await processAndCopyFiles(
"**/*",
authWebSolidSrc,
webAppDir,
context,
);
} else {
}
const authWebSolidSrc = path.join(PKG_ROOT, "templates/auth/web/solid");
if (await fs.pathExists(authWebSolidSrc)) {
await processAndCopyFiles("**/*", authWebSolidSrc, webAppDir, context);
} else {
}
}
}