Skip to content

assertPackageLockIntegrity

Throws when the project’s package-lock.json has an installed entry without resolved or integrity. A project with no package-lock.json, such as one on another package manager, passes.

Import:

import { assertPackageLockIntegrity } from 'obsidian-dev-utils/script-utils/package-lock-integrity';

Signature:

function assertPackageLockIntegrity(cwd: string | undefined): Promise<void>

Parameters:

Parameter Type Description
cwd string | undefined The folder to resolve the project root from. Defaults to the current one.

Returns: Promise<void> — A Promise that resolves when the lock is complete.


Links to this page: