From 76739e7be1be61cc098acbc1a5a7f7aa49a733ff Mon Sep 17 00:00:00 2001 From: Daniel Maslowski Date: Thu, 2 Mar 2023 19:26:57 +0100 Subject: [PATCH] add typecheck script and tsconfig.json --- package.json | 3 ++- tsconfig.json | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 tsconfig.json diff --git a/package.json b/package.json index 824b03a1..ee6efce8 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "types": "src/index.d.ts", "scripts": { "lint": "eslint --cache ./src", - "lint-fix": "eslint --fix --cache ./src" + "lint-fix": "eslint --fix --cache ./src", + "typecheck": "tsc --noEmit" }, "repository": { "type": "git", diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..f50531dd --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "module": "commonjs", + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "strict": true, + "skipLibCheck": true, + "rootDir": "src" + }, + "files": [ + "src/index.d.ts" + ] +}