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

usage in monorepos #4

Open
yomed opened this issue Nov 1, 2017 · 0 comments
Open

usage in monorepos #4

yomed opened this issue Nov 1, 2017 · 0 comments

Comments

@yomed
Copy link

yomed commented Nov 1, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant