(
state: StoreRegistryState,
options: StorePathOptions = {}
)
| 311 | } |
| 312 | |
| 313 | export async function writeStoreRegistryState( |
| 314 | state: StoreRegistryState, |
| 315 | options: StorePathOptions = {} |
| 316 | ): Promise<void> { |
| 317 | await writeFileAtomically( |
| 318 | getStoreRegistryPath(options), |
| 319 | serializeStoreRegistryState(state) |
| 320 | ); |
| 321 | } |
| 322 | |
| 323 | const storeRegistryLockError = makeLockErrorFactory({ |
| 324 | createSubject: 'the registry lock file', |