@algosail/tree-sitter 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,30 +1,18 @@
1
1
  {
2
2
  "name": "@algosail/tree-sitter",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Tree-sitter grammar for the Sail language",
5
5
  "main": "bindings/node",
6
6
  "types": "bindings/node",
7
7
  "scripts": {
8
- "build": "node-gyp rebuild",
8
+ "build:wasm": "tree-sitter build --wasm",
9
+ "build:native": "node-gyp rebuild",
9
10
  "generate": "tree-sitter generate",
10
- "install": "node-gyp-build",
11
- "prebuildify": "prebuildify --napi --strip"
12
- },
13
- "dependencies": {
14
- "node-addon-api": "^7.1.0",
15
- "node-gyp-build": "^4.8.0"
16
- },
17
- "peerDependencies": {
18
- "tree-sitter": "^0.21.0"
19
- },
20
- "peerDependenciesMeta": {
21
- "tree_sitter": {
22
- "optional": true
23
- }
11
+ "install": "echo 'Skipping native build. Run npm run build:native manually if needed.'"
24
12
  },
25
13
  "devDependencies": {
26
- "tree-sitter-cli": "^0.22.0",
27
- "prebuildify": "^6.0.0"
14
+ "node-addon-api": "^8.6.0",
15
+ "tree-sitter-cli": "^0.26.7"
28
16
  },
29
17
  "tree-sitter": [
30
18
  {
@@ -47,10 +35,8 @@
47
35
  "license": "MIT",
48
36
  "files": [
49
37
  "grammar.js",
50
- "binding.gyp",
51
- "prebuilds/**",
52
- "bindings/node/*",
53
38
  "queries/*",
54
- "src/**"
39
+ "src/**",
40
+ "*.wasm"
55
41
  ]
56
42
  }
package/src/grammar.json CHANGED
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "https://tree-sitter.github.io/tree-sitter/assets/schemas/grammar.schema.json",
2
3
  "name": "sail",
3
4
  "rules": {
4
5
  "source_file": {
@@ -629,5 +630,6 @@
629
630
  "precedences": [],
630
631
  "externals": [],
631
632
  "inline": [],
632
- "supertypes": []
633
- }
633
+ "supertypes": [],
634
+ "reserved": {}
635
+ }
@@ -299,6 +299,7 @@
299
299
  {
300
300
  "type": "source_file",
301
301
  "named": true,
302
+ "root": true,
302
303
  "fields": {},
303
304
  "children": {
304
305
  "multiple": true,