Thank you for your interest in contributing! π
- Fork the repository and clone your fork
- Install dependencies (pnpm workspace):
pnpm install
- Build all packages:
pnpm -r build
This is a pnpm workspace β every block is its own npm package:
blocknote-layout/
βββ packages/
β βββ blocknote-layout/ # Umbrella package re-exporting all blocks
β βββ extensions/ # Whiteboard + slideshow + mentions bundle
β βββ core/ # Shared utilities (blocknote-layout-core)
β βββ coderunner/ # Code runner block
β βββ genius/ # Genius AI block
β βββ mentions/ # Mention inline content
β βββ slideshow/ # Slideshow presentations
β βββ whiteboard/ # Whiteboard block
βββ .github/workflows/ # CI/CD pipelines
βββ pnpm-workspace.yaml
βββ package.json
Each package under packages/ has its own lib/ sources, vite.config.ts, and package.json.
-
Create a feature branch:
git checkout -b feature/my-awesome-feature
-
Make your changes in the relevant
packages/<block>/lib/ -
Build to check for errors:
pnpm -r build
-
Commit your changes with a clear message:
git commit -m "feat: improve code runner error handling"
We follow Conventional Commits:
feat: description- New featurefix: description- Bug fixdocs: description- Documentation changesrefactor: description- Code refactoringchore: description- Maintenance tasks
Releases are handled automatically via GitHub Actions when a version tag is pushed.
Versions are kept in lockstep β every package under packages/ shares the same version.
-
Update the version in every
packages/*/package.json:pnpm -r exec npm version 3.1.0 --no-git-tag-version -
Commit the version bump:
git commit -am "chore: bump version to 3.1.0" -
Create and push a tag:
git tag v3.1.0 git push origin main --tags
-
The GitHub Action will automatically build and publish all packages to npm.
- Ensure your code builds without errors
- Update documentation if needed
- Create a pull request with a clear description
- Wait for CI checks to pass
- Request review from maintainers
Please use GitHub Issues to report bugs or request features. Include:
- Which package (e.g.
blocknote-layout-coderunner) - Version number
- Steps to reproduce
- Expected vs actual behavior
By contributing, you agree that your contributions will be licensed under the MIT License.