diff --git a/.github/workflows/test_mock-service_code.yml b/.github/workflows/test_mock-service_code.yml index 32638e1e4a..1727d7a731 100644 --- a/.github/workflows/test_mock-service_code.yml +++ b/.github/workflows/test_mock-service_code.yml @@ -35,6 +35,10 @@ jobs: working-directory: ${{ env.workingDirectory }} run: 'npm run lint' + - name: Check for TS errors + working-directory: ${{ env.workingDirectory }} + run: 'npm run typecheck' + - name: Test working-directory: ${{ env.workingDirectory }} run: 'npm run test' diff --git a/.github/workflows/test_service_code.yml b/.github/workflows/test_service_code.yml index 573780e07f..993699ea3f 100644 --- a/.github/workflows/test_service_code.yml +++ b/.github/workflows/test_service_code.yml @@ -39,6 +39,10 @@ jobs: working-directory: ${{ env.workingDirectory }} run: 'npm run knip' + - name: Check for TS errors + working-directory: ${{ env.workingDirectory }} + run: 'npm run typecheck' + - name: Unit-Test working-directory: ${{ env.workingDirectory }} env: diff --git a/services/121-service/package.json b/services/121-service/package.json index dd754b0686..f00136bf4e 100644 --- a/services/121-service/package.json +++ b/services/121-service/package.json @@ -33,7 +33,9 @@ "migration:run": "npm run typeorm migration:run -- -d ./src/datasource-manage-migrations.ts", "migration:revert": "npm run typeorm migration:revert -- -d ./src/datasource-manage-migrations.ts", "knip": "knip", - "knip:fix": "knip --fix-type files,exports,types" + "knip:fix": "knip --fix-type files,exports,types", + "typecheck": "tsc --noEmit", + "typecheck:dev": "tsc --noEmit --watch" }, "private": true, "dependencies": { diff --git a/services/mock-service/package.json b/services/mock-service/package.json index 97b3e6bc4a..95d63d7b59 100644 --- a/services/mock-service/package.json +++ b/services/mock-service/package.json @@ -16,7 +16,9 @@ "build": "nest build -p tsconfig.json", "start": "GLOBAL_121_VERSION=$(test -f \"VERSION.txt\" && cat VERSION.txt || echo $GLOBAL_121_VERSION) node dist/main.js", "prestart:dev": "npm install --no-fund --no-audit", - "start:dev": "nest start -r tsconfig-paths/register -b swc -w -p tsconfig.json" + "start:dev": "nest start -r tsconfig-paths/register -b swc -w -p tsconfig.json", + "typecheck": "tsc --noEmit", + "typecheck:dev": "tsc --noEmit --watch" }, "private": true, "dependencies": {