summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-12 08:53:47 +0100
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-12 08:54:11 +0100
commit2d722a4a12e41dcafb89065dde6809ffc2137cf3 (patch)
tree6aae81b61d8b1b3972d6611f6e21f9e782e089bb
parentab08e8599ba997611d275d890195c955820bc7dc (diff)
Uses NPM lifecycle scripts
-rw-r--r--package.json6
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",