Sharing .h5p exports
I am using Drupal on Ubuntu 18.04. When I create new content, it displays correctly and appears as a new .h5p archive in the exports folder.
I recently tried to share a sample .h5p archive with a colleague and he couldn't open it although he is able to create new ones using the same source code we share using GitHub. I tried uploading the .h5p archive myself using the same environment I am using to develop and it didn't work either. A very long list of files (including the LICENSE file but mostly node_modules) are preventing the upload (first screenshot).
Even when I moved the project out of the development folder and cloned a clean version from GitHub into it without any problematic files, it won't work without installing node_modules which consequently appear to be automatically included in the .h5p export.
If I extract the contents of the .h5p archive (shown in h5p_archive1.png), delete the LICENSE, README, and node_modules directory from our project folder (H5P-ISAAC-1.0, shown in h5p_archive2.png) and recompress it (to .zip and rename to .h5p), the H5P library dependencies still prevent the upload (last screenshot).
Have I missed some way of excluding these directories when creating new content?