NPM uses the .gitignore file, which includes the generated JS code. This caused the v4.8.0 JS packages to be completely empty. Adding an empty .npmignore file resolves the issue as if a .npmignore file is detected, the .gitignore file is ignored.