matrix-appservice-discord: run pre/post hooks for overridden phases

This commit is contained in:
Winter 2022-11-13 12:27:13 -05:00
parent 895da4caae
commit e322e38379

View file

@ -56,14 +56,22 @@ in mkYarnPackage rec {
nativeBuildInputs = [ makeWrapper ];
buildPhase = ''
runHook preBuild
# compile TypeScript sources
yarn --offline build
runHook postBuild
'';
doCheck = true;
checkPhase = ''
runHook preCheck
# the default 2000ms timeout is sometimes too short on our busy builders
yarn --offline test --timeout 10000
runHook postCheck
'';
postInstall = ''