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:
Philip Molares 2021-03-05 00:37:35 +01:00 committed by David Mehren
parent 83e6949807
commit 0e478dab86
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -10,6 +10,10 @@
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true
"incremental": true,
"typeRoots": [
"./types",
"./node_modules/@types"
]
}
}