You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Changesets does not run pre and post scripts. #982
I'm currently using changesets on multiple monorepos that hold a react-native application and a nodejs api. Currently, when running yarn changeset version, if there's a pending changeset on my app package, it's version is updated accordingly. That works as it should, the problem comes when for example, I want to update the apps's android and ios versions and build code identifiers. Previously I was using react-native-version executed through a postversion script. Unfortunately, changesets doesn't execute any post or pre scripts.
Proposed solution
Executing user defined pre and post (version, publish) scripts on updated packages would solve this problem.
Reacted by Benjie, Arnaud, Robin Genz, Rasso Hilber, Ondřej Vodáček, Rense Bakker, Gabriel Nastase, Mateusz Bielak and Florian Gyger
Activity
hansonfang commentedon Oct 26, 2022
same issue
bluwy commentedon Oct 6, 2024
#1145 has shared a repro at https://github.com/duowb/pnpm-changsets-monorepo-example
brense commentedon Apr 15, 2025
We would also really like it if
changeset versionwould callnpm run preversionandnpm run postversionunder the hoodAndarist commentedon Apr 15, 2025
I think this makes sense - we should support this, with an option to opt-out of this behavior. PRs are welcome