diff --git a/.github/workflows/typescript-CI.yaml b/.github/workflows/typescript-CI.yaml index 86b689401..ce40868c5 100644 --- a/.github/workflows/typescript-CI.yaml +++ b/.github/workflows/typescript-CI.yaml @@ -35,3 +35,8 @@ jobs: working-directory: ./js run: | pnpm run prettier:check + - name: Type Checking + working-directory: ./js + run: | + pnpm run type:check + diff --git a/js/examples/openai/package.json b/js/examples/openai/package.json index 22b098dff..b3c095873 100644 --- a/js/examples/openai/package.json +++ b/js/examples/openai/package.json @@ -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", diff --git a/js/package.json b/js/package.json index f83669d73..fc36599cf 100644 --- a/js/package.json +++ b/js/package.json @@ -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", diff --git a/js/packages/openinference-instrumentation-openai/package.json b/js/packages/openinference-instrumentation-openai/package.json index a4ba1de3f..c9915dd33 100644 --- a/js/packages/openinference-instrumentation-openai/package.json +++ b/js/packages/openinference-instrumentation-openai/package.json @@ -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": { diff --git a/js/packages/openinference-semantic-conventions/package.json b/js/packages/openinference-semantic-conventions/package.json index d8a34d2c3..477a49d94 100644 --- a/js/packages/openinference-semantic-conventions/package.json +++ b/js/packages/openinference-semantic-conventions/package.json @@ -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": [