web-infra-dev / rslib

Create JavaScript libraries in a simple and intuitive way.
https://lib.rsbuild.dev/
MIT License
477 stars 26 forks source link

feat(create-rslib): add prepublishOnly script for templates #432

Closed wangjue666 closed 1 week ago

wangjue666 commented 1 week ago

Summary

Automatically execute the npm run build command before executing the npm publish command

Related Links

Checklist

fi3ework commented 1 week ago

Thanks for contribution. While we're trying to make create-rslib a minimal scaffold to create Rslib project. prepublishOnly is not must-have script if the user already ran npm run build in the release workflow ahead. Since the workflow might varies, we tend to keep it simple and leave the opt-in command to userland.

wangjue666 commented 1 week ago

Thanks for contribution. While we're trying to make create-rslib a minimal scaffold to create Rslib project. prepublishOnly is not must-have script if the user already ran npm run build in the release workflow ahead. Since the workflow might varies, we tend to keep it simple and leave the opt-in command to userland.

Appreciate your insights!