I have a lernajs mono repo and writing code with VSCode. Now I'm struggleing with the jsconfig.json
file and the Jump to definition
command.
When my jsconfig looks like this I can jump between my lerna packages but not into node_modules.
{
"compilerOptions": {
"module": "es2015",
"baseUrl": ".",
"target": "es6",
"jsx": "react",
"paths": {
"@my-org/package1": [
"path/to/package"
],
...
}
}
}
When it looks like this I can jump into node_modules but not into my lerna packages.
{
"compilerOptions": {
"module": "es2015",
"baseUrl": ".",
"target": "es6",
"jsx": "react",
"paths": {
"@my-org/package1": [
"path/to/package"
],
...
}
},
"include": [
"node_modules",
"**/node_modules/*"
]
}
So, how can I adjust the file that I can jump both into my lerna packages and node_modules?
from How to "jump to definition" in VSCode in a lernajs mono repo?
No comments:
Post a Comment