zjsunit: Simplify typeRoots path (it’s relative to tsconfig.json).

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2019-06-28 22:17:45 -07:00
committed by Tim Abbott
parent 85c7eba3f9
commit 11a305e320

View File

@@ -1,7 +1,7 @@
require('ts-node').register({ require('ts-node').register({
project: 'static/js/tsconfig.json', project: 'static/js/tsconfig.json',
compilerOptions: { compilerOptions: {
typeRoots: ["node_modules/@types", "../../static/js/js_typings"], typeRoots: ["node_modules/@types", "./js_typings"],
// We don't have webpack to handle es6 modules here so directly // We don't have webpack to handle es6 modules here so directly
// transpile to CommonJS format. // transpile to CommonJS format.
module: "commonjs", module: "commonjs",