diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-07 20:46:07 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-07 20:50:17 +0100 |
| commit | 48f6b38c333fdaf57fe418c6e6a5fc4bfb928921 (patch) | |
| tree | 2f13763840bd55545b5ce7085517ce369dbf1bef /package.json | |
| parent | 1ec33f27f5bff2b96c80b954b53a62951b6cd354 (diff) | |
Pre-compiles api
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 8 |
1 files changed, 5 insertions, 3 deletions
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": { |
