Background
I have a config like this:
{
"compilerOptions": {
"baseUrl": "./src",
"paths": {
"common": ["./common/*"],
"components": ["./components/*"],
"services": ["./services/*"],
"styles": ["./styles/*"],
"state": ["./state/*"]
},
"lib": ["ES5"]
},
"include": ["./src/**/*"]
}
Focusing only on the components
directory, the structure is:
components/shared/*
because of which, to import a shared file, I have to write:
import File from "components/shared/file"
Question
How should I modify the jsconfig so that I will be able to directly import from the shared folder like:
import File from "shared/file"