Skip to content

Pass --before to npm #41657

@jamietanna

Description

@jamietanna

Describe the proposed change(s).

When minimumReleaseAge is specified, we should make sure that all npm calls include the flag, so we don't accidentally install dependencies that may be newer.

We can't specify this when using min-release-age configuration (via)

before:

If the requested version is a dist-tag and the given tag does not pass the --before filter, the most recent version less than or equal to that tag will be used. For example, foo@latest might install foo@1.2 even though latest is 2.0.

This config cannot be used with: min-release-age

And for min-release-age:

This flag is a complement to before, which accepts an exact date instead of a relative number of days.

This config cannot be used with: before

Metadata

Metadata

Assignees

No one assigned

    Labels

    manager:npmpackage.json files (npm/yarn/pnpm)minimumReleaseAgepriority-3-mediumDefault priority, "should be done" but isn't prioritised ahead of others

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions