From ea79154ae9cf3aa845a06fedb00d22b457432027 Mon Sep 17 00:00:00 2001 From: Aman Varshney Date: Mon, 21 Apr 2025 10:39:37 +0530 Subject: [PATCH] fix: ensure .npmrc is included and copied for native setup --- .changeset/modern-hotels-ask.md | 5 +++++ apps/cli/src/helpers/template-manager.ts | 2 +- apps/cli/templates/extras/{.npmrc => _npmrc} | 0 apps/web/src/lib/constant.ts | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/modern-hotels-ask.md rename apps/cli/templates/extras/{.npmrc => _npmrc} (100%) diff --git a/.changeset/modern-hotels-ask.md b/.changeset/modern-hotels-ask.md new file mode 100644 index 0000000..6d9f13e --- /dev/null +++ b/.changeset/modern-hotels-ask.md @@ -0,0 +1,5 @@ +--- +"create-better-t-stack": patch +--- + +ensure .npmrc is included and copied for native setup diff --git a/apps/cli/src/helpers/template-manager.ts b/apps/cli/src/helpers/template-manager.ts index ff7fe11..d7974f6 100644 --- a/apps/cli/src/helpers/template-manager.ts +++ b/apps/cli/src/helpers/template-manager.ts @@ -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); diff --git a/apps/cli/templates/extras/.npmrc b/apps/cli/templates/extras/_npmrc similarity index 100% rename from apps/cli/templates/extras/.npmrc rename to apps/cli/templates/extras/_npmrc diff --git a/apps/web/src/lib/constant.ts b/apps/web/src/lib/constant.ts index ca27921..cb43570 100644 --- a/apps/web/src/lib/constant.ts +++ b/apps/web/src/lib/constant.ts @@ -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", },