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 }