mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-16 16:11:24 +00:00
Fix compilation with ts-node
ts-node by default does not respect the `files` setting in `tsconfig.json` and therefore does not respect the d.ts file under `types/`. This commit adds an explicit `typeRoots` option, as recommended by https://github.com/TypeStrong/ts-node#help-my-types-are-missing Fixes #989 Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
e1cf539b1c
commit
0ac88439ea
1 changed files with 5 additions and 1 deletions
|
@ -10,6 +10,10 @@
|
|||
"sourceMap": true,
|
||||
"outDir": "./dist",
|
||||
"baseUrl": "./",
|
||||
"incremental": true
|
||||
"incremental": true,
|
||||
"typeRoots": [
|
||||
"./types",
|
||||
"./node_modules/@types"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue