Skip to content

writePin

Records head as the entry’s pin in upstreams.json, unless the handler already moved it, keeping the file’s key order and formatting.

Import:

import { writePin } from '@mnaoumov/typescript-dev-toolkit/upstream-sync';

Signature:

function writePin(configPath: string, status: UpstreamStatus): void

Parameters:

Parameter Type Description
configPath string The path to upstreams.json.
status UpstreamStatus The comparison.

Returns: void