Skip to content

Commit

Permalink
Update CI to check TypeScript types in runtime NPM package
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewlacy committed Jan 3, 2024
1 parent f8a8b5c commit 2f9f8b8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ jobs:
run: make check-db-schema
- name: Check Clippy
run: cargo clippy --all -- -Dwarnings
- name: Install runtime distribution packages
run: |
cd crates/brioche/runtime
npm install
- name: Check runtime distribution types
run: |
cd crates/brioche/runtime
npm run check
- name: Check runtime distribution is up to date
run: |
cd crates/brioche/runtime
Expand Down
3 changes: 2 additions & 1 deletion crates/brioche/runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "brioche-runtime",
"version": "0.0.0",
"scripts": {
"build": "esbuild --bundle src/index.ts --format=esm --outfile=dist/index.js --minify-whitespace"
"build": "esbuild --bundle src/index.ts --format=esm --outfile=dist/index.js --minify-whitespace",
"check": "tsc --noEmit"
},
"devDependencies": {
"esbuild": "^0.19.2"
Expand Down
1 change: 1 addition & 0 deletions crates/brioche/runtime/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"target": "ESNext",
"skipDefaultLibCheck": true,
"strict": true,
"moduleResolution": "bundler",
"noFallthroughCasesInSwitch": true,
Expand Down

0 comments on commit 2f9f8b8

Please sign in to comment.