mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-29 05:52:46 +00:00
6ee2ddead5
TypeScript recommends using a base config from https://github.com/tsconfig/bases. Using this config reduces compile times by ~30% and the size of the dist folder by ~45%. It also enables the recommended `esModuleInterop` option, which necessitated some changes to imports. See also https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html#support-for-import-d-from-cjs-from-commonjs-modules-with---esmoduleinterop Signed-off-by: David Mehren <git@herrmehren.de>
19 lines
430 B
JSON
19 lines
430 B
JSON
{
|
|
"extends": "@tsconfig/node12/tsconfig.json",
|
|
"compilerOptions": {
|
|
"declaration": true,
|
|
"removeComments": true,
|
|
"emitDecoratorMetadata": true,
|
|
"experimentalDecorators": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"sourceMap": true,
|
|
"outDir": "./dist",
|
|
"baseUrl": "./",
|
|
"incremental": true,
|
|
"typeRoots": [
|
|
"./types",
|
|
"./node_modules/@types"
|
|
],
|
|
"strict": false
|
|
}
|
|
}
|