From 10104d0a38b47b81dc4e7209333b224d1364d2f2 Mon Sep 17 00:00:00 2001 From: Dev Date: Sun, 15 Oct 2023 15:58:34 +0100 Subject: [PATCH] Update example mods `tsconfig.json` --- TypeScript/10ScopesAndTypes/tsconfig.json | 7 ++----- TypeScript/11BundleLoadingSample/tsconfig.json | 7 ++----- TypeScript/12ClassExtensionOverride/tsconfig.json | 7 ++----- TypeScript/13AddTrader/tsconfig.json | 7 ++----- TypeScript/14AfterDBLoadHook/tsconfig.json | 7 ++----- TypeScript/15HttpListenerExample/tsconfig.json | 7 ++----- TypeScript/16ImporterUtil/tsconfig.json | 7 ++----- TypeScript/17AsyncImporterWithDependency1/tsconfig.json | 7 ++----- TypeScript/17AsyncImporterWithDependency2/tsconfig.json | 7 ++----- TypeScript/18CustomItemService/tsconfig.json | 7 ++----- TypeScript/19UseExternalLibraries/tsconfig.json | 7 ++----- TypeScript/1LogToConsole/tsconfig.json | 7 ++----- TypeScript/2EditDatabase/tsconfig.json | 7 ++----- TypeScript/3GetSptConfigFile/tsconfig.json | 7 ++----- .../4.1UseACustomJson5OrJsonCConfigFile/tsconfig.json | 7 ++----- TypeScript/4UseACustomConfigFile/tsconfig.json | 7 ++----- TypeScript/5ReplaceMethod/tsconfig.json | 7 ++----- TypeScript/6ReferenceAnotherClass/tsconfig.json | 7 ++----- TypeScript/7OnLoadHook/tsconfig.json | 7 ++----- TypeScript/8OnUpdateHook/tsconfig.json | 7 ++----- TypeScript/9RouterHooks/tsconfig.json | 7 ++----- 21 files changed, 42 insertions(+), 105 deletions(-) diff --git a/TypeScript/10ScopesAndTypes/tsconfig.json b/TypeScript/10ScopesAndTypes/tsconfig.json index ed64bc7..b9985cc 100644 --- a/TypeScript/10ScopesAndTypes/tsconfig.json +++ b/TypeScript/10ScopesAndTypes/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "allowJs": true, "module": "CommonJS", - "target": "es2021", - "moduleResolution": "node", + "target": "ES2022", + "moduleResolution": "Node10", "esModuleInterop": true, "downlevelIteration": true, "experimentalDecorators": true, @@ -15,9 +15,6 @@ "@spt-aki/*": ["./types/*"] } }, - "lib": [ - "es2020" - ], "include": [ "src/*", "src/**/*" diff --git a/TypeScript/11BundleLoadingSample/tsconfig.json b/TypeScript/11BundleLoadingSample/tsconfig.json index ed64bc7..b9985cc 100644 --- a/TypeScript/11BundleLoadingSample/tsconfig.json +++ b/TypeScript/11BundleLoadingSample/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "allowJs": true, "module": "CommonJS", - "target": "es2021", - "moduleResolution": "node", + "target": "ES2022", + "moduleResolution": "Node10", "esModuleInterop": true, "downlevelIteration": true, "experimentalDecorators": true, @@ -15,9 +15,6 @@ "@spt-aki/*": ["./types/*"] } }, - "lib": [ - "es2020" - ], "include": [ "src/*", "src/**/*" diff --git a/TypeScript/12ClassExtensionOverride/tsconfig.json b/TypeScript/12ClassExtensionOverride/tsconfig.json index ed64bc7..b9985cc 100644 --- a/TypeScript/12ClassExtensionOverride/tsconfig.json +++ b/TypeScript/12ClassExtensionOverride/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "allowJs": true, "module": "CommonJS", - "target": "es2021", - "moduleResolution": "node", + "target": "ES2022", + "moduleResolution": "Node10", "esModuleInterop": true, "downlevelIteration": true, "experimentalDecorators": true, @@ -15,9 +15,6 @@ "@spt-aki/*": ["./types/*"] } }, - "lib": [ - "es2020" - ], "include": [ "src/*", "src/**/*" diff --git a/TypeScript/13AddTrader/tsconfig.json b/TypeScript/13AddTrader/tsconfig.json index ed64bc7..b9985cc 100644 --- a/TypeScript/13AddTrader/tsconfig.json +++ b/TypeScript/13AddTrader/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "allowJs": true, "module": "CommonJS", - "target": "es2021", - "moduleResolution": "node", + "target": "ES2022", + "moduleResolution": "Node10", "esModuleInterop": true, "downlevelIteration": true, "experimentalDecorators": true, @@ -15,9 +15,6 @@ "@spt-aki/*": ["./types/*"] } }, - "lib": [ - "es2020" - ], "include": [ "src/*", "src/**/*" diff --git a/TypeScript/14AfterDBLoadHook/tsconfig.json b/TypeScript/14AfterDBLoadHook/tsconfig.json index ed64bc7..b9985cc 100644 --- a/TypeScript/14AfterDBLoadHook/tsconfig.json +++ b/TypeScript/14AfterDBLoadHook/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "allowJs": true, "module": "CommonJS", - "target": "es2021", - "moduleResolution": "node", + "target": "ES2022", + "moduleResolution": "Node10", "esModuleInterop": true, "downlevelIteration": true, "experimentalDecorators": true, @@ -15,9 +15,6 @@ "@spt-aki/*": ["./types/*"] } }, - "lib": [ - "es2020" - ], "include": [ "src/*", "src/**/*" diff --git a/TypeScript/15HttpListenerExample/tsconfig.json b/TypeScript/15HttpListenerExample/tsconfig.json index ed64bc7..b9985cc 100644 --- a/TypeScript/15HttpListenerExample/tsconfig.json +++ b/TypeScript/15HttpListenerExample/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "allowJs": true, "module": "CommonJS", - "target": "es2021", - "moduleResolution": "node", + "target": "ES2022", + "moduleResolution": "Node10", "esModuleInterop": true, "downlevelIteration": true, "experimentalDecorators": true, @@ -15,9 +15,6 @@ "@spt-aki/*": ["./types/*"] } }, - "lib": [ - "es2020" - ], "include": [ "src/*", "src/**/*" diff --git a/TypeScript/16ImporterUtil/tsconfig.json b/TypeScript/16ImporterUtil/tsconfig.json index ed64bc7..b9985cc 100644 --- a/TypeScript/16ImporterUtil/tsconfig.json +++ b/TypeScript/16ImporterUtil/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "allowJs": true, "module": "CommonJS", - "target": "es2021", - "moduleResolution": "node", + "target": "ES2022", + "moduleResolution": "Node10", "esModuleInterop": true, "downlevelIteration": true, "experimentalDecorators": true, @@ -15,9 +15,6 @@ "@spt-aki/*": ["./types/*"] } }, - "lib": [ - "es2020" - ], "include": [ "src/*", "src/**/*" diff --git a/TypeScript/17AsyncImporterWithDependency1/tsconfig.json b/TypeScript/17AsyncImporterWithDependency1/tsconfig.json index ed64bc7..b9985cc 100644 --- a/TypeScript/17AsyncImporterWithDependency1/tsconfig.json +++ b/TypeScript/17AsyncImporterWithDependency1/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "allowJs": true, "module": "CommonJS", - "target": "es2021", - "moduleResolution": "node", + "target": "ES2022", + "moduleResolution": "Node10", "esModuleInterop": true, "downlevelIteration": true, "experimentalDecorators": true, @@ -15,9 +15,6 @@ "@spt-aki/*": ["./types/*"] } }, - "lib": [ - "es2020" - ], "include": [ "src/*", "src/**/*" diff --git a/TypeScript/17AsyncImporterWithDependency2/tsconfig.json b/TypeScript/17AsyncImporterWithDependency2/tsconfig.json index ed64bc7..b9985cc 100644 --- a/TypeScript/17AsyncImporterWithDependency2/tsconfig.json +++ b/TypeScript/17AsyncImporterWithDependency2/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "allowJs": true, "module": "CommonJS", - "target": "es2021", - "moduleResolution": "node", + "target": "ES2022", + "moduleResolution": "Node10", "esModuleInterop": true, "downlevelIteration": true, "experimentalDecorators": true, @@ -15,9 +15,6 @@ "@spt-aki/*": ["./types/*"] } }, - "lib": [ - "es2020" - ], "include": [ "src/*", "src/**/*" diff --git a/TypeScript/18CustomItemService/tsconfig.json b/TypeScript/18CustomItemService/tsconfig.json index ed64bc7..b9985cc 100644 --- a/TypeScript/18CustomItemService/tsconfig.json +++ b/TypeScript/18CustomItemService/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "allowJs": true, "module": "CommonJS", - "target": "es2021", - "moduleResolution": "node", + "target": "ES2022", + "moduleResolution": "Node10", "esModuleInterop": true, "downlevelIteration": true, "experimentalDecorators": true, @@ -15,9 +15,6 @@ "@spt-aki/*": ["./types/*"] } }, - "lib": [ - "es2020" - ], "include": [ "src/*", "src/**/*" diff --git a/TypeScript/19UseExternalLibraries/tsconfig.json b/TypeScript/19UseExternalLibraries/tsconfig.json index ed64bc7..b9985cc 100644 --- a/TypeScript/19UseExternalLibraries/tsconfig.json +++ b/TypeScript/19UseExternalLibraries/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "allowJs": true, "module": "CommonJS", - "target": "es2021", - "moduleResolution": "node", + "target": "ES2022", + "moduleResolution": "Node10", "esModuleInterop": true, "downlevelIteration": true, "experimentalDecorators": true, @@ -15,9 +15,6 @@ "@spt-aki/*": ["./types/*"] } }, - "lib": [ - "es2020" - ], "include": [ "src/*", "src/**/*" diff --git a/TypeScript/1LogToConsole/tsconfig.json b/TypeScript/1LogToConsole/tsconfig.json index ed64bc7..b9985cc 100644 --- a/TypeScript/1LogToConsole/tsconfig.json +++ b/TypeScript/1LogToConsole/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "allowJs": true, "module": "CommonJS", - "target": "es2021", - "moduleResolution": "node", + "target": "ES2022", + "moduleResolution": "Node10", "esModuleInterop": true, "downlevelIteration": true, "experimentalDecorators": true, @@ -15,9 +15,6 @@ "@spt-aki/*": ["./types/*"] } }, - "lib": [ - "es2020" - ], "include": [ "src/*", "src/**/*" diff --git a/TypeScript/2EditDatabase/tsconfig.json b/TypeScript/2EditDatabase/tsconfig.json index ed64bc7..b9985cc 100644 --- a/TypeScript/2EditDatabase/tsconfig.json +++ b/TypeScript/2EditDatabase/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "allowJs": true, "module": "CommonJS", - "target": "es2021", - "moduleResolution": "node", + "target": "ES2022", + "moduleResolution": "Node10", "esModuleInterop": true, "downlevelIteration": true, "experimentalDecorators": true, @@ -15,9 +15,6 @@ "@spt-aki/*": ["./types/*"] } }, - "lib": [ - "es2020" - ], "include": [ "src/*", "src/**/*" diff --git a/TypeScript/3GetSptConfigFile/tsconfig.json b/TypeScript/3GetSptConfigFile/tsconfig.json index ed64bc7..b9985cc 100644 --- a/TypeScript/3GetSptConfigFile/tsconfig.json +++ b/TypeScript/3GetSptConfigFile/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "allowJs": true, "module": "CommonJS", - "target": "es2021", - "moduleResolution": "node", + "target": "ES2022", + "moduleResolution": "Node10", "esModuleInterop": true, "downlevelIteration": true, "experimentalDecorators": true, @@ -15,9 +15,6 @@ "@spt-aki/*": ["./types/*"] } }, - "lib": [ - "es2020" - ], "include": [ "src/*", "src/**/*" diff --git a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/tsconfig.json b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/tsconfig.json index ed64bc7..b9985cc 100644 --- a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/tsconfig.json +++ b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "allowJs": true, "module": "CommonJS", - "target": "es2021", - "moduleResolution": "node", + "target": "ES2022", + "moduleResolution": "Node10", "esModuleInterop": true, "downlevelIteration": true, "experimentalDecorators": true, @@ -15,9 +15,6 @@ "@spt-aki/*": ["./types/*"] } }, - "lib": [ - "es2020" - ], "include": [ "src/*", "src/**/*" diff --git a/TypeScript/4UseACustomConfigFile/tsconfig.json b/TypeScript/4UseACustomConfigFile/tsconfig.json index ed64bc7..b9985cc 100644 --- a/TypeScript/4UseACustomConfigFile/tsconfig.json +++ b/TypeScript/4UseACustomConfigFile/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "allowJs": true, "module": "CommonJS", - "target": "es2021", - "moduleResolution": "node", + "target": "ES2022", + "moduleResolution": "Node10", "esModuleInterop": true, "downlevelIteration": true, "experimentalDecorators": true, @@ -15,9 +15,6 @@ "@spt-aki/*": ["./types/*"] } }, - "lib": [ - "es2020" - ], "include": [ "src/*", "src/**/*" diff --git a/TypeScript/5ReplaceMethod/tsconfig.json b/TypeScript/5ReplaceMethod/tsconfig.json index ed64bc7..b9985cc 100644 --- a/TypeScript/5ReplaceMethod/tsconfig.json +++ b/TypeScript/5ReplaceMethod/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "allowJs": true, "module": "CommonJS", - "target": "es2021", - "moduleResolution": "node", + "target": "ES2022", + "moduleResolution": "Node10", "esModuleInterop": true, "downlevelIteration": true, "experimentalDecorators": true, @@ -15,9 +15,6 @@ "@spt-aki/*": ["./types/*"] } }, - "lib": [ - "es2020" - ], "include": [ "src/*", "src/**/*" diff --git a/TypeScript/6ReferenceAnotherClass/tsconfig.json b/TypeScript/6ReferenceAnotherClass/tsconfig.json index ed64bc7..b9985cc 100644 --- a/TypeScript/6ReferenceAnotherClass/tsconfig.json +++ b/TypeScript/6ReferenceAnotherClass/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "allowJs": true, "module": "CommonJS", - "target": "es2021", - "moduleResolution": "node", + "target": "ES2022", + "moduleResolution": "Node10", "esModuleInterop": true, "downlevelIteration": true, "experimentalDecorators": true, @@ -15,9 +15,6 @@ "@spt-aki/*": ["./types/*"] } }, - "lib": [ - "es2020" - ], "include": [ "src/*", "src/**/*" diff --git a/TypeScript/7OnLoadHook/tsconfig.json b/TypeScript/7OnLoadHook/tsconfig.json index ed64bc7..b9985cc 100644 --- a/TypeScript/7OnLoadHook/tsconfig.json +++ b/TypeScript/7OnLoadHook/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "allowJs": true, "module": "CommonJS", - "target": "es2021", - "moduleResolution": "node", + "target": "ES2022", + "moduleResolution": "Node10", "esModuleInterop": true, "downlevelIteration": true, "experimentalDecorators": true, @@ -15,9 +15,6 @@ "@spt-aki/*": ["./types/*"] } }, - "lib": [ - "es2020" - ], "include": [ "src/*", "src/**/*" diff --git a/TypeScript/8OnUpdateHook/tsconfig.json b/TypeScript/8OnUpdateHook/tsconfig.json index ed64bc7..b9985cc 100644 --- a/TypeScript/8OnUpdateHook/tsconfig.json +++ b/TypeScript/8OnUpdateHook/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "allowJs": true, "module": "CommonJS", - "target": "es2021", - "moduleResolution": "node", + "target": "ES2022", + "moduleResolution": "Node10", "esModuleInterop": true, "downlevelIteration": true, "experimentalDecorators": true, @@ -15,9 +15,6 @@ "@spt-aki/*": ["./types/*"] } }, - "lib": [ - "es2020" - ], "include": [ "src/*", "src/**/*" diff --git a/TypeScript/9RouterHooks/tsconfig.json b/TypeScript/9RouterHooks/tsconfig.json index ed64bc7..b9985cc 100644 --- a/TypeScript/9RouterHooks/tsconfig.json +++ b/TypeScript/9RouterHooks/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "allowJs": true, "module": "CommonJS", - "target": "es2021", - "moduleResolution": "node", + "target": "ES2022", + "moduleResolution": "Node10", "esModuleInterop": true, "downlevelIteration": true, "experimentalDecorators": true, @@ -15,9 +15,6 @@ "@spt-aki/*": ["./types/*"] } }, - "lib": [ - "es2020" - ], "include": [ "src/*", "src/**/*"