From 82050004f666ccec056eb100b751f700619d1c1d Mon Sep 17 00:00:00 2001 From: Danya H Date: Wed, 29 Jan 2025 14:57:58 +0000 Subject: [PATCH] upd (fw): - sharing same tsconfig --- browser/tsconfig.json | 24 +++--------------------- client/tsconfig.json | 24 +++--------------------- rpc/tsconfig.json | 17 +++-------------- server/tsconfig.json | 24 +++--------------------- tsconfig.json | 2 +- tsconfig.ragefw.json | 29 +++++++++++++++++++++++++++++ 6 files changed, 42 insertions(+), 78 deletions(-) create mode 100644 tsconfig.ragefw.json diff --git a/browser/tsconfig.json b/browser/tsconfig.json index 4927bd1..f2b3033 100644 --- a/browser/tsconfig.json +++ b/browser/tsconfig.json @@ -1,26 +1,8 @@ { "$schema": "https://json.schemastore.org/tsconfig", - "display": "Base", - "exclude": [ - "node_modules" - ], + "display": "Browser", "compilerOptions": { - "incremental": false, - "composite": false, - "target": "ES2022", - "experimentalDecorators": true, - "moduleDetection": "auto", - "module": "CommonJS", - "resolveJsonModule": true, - "declaration": false, - "declarationMap": false, - "sourceMap": false, - "downlevelIteration": false, - "inlineSourceMap": false, - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "strict": true, - "skipLibCheck": true, "types": ["./node_modules/@ragempcommunity/types-cef/index.d.ts", "node"] - } + }, + "extends": ["../tsconfig.ragefw.json"] } diff --git a/client/tsconfig.json b/client/tsconfig.json index 06fdd32..49158e3 100644 --- a/client/tsconfig.json +++ b/client/tsconfig.json @@ -1,26 +1,8 @@ { "$schema": "https://json.schemastore.org/tsconfig", - "display": "Base", - "exclude": [ - "node_modules" - ], + "display": "Client", "compilerOptions": { - "incremental": false, - "composite": false, - "target": "ES2022", - "experimentalDecorators": true, - "moduleDetection": "auto", - "module": "CommonJS", - "resolveJsonModule": true, - "declaration": false, - "declarationMap": false, - "sourceMap": false, - "downlevelIteration": false, - "inlineSourceMap": false, - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "strict": true, - "skipLibCheck": true, "types": ["./node_modules/@ragempcommunity/types-client/index.d.ts"] - } + }, + "extends": ["../tsconfig.ragefw.json"] } diff --git a/rpc/tsconfig.json b/rpc/tsconfig.json index b0992b7..2bc7661 100644 --- a/rpc/tsconfig.json +++ b/rpc/tsconfig.json @@ -1,7 +1,7 @@ { + "$schema": "https://json.schemastore.org/tsconfig", + "display": "RPC", "compilerOptions": { - "target": "es2022", - "module": "commonjs", "moduleResolution": "node", "lib": [ "es2022", @@ -10,20 +10,9 @@ "declaration": true, "declarationMap": true, "sourceMap": true, - - "esModuleInterop": true, - - "strict": true, - "forceConsistentCasingInFileNames": true, - "noImplicitAny": true, - "skipLibCheck": true }, "include": [ - "src/**/*", "./index.d.ts" ], - "exclude": [ - "node_modules", - "dist" - ] + "extends": ["../tsconfig.ragefw.json"] } \ No newline at end of file diff --git a/server/tsconfig.json b/server/tsconfig.json index 848723c..54db9ac 100644 --- a/server/tsconfig.json +++ b/server/tsconfig.json @@ -1,26 +1,8 @@ { "$schema": "https://json.schemastore.org/tsconfig", - "display": "Base", - "exclude": [ - "node_modules" - ], + "display": "Server", "compilerOptions": { - "incremental": false, - "composite": false, - "target": "ES2022", - "experimentalDecorators": true, - "moduleDetection": "auto", - "module": "CommonJS", - "resolveJsonModule": true, - "declaration": true, - "declarationMap": false, - "sourceMap": false, - "downlevelIteration": false, - "inlineSourceMap": false, - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "strict": true, - "skipLibCheck": true, "types": ["./node_modules/@ragempcommunity/types-server/index.d.ts"] - } + }, + "extends": ["../tsconfig.ragefw.json"] } diff --git a/tsconfig.json b/tsconfig.json index e876cef..aa5c8bc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ "target": "es2022", "lib": [ "ESNext", - "ES2019", + "es2022", "dom" ], "moduleResolution": "node", diff --git a/tsconfig.ragefw.json b/tsconfig.ragefw.json new file mode 100644 index 0000000..f954044 --- /dev/null +++ b/tsconfig.ragefw.json @@ -0,0 +1,29 @@ +{ + "compilerOptions": { + "incremental": false, + "composite": false, + + "target": "es2022", + "moduleDetection": "auto", + "module": "commonjs", + + "esModuleInterop": true, + "experimentalDecorators": true, + "forceConsistentCasingInFileNames": true, + "noImplicitAny": true, + "resolveJsonModule": true, + "skipLibCheck": true, + "strict": true, + + "declaration": false, + "declarationMap": false, + "downlevelIteration": false, + "inlineSourceMap": false, + "sourceMap": false + }, + "exclude": [ + "node_modules", + "dist", + ".tsup" + ] +} \ No newline at end of file