fix(build): fix scripts order in production