@@ -110,15 +110,15 @@ export function makePatch({
110110 join ( resolve ( packageDetails . path ) , "package.json" ) ,
111111 )
112112
113- // copy .npmrc/.yarnrc in case packages are hosted in private registry
114- // copy .yarn directory as well to ensure installations work in yarn 2
115- // tslint:disable-next-line:align
116- ; [ ".npmrc" , ".yarnrc" , ".yarn" ] . forEach ( ( rcFile ) => {
117- const rcPath = join ( appPath , rcFile )
118- if ( existsSync ( rcPath ) ) {
119- copySync ( rcPath , join ( tmpRepo . name , rcFile ) , { dereference : true } )
120- }
121- } )
113+ // copy .npmrc/.yarnrc in case packages are hosted in private registry
114+ // copy .yarn directory as well to ensure installations work in yarn 2
115+ // tslint:disable-next-line:align
116+ ; [ ".npmrc" , ".yarnrc" , ".yarn" ] . forEach ( ( rcFile ) => {
117+ const rcPath = join ( appPath , rcFile )
118+ if ( existsSync ( rcPath ) ) {
119+ copySync ( rcPath , join ( tmpRepo . name , rcFile ) , { dereference : true } )
120+ }
121+ } )
122122
123123 if ( packageManager === "yarn" ) {
124124 console . info (
@@ -216,7 +216,7 @@ export function makePatch({
216216 "--ignore-space-at-eol" ,
217217 "--no-ext-diff" ,
218218 "--src-prefix=a/" ,
219- "--dst-prefix=b/"
219+ "--dst-prefix=b/" ,
220220 )
221221
222222 if ( diffResult . stdout . length === 0 ) {
@@ -306,6 +306,7 @@ export function makePatch({
306306 packageDetails,
307307 patchFileContents : diffResult . stdout . toString ( ) ,
308308 packageVersion,
309+ patchPath,
309310 } )
310311 } else {
311312 maybePrintIssueCreationPrompt ( packageDetails , packageManager )
0 commit comments