Skip to content

(Mama) Implement utils to detect local lockfile #576

@fraxken

Description

@fraxken

The idea is to implement a new utility function that detects the presence of a lockfile in a given directory. This new util function should be implemented in the mama workspace.

List of lockfiles:

  • package-lock.json for NPM
  • yarn.lock for Yarn
  • others (pnpm, bun)

Then return the path to the file and the type. If nothing is found (or not supported) then the function should return null.

Using synchronous FS API (such as fs.existSync) should be enough for V1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions