diff --git a/src/makePatch.ts b/src/makePatch.ts index c4c70bb5..13376b11 100644 --- a/src/makePatch.ts +++ b/src/makePatch.ts @@ -102,11 +102,13 @@ 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")) - } + // copy .npmrc/.yarnrc in case packages are hosted in private registry + [".npmrc", ".yarnrc"].forEach(rcFile => { + const rcPath = join(appPath, rcFile) + if (existsSync(rcPath)) { + copySync(rcPath, join(tmpRepo.name, rcFile)) + } + }) if (packageManager === "yarn") { console.info(