Skip to content

Add an option to list "always available dependencies" #40

@ao-Barbosa

Description

@ao-Barbosa

Problem

Currently, fallow doesn't have a configuration to mark a dependency as always available, which can lead to known good dependencies being marked as unlisted.

A very easy example of this is bun: modules.

Proposed solution

Treat ignoreDependencies listed deps as both "always considered used" as well as "always considered available".

Alternatives considered

I see three alternative ways to approaching this:

  1. Add bun: to a 'hard-coded' list of known goods, in the same way as node:.
  2. Allow for a rule specific configuration (rules.unlistedDependencies.ignoreDependencies) object which serves as ignore.
  3. Add a new configuration key "globalDependencies" or similar, for dependencies which aren't listed in the package but are known available in actual use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions