Many workflows in a management pack may be running scripts. As a best practice, all scripts should compile outside of the MP.
Scripts in MPs should be treated just as scripts in the rest of the product treated, and should be thoroughly tested for functionality, performance, and logic. If scripts do not compile outside of the context of the MP, running them in the context of the MP will definitely cause either script errors or failed workflows that are not an MP issue, but a script issue.
Debug scripts in your MP just as you would debug any other script.