我目前正在使用create-react-app我的一个项目来引导它.基本上,我试图在tsconfig.json中设置路径,方法是将它们添加到create-react-app生成的默认tsconfig.json中:
"baseUrl": "./src",
"paths": {
"interfaces/*": [
"common/interfaces/*",
],
"components/*": [
"common/components/*",
],
},
Run Code Online (Sandbox Code Playgroud)
但是,每次运行yarn start基本上都运行时react-scripts start,它会删除我的更改并再次生成默认配置.
如何告诉create-react-app使用我的自定义配置?