Move the main file into lib/index.js