Skip to content

Commit package-lock file #1724

@wemeetagain

Description

@wemeetagain

Description:

Not committing a package-lock results in terrible DX for maintainers and new contributors alike. Building the package can break at any time (any time an updated dependency is released that breaks types), for reasons entirely unrelated to a contributor adding features / fixing bugs. This can also affect building the package in CI.

The reason for not including the package-lock is to alert maintainers to any breaking issues that result from using the package as a library (since installing a dependency does not use that dependency's lockfile). This unfortunately creates an urgent issue for all contributors (breaking the development of features / etc) which is not strictly necessary.

We should instead commit the package-lock file and rely on a cronjob workflow to alert us when the package fails to build with the latest dependencies.

Steps to reproduce the error:

git checkout github.com:libp2p/js-libp2p
cd js-libp2p
npm i
npm run build # who knows if this will work ¯\_(ツ)_/¯

Metadata

Metadata

Assignees

No one assigned

    Labels

    need/triageNeeds initial labeling and prioritization

    Type

    No type

    Projects

    Status

    🎉Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions