From 3ccaa56cfc3936f67d26aa06c5a80a8b76471573 Mon Sep 17 00:00:00 2001 From: Laurent Caouissin Date: Thu, 2 Nov 2023 17:03:49 +0100 Subject: [PATCH] build; clean scripts --- queen-v2/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/queen-v2/package.json b/queen-v2/package.json index e1796d49..224c9b41 100644 --- a/queen-v2/package.json +++ b/queen-v2/package.json @@ -41,7 +41,8 @@ "prestart": "npx @inseefr/lunatic@2.6.3 workers", "start": "cross-env PORT=5002 react-scripts start", "start-dev": "cross-env PORT=5002 craco start", - "build": "npx @inseefr/lunatic@2.6.3 workers && react-scripts build && npm run post-build", + "prebuild": "npx @inseefr/lunatic@2.6.3 workers", + "build": "react-scripts build && npm run post-build", "post-build": "node ./configuration/build/build-sw.js && node ./configuration/build/manage-public-url.js && copy-and-watch configuration/files/* build", "test": "react-scripts test", "eject": "react-scripts eject",