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

Question: Why both tsconfig paths and yarn workspaces? #4

Open
jonaskello opened this issue Feb 26, 2022 · 0 comments
Open

Question: Why both tsconfig paths and yarn workspaces? #4

jonaskello opened this issue Feb 26, 2022 · 0 comments

Comments

@jonaskello
Copy link

I was researching turborepo and found this great example repo :-)

While looking through it I found that tsconfig.base.json had paths specified like this:

"baseUrl": ".",
    "paths": {
      "@my-monorepo/*": ["./packages/*"]
    }

However this seems redundant since the repo is also using yarn workspaces in the root package.json like this:

"workspaces": [
    "packages/*"
  ],

This will create symlinks in node_modules/@my-monorepo/XXX so module resolution would work without using paths in tsconfig.base.json.

So my question is why both tsconfig paths and yarn worspaces are used?

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