Monorepo support
See original GitHub issueI am trying to leverage this tool to generate the license lists for all the packages in a monorepo and have run into a few issues:
- if I run from the root of the repo, then I only see the dependencies in the root package.json - that’s kind of expected
- if I run from the package’s folder, then the license is missing for any hoisted dependency
I think monorepo support could be added easily by either:
--monorepo
option: the tool would scan the sub-directories forpackage.json
files and resolve the locally installed package to either the value in it’s nearest node_modules folder UP TO the root directory--add-node-modules X
option: the tool would scan these additional locations for module metadata
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top Results From Across the Web
Monorepo Explained
Gradle Build Tool provides support for parallel tasks via configuration, and task orchestration through its flexible Groovy or Kotlin DSL. natively supported ......
Read more >What is monorepo? (and should you use it?) - Semaphore CI
A monorepo is a version-controlled code repository that holds many projects. While these projects may be related, they are often logically ...
Read more >Monorepos in Git | Atlassian Git Tutorial
A monorepo is a repository that contains more than one logical project. Read here to learn about conceptual challenges, performance issues and more....
Read more >11 Great Tools for a Monorepo in 2021 | Bits and Pieces
Best tools to build a monorepo. Develop, build, and publish packages, and scale development. Discover Lerna, Nx, Rush, Bit, Yarn Workspaces, and more....
Read more >Monorepo Support | Render · Cloud Hosting for Developers
Monorepo Support helps you deploy just the services you need to eliminate unnecessary deploys, control build costs, and ship faster. Monorepo Support offers...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It seems to be working correctly 😃
No command line flag needed, as license-report now mimics the node package resolution algorithm: if a package is not found in node_modules, just step up 1 level up to the root directory and try it again.