Contributing

Clone, dev watch mode, build, version bump, and publish workflows.

#Getting the code

bash
git clone https://github.com/shahtirthhh/void-snippets.git
cd void-snippets
pnpm install

#Development

bash
pnpm dev        # watch mode — all packages rebuild on change

Changes to packages/core/src/** rebuild core, which then triggers rebuilds of client and react since they depend on it.

#Building

bash
pnpm build          # build all packages
pnpm build:core     # build only @void-snippets/core
pnpm build:client   # build only @void-snippets/client
pnpm build:react    # build only @void-snippets/react

#Publishing

bash
# 1. Bump version — use patch, minor, or major
pnpm --filter @void-snippets/react exec npm version minor

# 2. Publish to npm
pnpm --filter @void-snippets/react publish --access public --no-git-checks

# 3. Publish all packages at once
pnpm publish:all

#Conventions

  • All source lives in packages//src/
  • One barrel index.ts per package — only export the public API
  • Keep core dependency-free — no imports from client or react
  • Tests alongside source files as *.test.ts
  • Commit messages: feat:, fix:, docs:, chore: