From 48f6b38c333fdaf57fe418c6e6a5fc4bfb928921 Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Mon, 7 Aug 2023 20:46:07 +0100 Subject: Pre-compiles api --- package.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index a9ec215..31f160b 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,10 @@ "type": "module", "private": "true", "scripts": { - "dev": "astro dev", - "start": "astro dev", - "build": "astro build", + "dev": "npm run build-api && astro dev", + "start": "npm run build-api && astro dev", + "build": "npm run build-api && astro build", + "build-api": "cd api-src && npx tsc", "preview": "astro preview", "astro": "astro", "lint": "eslint .", @@ -15,6 +16,7 @@ "dependencies": { "astro": "^2.9.7", "dotenv": "^16.3.1", + "typescript": "^5.1.6", "vercel": "^31.2.2" }, "devDependencies": { -- cgit v1.2.3