From 88d6382a0f798376e4acffb4e58f3ae0c3c42d8f Mon Sep 17 00:00:00 2001 From: Derek Guenther Date: Sat, 10 Aug 2024 11:57:32 -0400 Subject: [PATCH] Typecheck in CI --- .github/workflows/ci.yml | 5 ++++- package.json | 1 + packages/data-facade/package.json | 2 +- packages/ironfish-native-module/package.json | 3 ++- packages/mobile-app/package.json | 3 ++- packages/ui-kit/package.json | 3 ++- 6 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 753e93f..a228610 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,4 +27,7 @@ jobs: run: npm ci - name: Lint - run: npm run lint \ No newline at end of file + run: npm run lint + + - name: Typecheck + run: npm run typecheck \ No newline at end of file diff --git a/package.json b/package.json index 935cc3d..f012f73 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "lint": "npm run lint --workspaces --if-present -- --max-warnings=0", "lint:fix": "npm run lint --workspaces --if-present -- --fix --max-warnings=0", + "typecheck": "npm run typecheck --workspaces --if-present", "postinstall": "git submodule update --init --recursive" }, "devDependencies": { diff --git a/packages/data-facade/package.json b/packages/data-facade/package.json index 35750f1..210a327 100644 --- a/packages/data-facade/package.json +++ b/packages/data-facade/package.json @@ -6,7 +6,7 @@ "main": "./src/index.ts", "types": "./src/index.ts", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "typecheck": "tsc --noEmit" }, "devDependencies": { "@tanstack/react-query": "^5.28.14", diff --git a/packages/ironfish-native-module/package.json b/packages/ironfish-native-module/package.json index d086b48..6b5647f 100644 --- a/packages/ironfish-native-module/package.json +++ b/packages/ironfish-native-module/package.json @@ -17,7 +17,8 @@ "cargo-ios": "tsx scripts/cargo-ios.ts", "cargo-ios-sim": "tsx scripts/cargo-ios.ts --target=ios-sim", "cargo-android": "tsx scripts/cargo-android.ts", - "build-rust": "npm run cargo-android && npm run cargo-ios -- --target=ios-sim" + "build-rust": "npm run cargo-android && npm run cargo-ios -- --target=ios-sim", + "typecheck": "tsc --noEmit" }, "keywords": [ "react-native", diff --git a/packages/mobile-app/package.json b/packages/mobile-app/package.json index 3c19985..f9d9f43 100644 --- a/packages/mobile-app/package.json +++ b/packages/mobile-app/package.json @@ -7,7 +7,8 @@ "android": "expo run:android", "ios": "expo run:ios", "prebuild": "expo prebuild", - "lint": "eslint ." + "lint": "eslint .", + "typecheck": "tsc --noEmit" }, "dependencies": { "@ironfish/sdk": "2.2.0", diff --git a/packages/ui-kit/package.json b/packages/ui-kit/package.json index 7fb1853..9c7c43a 100644 --- a/packages/ui-kit/package.json +++ b/packages/ui-kit/package.json @@ -16,7 +16,8 @@ ], "scripts": { "build": "tamagui-build --skip-types", - "watch": "tamagui-build --skip-types --watch" + "watch": "tamagui-build --skip-types --watch", + "typecheck": "tsc --noEmit" }, "dependencies": { "@tamagui/config": "1.102.1",