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

@@ -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);