diff --git a/src/makePatch.ts b/src/makePatch.ts index 7f1d5502..63f1bb11 100644 --- a/src/makePatch.ts +++ b/src/makePatch.ts @@ -102,6 +102,12 @@ export function makePatch({ "package.json", )).version as string + // copy .npmrc in case if packages are hosted in private registry + const npmrcPath = join(appPath, ".npmrc") + if (existsSync(npmrcPath)) { + copySync(npmrcPath, join(tmpRepo.name, ".npmrc")) + } + if (packageManager === "yarn") { console.info( chalk.grey("•"),