Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b8790b8

Browse files
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β€Ž

Lines changed: 4 additions & 5 deletions
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)

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /