diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml index 6eb7a8418..24bbc610a 100644 --- a/.github/workflows/typecheck.yml +++ b/.github/workflows/typecheck.yml @@ -13,6 +13,7 @@ on: - 'pnpm-lock.yaml' - 'package.json' - 'packages/*/package.json' + - 'shared/*/package.json' - '.github/workflows/typecheck.yml' pull_request: paths: @@ -23,6 +24,7 @@ on: - 'pnpm-lock.yaml' - 'package.json' - 'packages/*/package.json' + - 'shared/*/package.json' - '.github/workflows/typecheck.yml' defaults: @@ -53,5 +55,8 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile + - name: Build shared packages + run: pnpm run build --scope "@bigcapital/utils" --scope "@bigcapital/email-components" --scope "@bigcapital/pdf-templates" + - name: Run TypeScript type check run: pnpm run typecheck diff --git a/shared/bigcapital-utils/package.json b/shared/bigcapital-utils/package.json index cebda5e84..4e7df9315 100644 --- a/shared/bigcapital-utils/package.json +++ b/shared/bigcapital-utils/package.json @@ -7,6 +7,7 @@ "types": "./dist/index.d.ts", "exports": { ".": { + "types": "./dist/index.d.ts", "require": "./dist/index.js", "import": "./dist/index.mjs" }