create an index.js file and link it as default main inside the package.json. The index should contain a link to the lib: module.exports = { <%= slugname %>: require('./lib/<%= slugname %>.js') };