Skip to content

Commit

Permalink
chore: update jsconfig files (#104)
Browse files Browse the repository at this point in the history
Follow up to #103.
  • Loading branch information
jtoar authored Sep 22, 2023
1 parent 6b54bf4 commit 4f17151
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 8 deletions.
41 changes: 37 additions & 4 deletions api/jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,42 @@
{
"compilerOptions": {
"baseUrl": ".",
"noEmit": true,
"esModuleInterop": true,
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"skipLibCheck": false,
"baseUrl": "./",
"rootDirs": [
"./src",
"../.redwood/types/mirror/api/src"
],
"paths": {
"src/*": ["./src/*"]
}
"src/*": [
"./src/*",
"../.redwood/types/mirror/api/src/*"
],
"types/*": [
"./types/*",
"../types/*"
],
"@redwoodjs/testing": [
"../node_modules/@redwoodjs/testing/api"
]
},
"typeRoots": [
"../node_modules/@types",
"./node_modules/@types"
],
"types": [
"jest"
],
"jsx": "react-jsx"
},
"include": ["src/**/*", "../.redwood/index.d.ts"]
"include": [
"src",
"../.redwood/types/includes/all-*",
"../.redwood/types/includes/api-*",
"../types"
]
}
47 changes: 47 additions & 0 deletions scripts/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"compilerOptions": {
"noEmit": true,
"esModuleInterop": true,
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"baseUrl": "./",
"paths": {
"$api/*": [
"../api/*"
],
"api/*": [
"../api/*"
],
"$web/*": [
"../web/*"
],
"web/*": [
"../web/*"
],
"$web/src/*": [
"../web/src/*",
"../.redwood/types/mirror/web/src/*"
],
"web/src/*": [
"../web/src/*",
"../.redwood/types/mirror/web/src/*"
],
"types/*": [
"../types/*",
"../web/types/*",
"../api/types/*"
]
},
"typeRoots": [
"../node_modules/@types"
],
"jsx": "preserve"
},
"include": [
".",
"../.redwood/types/includes/all-*",
"../.redwood/types/includes/web-*",
"../types"
]
}
49 changes: 45 additions & 4 deletions web/jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,51 @@
{
"compilerOptions": {
"baseUrl": ".",
"noEmit": true,
"esModuleInterop": true,
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"baseUrl": "./",
"skipLibCheck": false,
"rootDirs": [
"./src",
"../.redwood/types/mirror/web/src",
"../api/src",
"../.redwood/types/mirror/api/src"
],
"paths": {
"src/*": ["./src/*"]
"src/*": [
"./src/*",
"../.redwood/types/mirror/web/src/*",
"../api/src/*",
"../.redwood/types/mirror/api/src/*"
],
"$api/*": [
"../api/*"
],
"types/*": [
"./types/*",
"../types/*"
],
"@redwoodjs/testing": [
"../node_modules/@redwoodjs/testing/web"
]
},
"jsx": "preserve",
"typeRoots": [
"../node_modules/@types",
"./node_modules/@types"
],
"types": [
"jest",
"@testing-library/jest-dom"
],
"jsx": "preserve"
},
"include": ["src/**/*"]
"include": [
"src",
"../.redwood/types/includes/all-*",
"../.redwood/types/includes/web-*",
"../types",
"./types"
]
}

0 comments on commit 4f17151

Please sign in to comment.