Skip to content

usage in monorepos #4

@yomed

Description

@yomed

In some styles of monorepos, multiple packages are published in that single repo. So the structure might be something like this:

index.js
package.json
utils/
    index.js
packages/
    package-1/
        index.js
        package.json
    package-2/
        index.js
        package.json

In this case, using require-self-ref from inside the packages would resolve to the local package.json rather than the global one.

Is this the check for determining root status?
https://github.com/lasso-js/lasso-package-root/blob/2cde1a0830a21474a841d9bedd7512e1ab8fdac4/src/index.js#L16

Maybe it could check for a specific field to opt-out of being considered root.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions