Skip to content

Commit

Permalink
Remove extends within Strapi tsconfig.json files (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
kin0992 authored Feb 28, 2024
1 parent 9cbc418 commit 5b5eb3f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
13 changes: 11 additions & 2 deletions apps/strapi-cms/src/admin/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
{
"extends": [
"@strapi/typescript-utils/tsconfigs/admin",
"../../../../tsconfig.json"
"@strapi/typescript-utils/tsconfigs/admin"
],
"compilerOptions": {
"target": "es2021",
"module": "commonjs",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"sourceMap": true,
"declaration": true
},
"include": [
"../plugins/**/admin/src/**/*",
"./"
Expand Down
10 changes: 8 additions & 2 deletions apps/strapi-cms/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": [
"@strapi/typescript-utils/tsconfigs/server",
"../../tsconfig.json"
],
"compilerOptions": {
// with declaration to true strapi raises a runtime error
Expand All @@ -10,7 +9,14 @@
// at /node_modules/@strapi/plugin-users-permissions/server/services/users-permissions.js:115:39
"declaration": false,
"outDir": "dist",
"rootDir": "."
"rootDir": ".",
"target": "es2021",
"module": "commonjs",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"sourceMap": true,
},
"include": [
"./",
Expand Down

0 comments on commit 5b5eb3f

Please sign in to comment.