editPackageLockJsonSync
Reads, edits, and writes back the package-lock.json file using the provided edit function.
Import:
import { editPackageLockJsonSync } from '@mnaoumov/typescript-dev-toolkit/npm';Signature:
function editPackageLockJsonSync(editFunction: (packageLockJson: PackageLockJson) => void, options: EditPackageJsonOptions): voidParameters:
| Parameter | Type | Description |
|---|---|---|
editFunction |
(packageLockJson: PackageLockJson) => void | The function to edit the parsed PackageLockJson object. |
options |
EditPackageJsonOptions | Additional options for editing. |
Returns: void
Links to this page: