Skip to content

Commit 32ab111

Browse files
authored
Merge pull request #152 from cherniavskii/private-registries
Copy .npmrc in case if packages are hosted in private registry
2 parents 7fec12b + b7633b9 commit 32ab111

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/makePatch.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ export function makePatch({
102102
"package.json",
103103
)).version as string
104104

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+
}
110+
105111
if (packageManager === "yarn") {
106112
console.info(
107113
chalk.grey("•"),

0 commit comments

Comments
 (0)