Nylas Mail ships a copy of apm to build packages when users choose to install them. This won't be true much longer.