Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Yarn v1.x workspaces metadata extractor #666

Merged

Commits on Oct 18, 2024

  1. yarn: Adding Workspace model

    A model to handle yarn workspaces is added.
    Workspaces allow user to install dependencies from
    multiple package.json files within one root package.
    Official workspaces definition:
      https://classic.yarnpkg.com/lang/en/docs/workspaces/
    
    Signed-off-by: Alexey Ovchinnikov <[email protected]>
    a-ovchinnikov committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    36013a4 View commit details
    Browse the repository at this point in the history
  2. Adding Yarn v1.x workspaces metadata extractor

    In Yarn v1.x workspaces metadata is stored outside of yarn.lock in
    package.json. This commit inroduces functions for workspaces metadata
    extraction and a dataclass to represent workspaces.
    
    Signed-off-by: Alexey Ovchinnikov <[email protected]>
    a-ovchinnikov committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    5bb55c7 View commit details
    Browse the repository at this point in the history
  3. yarn: Expanding globs extraction to nested Arrays

    It turns out that workspaces could be either Array or
    a nested Array in an Object thus we must handle both cases.
    Official docs mentioning the former:
      https://classic.yarnpkg.com/lang/en/docs/workspaces/
    Official blog containing a hint about the latter:
      https://classic.yarnpkg.com/lang/en/docs/workspaces/
    
    Signed-off-by: Alexey Ovchinnikov <[email protected]>
    a-ovchinnikov committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    3296fa5 View commit details
    Browse the repository at this point in the history