It's more an issue with the modules authors, npm already has a documented way to exclude files from being published.
Furthermore, it would be quite irritating if it started assuming specific file extensions are forbidden instead of using the explicit list provided by the author.