customize-cra icon indicating copy to clipboard operation
customize-cra copied to clipboard

my tsconfig.json should be free! please let it go!

Open lemondreamtobe opened this issue 4 years ago • 1 comments

图片 everytime i start my project, it will overwrite my tsconfig! it make my paths useless ! how to fix that!

lemondreamtobe avatar Jan 05 '21 10:01 lemondreamtobe

You can get around that like this to tsconfig:

{
  "extends": "./tsconfig.paths.json", // <-- Add this line
  "compilerOptions": {
    "target": "es6",

tsconfig.paths.json

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@components/*": ["src/client/components/*"],
      // Add more paths here
    }
  }
}

Hope that helps

ChromeQ avatar Feb 26 '21 05:02 ChromeQ