Be aware that the extension does a lot of path detection, so adding this feature would require a lot of changes and a lot of tests to be sure it still works in all scenarios. If the CLI supports it, adding support for yarn workspaces could be an enhancement but I have no time for this (and no personal interest for yarn to be honest), so a PR is welcomed. For example, if I have a folder structure like /cmd /client And I want cmd to depend on client I could have: cmd/tsconfig. I'm confused as to how to set up typescript with project references such that things resolve properly. Yarn Workspaces is around for much longer. This is a VS Code extension, so VS Code workspaces should be used to open your yarn workspaces.īut is a direct usage of Angular CLI working with your configuration? Last time I tested, the CLI itself required to be in the root directory. 47 I'm trying to set up a monorepo using yarn. If you stumble on this issue, use npm pack on the linked dependency to fix it. Yarn is the second biggest package manager for JavaScript, so it might be fair to make a comparison. Although the video uses Lerna, everything said applies to Yarn or PNPM. package.json hello-lib package.json hello-lib-test package.json hello-cli package. The root-level project contains a package.json file, as does each workspace. The video walks you through the steps of adding Nx to a Lerna repo and showing many affordances Nx offers. In Yarn parlance, these modules are called workspaces.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |