From 953cbbfa997db60bdcce6a17625f5561c56b431d Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Sat, 12 Aug 2023 09:17:19 +0100 Subject: Cleans API build in NPM lifecycle script --- package.json | 1 + 1 file changed, 1 insertion(+) (limited to 'package.json') diff --git a/package.json b/package.json index 3cfb976..57e5bf0 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "start": "astro dev", "build": "npm run build-api && astro build", "build-api": "cd api-src && npx tsc", + "prebuild-api": "cd api && fd \"(.js|.js.map)$\" | xargs rm", "preview": "astro preview", "astro": "astro", "lint": "eslint .", -- cgit v1.2.3