odiff
odiff copied to clipboard
Reduce size of npm package
I recently investigated why the size of the package is that big and found out, that we include a lot of unnecessary stuff. It also seems like esy includes the RunTests.exe in the release build.
Things that can be removed from the package:
- [x] ~odiff-Linux-xxx.tar.gz~
- [x] ~odiff-MacOS-xxx.tar.gz~
- [x] ~odiff-Windows_x64-xxx.tar.gz~
- [ ] RunTests.exe
I am not publishing them on npm https://www.jsdelivr.com/package/npm/odiff-bin I left them to publish as assets to GitHub release (I know one team that are using raw binaries to run odiff)
Ah I see! But the RunTests.exe is something which could be removed, right?
Is it there?
Yes, in the bin
folder after you install it.
So it seems to be packaged by esy
Hmmm it is weird, I thought "includePackages": [ "odiff" ]
should do the trick but yeah we should not add this to the binary