chore: update prepublish to prepare in build script
#18427
Merged
prepublish to prepare in build script
#18427