build(fix): proper typescript configuration
see #937
Signed-off-by: Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
| | |
| | | "public", |
| | | "node_modules" |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | "type": "module" |
| | | } |
| | |
| | | { |
| | | // Visit https://aka.ms/tsconfig to read more about this file |
| | | "compilerOptions": { |
| | | // File Layout |
| | | // "rootDir": "./src", |
| | | // "outDir": "./dist", |
| | | |
| | | // Environment Settings |
| | | // See also https://aka.ms/tsconfig/module |
| | | "module": "nodenext", |
| | | "target": "esnext", |
| | | "types": [], |
| | | // For nodejs: |
| | | // "lib": ["esnext"], |
| | | // "types": ["node"], |
| | | // and npm install -D @types/node |
| | | |
| | | // Other Outputs |
| | | "types": [ |
| | | "node" |
| | | ], |
| | | "sourceMap": true, |
| | | "declaration": true, |
| | | "declarationMap": true, |
| | | |
| | | // Stricter Typechecking Options |
| | | "noUncheckedIndexedAccess": true, |
| | | "exactOptionalPropertyTypes": true, |
| | | |
| | | // Style Options |
| | | // "noImplicitReturns": true, |
| | | // "noImplicitOverride": true, |
| | | // "noUnusedLocals": true, |
| | | // "noUnusedParameters": true, |
| | | // "noFallthroughCasesInSwitch": true, |
| | | // "noPropertyAccessFromIndexSignature": true, |
| | | |
| | | // Recommended Options |
| | | "strict": true, |
| | | "jsx": "react-jsx", |
| | | "verbatimModuleSyntax": true, |
| | |
| | | "noUncheckedSideEffectImports": true, |
| | | "moduleDetection": "force", |
| | | "skipLibCheck": true, |
| | | } |
| | | } |
| | | }, |
| | | "include": [ |
| | | "scripts/**/*", |
| | | ], |
| | | } |