Instead of ignoring files, explicitly specify what is included in the npm tarball