exposed newLitPack and added support for codeTemplates