chore: update typecheck workflow to include shared packages and build step
This commit is contained in:
5
.github/workflows/typecheck.yml
vendored
5
.github/workflows/typecheck.yml
vendored
@@ -13,6 +13,7 @@ on:
|
|||||||
- 'pnpm-lock.yaml'
|
- 'pnpm-lock.yaml'
|
||||||
- 'package.json'
|
- 'package.json'
|
||||||
- 'packages/*/package.json'
|
- 'packages/*/package.json'
|
||||||
|
- 'shared/*/package.json'
|
||||||
- '.github/workflows/typecheck.yml'
|
- '.github/workflows/typecheck.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
@@ -23,6 +24,7 @@ on:
|
|||||||
- 'pnpm-lock.yaml'
|
- 'pnpm-lock.yaml'
|
||||||
- 'package.json'
|
- 'package.json'
|
||||||
- 'packages/*/package.json'
|
- 'packages/*/package.json'
|
||||||
|
- 'shared/*/package.json'
|
||||||
- '.github/workflows/typecheck.yml'
|
- '.github/workflows/typecheck.yml'
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
@@ -53,5 +55,8 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
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
|
- name: Run TypeScript type check
|
||||||
run: pnpm run typecheck
|
run: pnpm run typecheck
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
|
"types": "./dist/index.d.ts",
|
||||||
"require": "./dist/index.js",
|
"require": "./dist/index.js",
|
||||||
"import": "./dist/index.mjs"
|
"import": "./dist/index.mjs"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user