From 2d722a4a12e41dcafb89065dde6809ffc2137cf3 Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Sat, 12 Aug 2023 08:53:47 +0100 Subject: Uses NPM lifecycle scripts --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'package.json') 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", -- cgit v1.2.3