From 3577caa045d64ad7e4add0a379c0fce6d37f994f Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Fri, 17 Feb 2017 02:20:14 -0500 Subject: [PATCH] fix(tsconfig): set rootDir option when outDir option is used Closes #9 --- examples/browser/tsconfig.json | 1 + examples/node-typescript/tsconfig.json | 3 ++- tsconfig.json | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/browser/tsconfig.json b/examples/browser/tsconfig.json index 4e8f488..8d64366 100644 --- a/examples/browser/tsconfig.json +++ b/examples/browser/tsconfig.json @@ -2,6 +2,7 @@ "extends": "../../tsconfig", "compilerOptions": { "outDir": "build", + "rootDir": "src", "module": "es6", "declaration": false, "removeComments": true, diff --git a/examples/node-typescript/tsconfig.json b/examples/node-typescript/tsconfig.json index 8aed961..f086f69 100644 --- a/examples/node-typescript/tsconfig.json +++ b/examples/node-typescript/tsconfig.json @@ -1,7 +1,8 @@ { "extends": "../../tsconfig", "compilerOptions": { - "outDir": "build" + "outDir": "build", + "rootDir": "src" }, "include": [ "src/*.ts" diff --git a/tsconfig.json b/tsconfig.json index 1619745..b8798c8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,7 @@ "compilerOptions": { "target": "es6", "outDir": "build/main", + "rootDir": "src", "moduleResolution": "node", "module": "commonjs", "declaration": true,