Skip to content

Conversation

Rich-Harris
Copy link
Member

This improves the sync script a bit — it allows you to specify a -p or --pull flag which pulls from the remote (or clones the repo if necessary), and also specify which packages we care about:

pnpm sync-docs          # sync everything
pnpm sync-docs -w       # sync everything and watch for changes

pnpm sync-docs cli      # just sync `cli` docs
pnpm sync-docs cli kit  # sync `cli` and `kit` docs

pnpm sync-docs -pw kit  # pull or clone `kit` docs, sync, and watch for changes

This is groundwork for setting up an automated workflow

@Rich-Harris Rich-Harris merged commit cd53d5a into main Oct 30, 2024
5 checks passed
@Rich-Harris Rich-Harris deleted the better-sync branch October 30, 2024 19:19
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.

2 participants