From 4d2a7f82f96c3a5dc588e3f5d97a912a3508530f Mon Sep 17 00:00:00 2001 From: Les Orchard Date: Wed, 24 Jul 2024 22:38:03 -0700 Subject: [PATCH] run pagefind as part of build --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 070908ef..1ce97e9c 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,9 @@ "scripts": { "start": "npm-run-all --parallel serve watch", "serve": "http-server -d true -i true -p 9980 build", - "watch": "onchange -v -i -d 1000 content package.json index.js lib templates -- npm run build", - "build": "node index.js build", + "watch": "onchange -v -i -d 1000 content package.json index.js lib templates -- npm run build-posts", + "build": "node index.js build && npm run build-search", + "build-posts": "node index.js build", "build-search": "pagefind --site build --keep-index-url", "test": "echo \"Error: no test specified\" && exit 1", "stage": "npm-run-all --serial stage:build stage:deploy",