mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 15:44:45 -04: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,
|
"sourceMap": true,
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"baseUrl": "./",
|
"baseUrl": "./",
|
||||||
"incremental": true
|
"incremental": true,
|
||||||
|
"typeRoots": [
|
||||||
|
"./types",
|
||||||
|
"./node_modules/@types"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue