diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e81b120..4c7ad82 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,6 +16,25 @@ jobs: actions: read uses: ./.github/workflows/eslint.yml + tsc: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "22" + cache: "yarn" + + - name: Install project dependencies + run: yarn + + - name: Run TypeScript compiler + run: yarn tsc + test: needs: eslint runs-on: ubuntu-latest diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 0bea42c..270cbbf 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -11,6 +11,25 @@ jobs: actions: read uses: ./.github/workflows/eslint.yml + tsc: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "22" + cache: "yarn" + + - name: Install project dependencies + run: yarn + + - name: Run TypeScript compiler + run: yarn tsc + test: needs: eslint permissions: write-all diff --git a/.gitignore b/.gitignore index 87ea0e7..34dfc41 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ node_modules/ lib/ coverage/ .env +dist/ diff --git a/src/transactions/ledger.ts b/src/transactions/ledger.ts index 5136aad..bd973a2 100644 --- a/src/transactions/ledger.ts +++ b/src/transactions/ledger.ts @@ -1,5 +1,4 @@ import { BN } from "@secata-public/bitmanipulation-ts" -// @ts-expect-error - no types available when importing in external proj import BIPPath from 'bip32-path' import type Transport from "@ledgerhq/hw-transport" import type { Signature } from "./types"