fix coding style
update package.json and remove .npmignore

* remove unnecessary `main` field
* use  `files` field instead of .npmignore
* update devDependencies