({
packageDetails,
patches,
isRebasing,
}: {
packageDetails: PackageDetails
patches: PatchState[]
isRebasing: boolean
})
| 43 | } |
| 44 | |
| 45 | export function savePatchApplicationState({ |
| 46 | packageDetails, |
| 47 | patches, |
| 48 | isRebasing, |
| 49 | }: { |
| 50 | packageDetails: PackageDetails |
| 51 | patches: PatchState[] |
| 52 | isRebasing: boolean |
| 53 | }) { |
| 54 | const fileName = join(packageDetails.path, STATE_FILE_NAME) |
| 55 | |
| 56 | const state: PatchApplicationState = { |
| 57 | patches, |
| 58 | version, |
| 59 | isRebasing, |
| 60 | } |
| 61 | |
| 62 | writeFileSync(fileName, stringify(state, { space: 4 }), "utf8") |
| 63 | } |
| 64 | |
| 65 | export function clearPatchApplicationState(packageDetails: PackageDetails) { |
| 66 | const fileName = join(packageDetails.path, STATE_FILE_NAME) |
no test coverage detected
searching dependent graphs…