remove unused packages in mermaid