Skip to content

Conversation

@wjthieme
Copy link
Member

@wjthieme wjthieme commented Jan 23, 2025

Right now updating the packages in the monorepo is either update all of them at once or update none. This is not very efficient and annoying because we get lots of new versions without any changes.

This also allows us to publish the legacy-sdk packages using the same process as the new sdks.

Furthermore we don't really have proper changelogs for the libraries. This enforces PRs to contain a changeset (which will be built into a changelog and determines which packages should be published)

@orca-so orca-so deleted a comment from changeset-bot bot Jan 23, 2025
@wjthieme wjthieme changed the title Integrate changeset into monorepo Integrate changesets into monorepo Jan 24, 2025
Copy link
Collaborator

@odcheung odcheung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall looks good. just 1 question on the dependency publish workflow (but not blocking)

Comment on lines +17 to +25
# Patch version numbers for local dependencies
local_deps=$(jq -r '.dependencies // {} | to_entries | .[] | select(.value == "*") | .key' package.json)
if [ -n "$local_deps" ]; then
for dep in $local_deps; do
latest_version=$(npm view $dep version)
jq --arg dep "$dep" --arg version "$latest_version" \
'.dependencies[$dep] = $version' package.json > tmp.json && mv tmp.json package.json
done
fi
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

say you updated common-sdk, i see that this will increment legacy-sdk's version, but will it publish legacy-sdk as well?

Copy link
Member Author

@wjthieme wjthieme Jan 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only packages that have one ore more changesets will be updated. If you update common-sdk and sdd a changeset for common-sdk only common-sdk will get updated

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only packages that have one ore more changesets will be updated

@wjthieme wjthieme merged commit bc70bfb into main Jan 27, 2025
6 checks passed
@wjthieme wjthieme deleted the wjthieme/changeset branch January 27, 2025 14:56
This was referenced Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants