Skip to content

Instantly share code, notes, and snippets.

@TheEpicFace007
Last active December 7, 2020 13:47
Show Gist options
  • Save TheEpicFace007/22d22c092982d1cd28efce21e50ed146 to your computer and use it in GitHub Desktop.
Save TheEpicFace007/22d22c092982d1cd28efce21e50ed146 to your computer and use it in GitHub Desktop.
collection of tsconfig files
// npm module config - used when you export module
{
"compilerOptions": {
/* Basic Options */
"incremental": true,
"target": "ES2020",
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
"lib": [
"ES6",
"ESNext"
], /* Specify library files to be included in the compilation. */
"outDir": "./dist", /* Redirect output structure to the directory. */
"rootDir": "./lib", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
/* Extra */
"resolveJsonModule": true,
"allowJs": false,
"sourceMap": true,
"declaration": true
}
}
{
"compilerOptions": {
/* Basic Options */
"incremental": true,
"target": "ES2020",
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
"lib": [
"ES6",
"ESNext"
], /* Specify library files to be included in the compilation. */
"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. */
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
/* Extra */
"resolveJsonModule": true,
"allowJs": false,
"sourceMap": true,
"declaration": false,
"strict": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment