From b23e3ae366b3e007b39e9eb5f269e1dfa25be7d2 Mon Sep 17 00:00:00 2001 From: dafuga Date: Wed, 2 Oct 2024 18:09:32 -0700 Subject: [PATCH] fix: building paraglide before checking type errors --- .github/workflows/check.yml | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 8176be14..9ccbdde9 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -33,4 +33,5 @@ jobs: fetch-depth: 1 - uses: oven-sh/setup-bun@v2 - run: bun install + - run: bun run build-paraglide - run: bunx tsc --noemit diff --git a/package.json b/package.json index 218500f8..4a1ef862 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "private": true, "scripts": { "dev": "vite dev", - "build": "npx @inlang/paraglide-js compile --project ./project.inlang --outdir ./src/lib/paraglide && vite build", + "build-paraglide": "npx @inlang/paraglide-js compile --project ./project.inlang --outdir ./src/lib/paraglide", + "build": "bun run build-paraglide && vite build", "preview": "vite preview", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",