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__**
|
**__pycache__**
|
||||||
*.db*
|
*.db*
|
||||||
.coverage
|
.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": "^17.0.33",
|
||||||
"@types/react-dom": "^17.0.10",
|
"@types/react-dom": "^17.0.10",
|
||||||
"@types/react-router-dom": "^5.3.2",
|
"@types/react-router-dom": "^5.3.2",
|
||||||
|
"babel-plugin-module-resolver": "^4.1.0",
|
||||||
"concurrently": "^6.3.0",
|
"concurrently": "^6.3.0",
|
||||||
"husky": "^7.0.4",
|
"husky": "^7.0.4",
|
||||||
"instead": "^1.0.3",
|
"instead": "^1.0.3",
|
||||||
|
|||||||
+26
-12
@@ -1,15 +1,29 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"include": ["src/**/*"],
|
||||||
"target": "esnext",
|
"compilerOptions": {
|
||||||
"module": "commonjs",
|
"target": "es5",
|
||||||
"strict": true,
|
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
"rootDir": "./src",
|
"module": "commonjs",
|
||||||
|
"noImplicitThis": true,
|
||||||
|
"strictNullChecks": true,
|
||||||
|
"noImplicitAny": true,
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"importHelpers": true,
|
||||||
|
"moduleResolution": "node",
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"esModuleInterop": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"lib": ["dom", "es2015"]
|
"emitDecoratorMetadata": true,
|
||||||
},
|
"resolveJsonModule": true,
|
||||||
"include": [
|
"pretty": true,
|
||||||
"src/**/*"
|
"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