Skip to content

Commit

Permalink
ci(js): type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeldking committed Dec 29, 2023
1 parent 9742688 commit e24925c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/typescript-CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,8 @@ jobs:
working-directory: ./js
run: |
pnpm run prettier:check
- name: Type Checking
working-directory: ./js
run: |
pnpm run type:check
3 changes: 2 additions & 1 deletion js/examples/openai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"main": "index.js",
"scripts": {
"build": "tsc --build tsconfig.json",
"start": "node dist/index.js"
"start": "node dist/index.js",
"type:check": "tsc --noEmit"
},
"author": "mikyo@arize.com",
"license": "Apache-2.0",
Expand Down
3 changes: 2 additions & 1 deletion js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"description": "Monorepo for OpenInference Javascript Tooling",
"scripts": {
"prettier:check": "prettier --check .",
"prettier:write": "prettier --write ."
"prettier:write": "prettier --write .",
"type:check": "pnpm run -r type:check"
},
"keywords": [
"telemetry",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"prebuild": "rimraf dist & pnpm run version:update",
"build": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"version:update": "../../scripts/version-update.js",
"type:check": "tsc --noEmit",
"test": "jest ."
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"scripts": {
"prebuild": "rimraf dist",
"build": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"type:check": "tsc --noEmit",
"test": "echo \"Error: no test specified\" && exit 1"
},
"files": [
Expand Down

0 comments on commit e24925c

Please sign in to comment.