Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(js): type checking #14

Merged
merged 1 commit into from
Dec 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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