Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
It seems like tree-sitter#422 was merged while it was failing on CI.

This reverts some of the changes.
  • Loading branch information
eed3si9n committed Sep 10, 2024
1 parent a366c0d commit 7a7eee2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": [
{
Expand All @@ -51,8 +49,8 @@
"scala",
"sbt"
],
"highlights": "queries/scala/highlights.scm",
"locals": "queries/scala/locals.scm"
"highlights": "queries/highlights.scm",
"locals": "queries/locals.scm"
}
]
}

0 comments on commit 7a7eee2

Please sign in to comment.