From b80271622b081ee0bbe074859908861cf9d83adf Mon Sep 17 00:00:00 2001 From: Aaron Friel Date: Mon, 3 Jul 2017 09:50:54 -0500 Subject: [PATCH] Switch to post build for JS build (speeds up build cycle) --- Setup.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Setup.hs b/Setup.hs index b0ff92e..50eddcf 100644 --- a/Setup.hs +++ b/Setup.hs @@ -6,11 +6,11 @@ main = do defaultMainWithHooks hooks buildJS hooks = do - let originalpreBuild = preBuild hooks + let originalPostBuild = postBuild hooks return $ hooks { - preBuild = \args flags -> do + postBuild = \args flags pkgDesc localBuildInfo -> do let npmbuild = proc "sh" ["./scripts/buildjs.sh"] (_, _, _, buildHandle) <- createProcess npmbuild waitForProcess buildHandle - originalpreBuild args flags + originalPostBuild args flags pkgDesc localBuildInfo }