Read main and style from package.json when possible