From 9aca9aea69be54a5ae94d735c3edadf7f89ece6d Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Mon, 23 Sep 2024 00:51:04 +0200 Subject: [PATCH] Make the script work even for users that do not use storybook --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 77142cd..1ada468 100755 --- a/package.json +++ b/package.json @@ -7,10 +7,10 @@ "url": "git://github.com/keycloakify/keycloakify-starter-webpack.git" }, "scripts": { - "prestorybook": "keycloakify update-kc-gen && keycloakify copy-keycloak-resources-to-public", - "storybook": "storybook dev -p 6006", - "prestart": "npm run prestorybook", + "prestart": "keycloakify update-kc-gen && keycloakify copy-keycloak-resources-to-public", "start": "react-scripts start", + "prestorybook": "npm run prestart", + "storybook": "storybook dev -p 6006", "prebuild": "keycloakify update-kc-gen", "build": "react-scripts build", "postbuild": "rimraf build/keycloak-resources",