diff --git a/.github/workflows/svelte-check.yml b/.github/workflows/check.yml similarity index 86% rename from .github/workflows/svelte-check.yml rename to .github/workflows/check.yml index 942733e11..80656fcc5 100644 --- a/.github/workflows/svelte-check.yml +++ b/.github/workflows/check.yml @@ -1,8 +1,8 @@ -name: svelte-check +name: check on: [push, pull_request] jobs: - svelte-check: + check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/package.json b/package.json index 6e5af23f6..2ee8b4d8f 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "start": "vite", "serve": "vite preview", "build": "scripts/build", - "check": "svelte-check", + "check": "scripts/check", "test": "echo \"This template does not include a test runner by default.\" && exit 1" }, "type": "module", diff --git a/scripts/check b/scripts/check new file mode 100755 index 000000000..dddb507cd --- /dev/null +++ b/scripts/check @@ -0,0 +1,3 @@ +#!/bin/sh + +npx tsc --noEmit && npx svelte-check