Disabled `prepublish` when running production mode install.

See discussion in #3059.