From 32af6a33f71c4e2d9f2d660f80324a8cd76ec378 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 15 Aug 2024 02:47:48 +0800 Subject: [PATCH] Run `tsc` on test files (#64) --- package.json | 2 +- test/tsconfig.json | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 test/tsconfig.json diff --git a/package.json b/package.json index cfa3763..9bc7b85 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ }, "scripts": { "build": "del-cli distribution && tsc", - "test": "xo && ava && npm run build", + "test": "xo && ava && tsc --project test && npm run build", "prepack": "npm run build" }, "files": [ diff --git a/test/tsconfig.json b/test/tsconfig.json new file mode 100644 index 0000000..cddf977 --- /dev/null +++ b/test/tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "@sindresorhus/tsconfig", + "include": ["."], + "compilerOptions": { + "noEmit": true + } +}