gitignore: ignore index.d.ts and index.js

They're generated files from the `tsc` compiler.
npmignore: add empty file so that the generated TS files get published