diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cb7e16b..9f2f1ed 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,10 +13,11 @@ jobs: uses: tree-sitter/workflows/.github/workflows/package-npm.yml@main secrets: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - crates: - uses: tree-sitter/workflows/.github/workflows/package-crates.yml@main - secrets: - CARGO_REGISTRY_TOKEN: ${{secrets.CARGO_REGISTRY_TOKEN}} + # Uncomment when it works. + # crates: + # uses: tree-sitter/workflows/.github/workflows/package-crates.yml@main + # secrets: + # CARGO_REGISTRY_TOKEN: ${{secrets.CARGO_REGISTRY_TOKEN}} pypi: uses: tree-sitter/workflows/.github/workflows/package-pypi.yml@main secrets: diff --git a/package.json b/package.json index d341286..cd166b9 100644 --- a/package.json +++ b/package.json @@ -28,11 +28,6 @@ "peerDependencies": { "tree-sitter": "^0.21.1" }, - "peerDependenciesMeta": { - "tree-sitter": { - "optional": true - } - }, "devDependencies": { "tree-sitter-cli": "0.23.0", "prettier": "3.0.0-alpha.6", @@ -42,7 +37,10 @@ "install": "node-gyp-build", "prestart": "tree-sitter build --wasm", "start": "tree-sitter playground", - "test": "node --test bindings/node/*_test.js" + "build": "tree-sitter generate && node-gyp build", + "test": "tree-sitter test && tree-sitter parse examples/*.scala --quiet --time && node --test bindings/node/*_test.js", + "format": "prettier --write --ignore-unknown grammar.js", + "prebuildify": "prebuildify --napi --strip" }, "tree-sitter": [ { @@ -51,8 +49,8 @@ "scala", "sbt" ], - "highlights": "queries/scala/highlights.scm", - "locals": "queries/scala/locals.scm" + "highlights": "queries/highlights.scm", + "locals": "queries/locals.scm" } ] }