From faf6be889e0c47fe9a816a9f1c0771096bc43b35 Mon Sep 17 00:00:00 2001 From: Lukas Hass Date: Thu, 3 Feb 2022 18:41:13 +0100 Subject: [PATCH] add typecheck script --- .github/workflows/continuous_integration.yml | 5 ++++- front/package.json | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index 45bcbfe0..7d643595 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -56,6 +56,10 @@ jobs: ADMIN_URL: "//localhost:80" working-directory: "front" + - name: "Typecheck" + run: yarn run typecheck + working-directory: "front" + - name: "Svelte check" run: yarn run svelte-check working-directory: "front" @@ -165,4 +169,3 @@ jobs: - name: "Prettier" run: yarn run pretty-check working-directory: "back" - diff --git a/front/package.json b/front/package.json index 1dbf4a99..f9246112 100644 --- a/front/package.json +++ b/front/package.json @@ -76,6 +76,7 @@ "svelte-check": "svelte-check --fail-on-warnings --fail-on-hints --compiler-warnings \"a11y-no-onchange:ignore,a11y-autofocus:ignore,a11y-media-has-caption:ignore\"", "pretty": "yarn prettier --write 'src/**/*.{ts,svelte}'", "pretty-check": "yarn prettier --check 'src/**/*.{ts,svelte}'", + "typecheck": "tsc --noEmit", "typesafe-i18n": "typesafe-i18n --no-watch" }, "lint-staged": {