From 9fc28c8571eaa8efb3788efee2479bddd777083e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Santiago=20Mart=C3=ADn=20Agra?= Date: Sat, 2 May 2020 19:32:55 +0200 Subject: [PATCH] chore: fix import inside test files --- package.json | 4 ++-- src/tsconfig.json | 3 +++ tsconfig.json | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 src/tsconfig.json diff --git a/package.json b/package.json index 8926421..d16f37e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "scripts": { - "compile": "tsc --project .", - "compile:check": "tsc --project . --noEmit", + "compile": "tsc --project ./src", + "compile:check": "yarn compile --noEmit", "test": "jest", "test:watch": "jest --watch", "start": "node dist/index.js", diff --git a/src/tsconfig.json b/src/tsconfig.json new file mode 100644 index 0000000..6c34774 --- /dev/null +++ b/src/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "../tsconfig.json" +} diff --git a/tsconfig.json b/tsconfig.json index 7756833..7ef0b65 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -63,5 +63,5 @@ /* Advanced Options */ "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ }, - "exclude": ["dist/*", "test/*"] + "exclude": ["dist/*"] }