A better alternative to "Working with Typescript" > "Workspace usage" #10002
alcuadrado
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I just read the documentation about how you recommend using typescript in a workspace, and I wanted to share this alternative solution that I came up with:
.npmrc
I sethoist-pattern[]=!@types/*
tsconfig.json
I set"typeRoots": ["${configDir}/node_modules/@types"]
This way every package only gets its own
@types/
and I don't get any version issue nor@types/
dependencies of a package interferring with the other packages.Beta Was this translation helpful? Give feedback.
All reactions