Yarn a solution yarn workspaces focus. command takes list workspaces, extend list include transitive dependencies, exclude else the install. example, following let install the dependencies required your main app be built deployed:
Yarn's workspaces the low-level primitives tools Lerna (and do!) use. will try support high-level feature Lerna offers, by implementing core logic the resolution linking steps Yarn we hope enable usages improve performance.
Yarn workspaces a great to organize code multiple projects a single repository. simplifies code sharing projects improves ability maintain shared code a .
To learn about workspaces, check links: Workspaces Yarn; Workspaces; yarn workspace <workspace_name> <command> will run chosen Yarn command the selected workspace.
Yarn Workspaces a feature allows users install dependencies multiple package.json files subfolders a single root package.json file, in go.
Yarn workspaces aim make working monorepos easy, solving of main cases yarn link a declarative way. short, allow multiple projects live in same repository to cross-reference other - modification one's source code instantly applied the others.
yarn workspace. this page. yarn workspace. Run command the workspace. Usage .
Workspaces Yarn; Workspaces; Commands yarn workspaces info [--json] command display workspace dependency tree your current project. yarn workspaces info
If -R,--recursive set, Yarn find workspaces run command by recursively evaluating dependencies devDependencies fields, of at workspaces fields. -W,--worktree set, Yarn find workspaces run command by at current worktree.
What Yarn Workspaces? Yarn a package manager the folks Facebook, it a great feature called Yarn workspaces. Yarn workspaces you organize project codebase a monolithic repository (monorepo). idea that single repository contain multiple packages. Packages isolated could live independent .
yarn workspaces 简单介绍 | naeco's blogs