Skip to content

Commit

Permalink
Use shared library as created by parser
Browse files Browse the repository at this point in the history
  • Loading branch information
bbannier committed Jun 24, 2024
1 parent a4b7a13 commit 368175a
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 40 deletions.
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ linting rules.
Building this package requires Node. To build ast-grep support for Spicy run

```console
git submodule update --init --recursive
npm install
```

Expand Down
56 changes: 48 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@
],
"dependencies": {
"@ast-grep/cli": "^0.24.0",
"tree-sitter-cli": "^0.22.6"
"tree-sitter-spicy": "github:bbannier/tree-sitter-spicy"
},
"scripts": {
"install": "bash -c '(cd tree-sitter-spicy && tree-sitter generate && TREE_SITTER_LIBDIR=../lib tree-sitter test >/dev/null && (mv ../lib/spicy.dylib ../lib/spicy.so 2>/dev/null || true))'",
"test": "sg test",
"parse": "node parse.js"
"test": "sg test"
}
}
22 changes: 0 additions & 22 deletions parse.js

This file was deleted.

2 changes: 1 addition & 1 deletion sgconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ testConfigs:

customLanguages:
spicy:
libraryPath: ./lib/spicy.so
libraryPath: node_modules/tree-sitter-spicy/build/Release/tree_sitter_spicy_binding.node
extensions: [spicy]
1 change: 0 additions & 1 deletion tree-sitter-spicy
Submodule tree-sitter-spicy deleted from adf74b

0 comments on commit 368175a

Please sign in to comment.