From bf89189609a703a8b7d86e6184495fe46dee00d7 Mon Sep 17 00:00:00 2001 From: Vincent Date: Tue, 30 Apr 2024 16:06:40 +0200 Subject: [PATCH] Always build experiment data before npm run dev This won't re-build it if `nimbus.yaml` changes, but at least it won't break if you haven't run it before, or if it's changed since the last time you started the dev server. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1a6a4b192..50e1aab69 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "type": "module", "scripts": { - "dev": "next dev --port=6060", + "dev": "npm run build-nimbus && next dev --port=6060", "dev:cronjobs": "tsx --tsconfig tsconfig.cronjobs.json src/scripts/cronjobs/*.tsx", "dev:nimbus": "node --watch-path config/nimbus.yaml src/scripts/build/nimbusTypes.js", "build": "npm run get-location-data && npm run build-glean && npm run build-nimbus && next build && npm run build-cronjobs",