Skip to content

[Question / Help]: How can we make sure if version in package-lock satisfies the version mentioned in package.json ? #1558

@sathishsoundharajan

Description

@sathishsoundharajan

How can we make sure if version in package-lock satisfies the version mentioned in package.json ? Ideally i'm looking at validating this as part of the pre-commit hook.

We have kind of mixed dependencies some public npm packages and some provide packages hosted by github / gitlab / bitbucket, referencing them directly with tag in package.json

I was previously thinking about using the lock-verify, but still would the solve the problem, because it seems lock-verify won't validate anything which requires network connection & also that is being depreciated now.

Refs:
https://stackoverflow.com/questions/45287398/is-there-a-way-to-confirm-a-package-lock-json-actually-resolves-all-dependencies
https://www.npmjs.com/package/lock-verify

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting Informationfurther information is requestedRelease 6.xwork is associated with a specific npm 6 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions