From ca47c1f6195b211ed5d61d2821864c8cecd86bad Mon Sep 17 00:00:00 2001 From: Dmitry Parzhitsky Date: Wed, 30 Jan 2019 19:06:46 +0200 Subject: [PATCH] Use TypeScript 3's project references --- package.json | 2 +- src/tsconfig.json | 6 ++++++ test/tsconfig.json | 6 ++++++ tsconfig.json | 3 --- 4 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 src/tsconfig.json create mode 100644 test/tsconfig.json diff --git a/package.json b/package.json index 467fb4b..c9748f6 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "scripts": { "lint": "tslint --project . --format stylish", "test": "npx mocha -r ./node_modules/ts-node/register ./test/**/*.spec.ts", - "build": "npx tsc", + "build": "npx tsc --build src", "clean": "npx rimraf dist", "rebuild": "npm run clean && npm run build", "dev": "npm run build -- --watch", diff --git a/src/tsconfig.json b/src/tsconfig.json new file mode 100644 index 0000000..7ef83af --- /dev/null +++ b/src/tsconfig.json @@ -0,0 +1,6 @@ +{ + "extends": "../tsconfig", + "compilerOptions": { + "composite": true + } +} \ No newline at end of file diff --git a/test/tsconfig.json b/test/tsconfig.json new file mode 100644 index 0000000..35faa28 --- /dev/null +++ b/test/tsconfig.json @@ -0,0 +1,6 @@ +{ + "extends": "../tsconfig", + "references": [ + { "path": "../src" } + ] +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 2dae512..c632529 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,4 @@ "stripInternal": true, "downlevelIteration": true, }, - "include": [ - "./src", - ], }