Skip to content

Latest commit

 

History

History
52 lines (41 loc) · 908 Bytes

CONTRIBUTING.md

File metadata and controls

52 lines (41 loc) · 908 Bytes

CONTRIBUTING

(TBD)

Dev

Setup node using mise

$ mise use node@20
$ npm install

Run docs locally

$ cd docs/
$ npx live-server

wasm build should be updated

Run playground locally

$ npm exec tree-sitter build-wasm
$ npm exec tree-sitter playground

Build

$ npm run build
$ npm exec tree-sitter build-wasm
# update docs assets and versions

Publish

After update release version, change version in package.json and Cargo.toml. Also update lockfile with npm i --package-lock-only and cargo clean.

npm

$ npm login
$ npm publish

Check before publish with --dry-run

crates.io

$ cargo login
$ cargo publish

Check before publish with --dry-run