From 8d63d7e40a1762259fb544ea6917b29ca8ff2486 Mon Sep 17 00:00:00 2001 From: unional Date: Tue, 12 Sep 2023 12:59:34 -0700 Subject: [PATCH] chore: add test:type script --- package.json | 2 +- turbo.json | 8 ++++++++ type-plus/package.json | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 98980df265..d72d2b090f 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "size": "turbo run size", "test": "turbo run test", "tp": "pnpm --filter type-plus", - "verify": "turbo run lint build build:doc depcheck coverage size", + "verify": "turbo run lint build build:doc depcheck coverage test:type size", "version": "changeset version" }, "devDependencies": { diff --git a/turbo.json b/turbo.json index c4c4f054f3..344c64dce5 100644 --- a/turbo.json +++ b/turbo.json @@ -48,6 +48,14 @@ "inputs": [ "ts/**/*.tsx?" ] + }, + "test:type": { + "dependsOn": [ + "^build" + ], + "inputs": [ + "ts/**/*.tsx?" + ] } } } diff --git a/type-plus/package.json b/type-plus/package.json index 84ffbdb32e..febca4b93e 100644 --- a/type-plus/package.json +++ b/type-plus/package.json @@ -57,6 +57,7 @@ "nuke": "pnpm clean && rimraf node_modules", "size": "size-limit", "test": "cross-env NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 jest", + "test:type": "tsc --noEmit", "test:watch": "cross-env NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 jest --watch", "verify": "npm-run-all clean -p build depcheck lint coverage -p size", "watch": "cross-env NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 jest --watch",