Revert "Revert "Only include necessary files in npm package.""

This reverts commit 3fc851c2e10b5d34cbe81b1506fd086a7e759e09.