add pre-publish check to avoid mismatch between dep versions and actual bundled deps