Skip to content

Commit b8790b8

Browse files
committed
chore: add type to path
1 parent adca287 commit b8790b8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/makePatch.ts

+4-5
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ export function makePatch({
423423
sequenceNumber,
424424
})
425425

426-
const patchPath = join(patchesDir, patchFileName)
426+
const patchPath: string = join(patchesDir, patchFileName)
427427
if (!existsSync(dirname(patchPath))) {
428428
// scoped package
429429
mkdirSync(dirname(patchPath))
@@ -524,12 +524,10 @@ export function makePatch({
524524

525525
if (isRebasing || numPatchesAfterCreate > 1) {
526526
savePatchApplicationState({
527+
isRebasing: didFailWhileFinishingRebase,
527528
packageDetails,
528-
patchFileContents: diffResult.stdout.toString(),
529-
packageVersion,
530-
patchPath,
531529
patches: nextState,
532-
isRebasing: didFailWhileFinishingRebase,
530+
// patchFileContents: diffResult.stdout.toString(),
533531
})
534532
} else {
535533
clearPatchApplicationState(packageDetails)
@@ -541,6 +539,7 @@ export function makePatch({
541539
packageDetails,
542540
patchFileContents: diffResult.stdout.toString(),
543541
packageVersion,
542+
patchPath,
544543
})
545544
} else {
546545
maybePrintIssueCreationPrompt(vcs, packageDetails, packageManager)

0 commit comments

Comments
 (0)