fix(build): use stream for serial tasks