diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-12 09:17:19 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-12 09:17:19 +0100 |
| commit | 953cbbfa997db60bdcce6a17625f5561c56b431d (patch) | |
| tree | 99784ea4bbd9d4a748eaa412b6b1dabfdf1a3e33 /package.json | |
| parent | 3cd73da4e13f64ef3740821d1d8604389e9735ee (diff) | |
Cleans API build in NPM lifecycle script
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 1 |
1 files changed, 1 insertions, 0 deletions
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 .", |
