diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-12 08:53:47 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-12 08:54:11 +0100 |
| commit | 2d722a4a12e41dcafb89065dde6809ffc2137cf3 (patch) | |
| tree | 6aae81b61d8b1b3972d6611f6e21f9e782e089bb /package.json | |
| parent | ab08e8599ba997611d275d890195c955820bc7dc (diff) | |
Uses NPM lifecycle scripts
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/package.json b/package.json index 396d8e4..3cfb976 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,10 @@ "type": "module", "private": "true", "scripts": { - "dev": "npm run build-api && astro dev", - "start": "npm run build-api && astro dev", + "predev": "npm run build-api", + "dev": "astro dev", + "prestart": "npm run build-api", + "start": "astro dev", "build": "npm run build-api && astro build", "build-api": "cd api-src && npx tsc", "preview": "astro preview", |
