fixed stupid root import bug in typescript
This commit is contained in:
1 parent
337ba3491e
commit
9694ffb238
5 files changed
+5020
-5044
No files matched your search
+2
-1
@@ -5,4 +5,5 @@ api/venv
|
||||
**__pycache__**
|
||||
*.db*
|
||||
.coverage
|
||||
api/tests/samples/
|
||||
api/tests/samples/
|
||||
.tmp**
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"plugins": [
|
||||
[
|
||||
"module-resolver",
|
||||
{
|
||||
"root": ["./src"],
|
||||
"alias": {
|
||||
"~": "./src"
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
@@ -16,6 +16,7 @@
|
||||
"@types/react": "^17.0.33",
|
||||
"@types/react-dom": "^17.0.10",
|
||||
"@types/react-router-dom": "^5.3.2",
|
||||
"babel-plugin-module-resolver": "^4.1.0",
|
||||
"concurrently": "^6.3.0",
|
||||
"husky": "^7.0.4",
|
||||
"instead": "^1.0.3",
|
||||
|
||||
+26
-12
@@ -1,15 +1,29 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"module": "commonjs",
|
||||
"strict": true,
|
||||
"include": ["src/**/*"],
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"jsx": "react-jsx",
|
||||
"rootDir": "./src",
|
||||
"module": "commonjs",
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"noImplicitAny": true,
|
||||
"noUnusedLocals": true,
|
||||
"importHelpers": true,
|
||||
"moduleResolution": "node",
|
||||
"experimentalDecorators": true,
|
||||
"esModuleInterop": true,
|
||||
"lib": ["dom", "es2015"]
|
||||
},
|
||||
"include": [
|
||||
"src/**/*"
|
||||
]
|
||||
}
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"resolveJsonModule": true,
|
||||
"pretty": true,
|
||||
"sourceMap": true,
|
||||
"rootDir": ".",
|
||||
"baseUrl": "./src",
|
||||
"allowJs": false,
|
||||
"lib": [
|
||||
"es6", "dom", "es2017"
|
||||
],
|
||||
"paths": {
|
||||
"~/*": ["./*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
+4978
-5031
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user