Update TSConfig to produce type definitions (#79)

* Update TSConfig to produce type definitions

Also, add some stricter type-checking, and remove settings that were set
to the same value as the default for that setting.

I also reorganized the sections into the sections that TypeScript itself
generates when you boot up a `tsconfig.json` using their CLI.

* Downgrade target to ES6 for Node 8 support

* Add engines specification to package.json

Make it clear that we support Node 8 and above.
This commit is contained in:
Hans Bergren
2020-01-24 09:07:56 -05:00
parent d2859382fe
commit 41d9b0b660
2 changed files with 26 additions and 17 deletions

View File

@@ -1,25 +1,31 @@
{
"compilerOptions": {
"target": "es6",
"lib": [
"es2017"
],
// Basic Options
"target": "ES6",
"module": "commonjs",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
// Directories
"outDir": "dist",
"rootDir": "src",
"module": "commonjs",
"moduleResolution": "node",
"strictNullChecks": false,
// Strict Type-Checking Options
"strict": true,
"noImplicitAny": false,
// Additional Checks
"noUnusedLocals": true,
"noUnusedParameters": true,
"removeComments": false,
"preserveConstEnums": false,
"suppressImplicitAnyIndexErrors": false,
"sourceMap": true,
"skipLibCheck": true,
"allowJs": true
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
// Module Resolution Options
"moduleResolution": "node",
// Advanced Options
"forceConsistentCasingInFileNames": true
},
"include": [
"src/**/*.ts"
]
"include": ["src/**/*.ts"]
}