From c8d17c4b55e832d1562f5fe6c9d506ddc5f71e2f Mon Sep 17 00:00:00 2001 From: Nicholas Petrasek Date: Wed, 4 Oct 2023 03:25:22 +0200 Subject: [PATCH] fixed tsconfig and build output --- tsconfig.json | 44 ++++++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 571ac96..9580ed1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,26 +1,30 @@ { - "compilerOptions": { - "target": "ES6" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, - "module": "ESNext" /* Specify what module code is generated. */, + "compilerOptions": { + "target": "ES6" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, + "module": "ESNext" /* Specify what module code is generated. */, - "declaration": true, // Generates corresponding '.d.ts' file - "esModuleInterop": true, // Interop between commonjs and ESModules, useful if consuming dependencies with varying module types - "moduleResolution": "node", // Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). + "outDir": "./dist", // Redirect output structure to the directory. + "rootDir": "src", // Specify the root directory of input files. Use to control the output directory structure with --outDir. + "baseUrl": ".", - "strict": true, // Enable all strict type checking options - "skipLibCheck": true, // Skip type checking of declaration files + "declaration": true, // Generates corresponding '.d.ts' file + "esModuleInterop": true, // Interop between commonjs and ESModules, useful if consuming dependencies with varying module types + "moduleResolution": "node", // Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). - /* Experimental */ - "experimentalDecorators": true, // Enables experimental support for ES7 decorators + "strict": true, // Enable all strict type checking options + "skipLibCheck": true, // Skip type checking of declaration files - /* Advanced Options */ - "removeComments": true, // Remove comments from the output files - "noImplicitAny": true, // Raise error on expressions and declarations with an implied 'any' type - "noUnusedLocals": true, // Report errors on unused locals - "noUnusedParameters": true, // Report errors on unused parameters - "noImplicitReturns": true, // Report an error if not all code paths in function return a value - "noFallthroughCasesInSwitch": true, // Report errors for fallthrough cases in switch statement - "forceConsistentCasingInFileNames": true // Disallow inconsistently-cased references to the same file. - }, - "exclude": ["node_modules", "dist", "src/**/*.spec.ts"] + /* Experimental */ + "experimentalDecorators": true, // Enables experimental support for ES7 decorators + + /* Advanced Options */ + "removeComments": true, // Remove comments from the output files + "noImplicitAny": true, // Raise error on expressions and declarations with an implied 'any' type + "noUnusedLocals": true, // Report errors on unused locals + "noUnusedParameters": true, // Report errors on unused parameters + "noImplicitReturns": true, // Report an error if not all code paths in function return a value + "noFallthroughCasesInSwitch": true, // Report errors for fallthrough cases in switch statement + "forceConsistentCasingInFileNames": true // Disallow inconsistently-cased references to the same file. + }, + "exclude": ["node_modules", "dist", "src/**/*.spec.ts"] }