fix: ensure .npmrc is included and copied for native setup

This commit is contained in:
Aman Varshney
2025-04-21 10:39:37 +05:30
parent b2090c72bb
commit ea79154ae9
4 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"create-better-t-stack": patch
---
ensure .npmrc is included and copied for native setup

View File

@@ -531,7 +531,7 @@ export async function handleExtras(
}
if (context.frontend.includes("native")) {
const npmrcSrc = path.join(PKG_ROOT, "templates/extras/.npmrc");
const npmrcSrc = path.join(PKG_ROOT, "templates/extras/_npmrc");
const npmrcDest = path.join(projectDir, ".npmrc");
if (await fs.pathExists(npmrcSrc)) {
await fs.copy(npmrcSrc, npmrcDest);

View File

@@ -11,7 +11,7 @@ export const TECH_OPTIONS = {
{
id: "orpc",
name: "oRPC",
description: "Opinionated RPC framework",
description: "Typesafe APIs Made Simple",
icon: "/icon/orpc.svg",
color: "from-indigo-400 to-indigo-600",
},