feat: add support for the 'main' attribute from package.json

Fixes #16

Closes #26