We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e9716b + 2757a6d commit 6568f56Copy full SHA for 6568f56
src/makePatch.ts
@@ -102,11 +102,13 @@ export function makePatch({
102
"package.json",
103
)).version as string
104
105
- // copy .npmrc in case if packages are hosted in private registry
106
- const npmrcPath = join(appPath, ".npmrc")
107
- if (existsSync(npmrcPath)) {
108
- copySync(npmrcPath, join(tmpRepo.name, ".npmrc"))
109
- }
+ // 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))
110
+ }
111
+ })
112
113
if (packageManager === "yarn") {
114
console.info(
0 commit comments