-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Currently, *ependencies
bits in package.json
are like:
tree-sitter-clojure/package.json
Lines 12 to 17 in 262d6d6
"dependencies": { | |
"nan": "2.14.2" | |
}, | |
"devDependencies": { | |
"tree-sitter-cli": "0.19.3" | |
}, |
Based on recent investigations it has started to seem like these bits are unnecessary.
IIUC, what is relevant ATM is that the generated .c
source use ABI 13.
This is achievable with more recent versions of the tree-sitter cli by using the generate
subcommand with the --abi
option and an appropriate number. Further, there is no need to use npm
to obtain the tree-sitter cli as it can be compiled from source fairly easily (once you know how), there are also binaries downloadble from the tree-sitter repository releases page, and some distributions even have packages.
My current leaning is toward removing dependenices
and devDependencies
and provide instructions regarding installation and usage of the tree-sitter cli that don't suggest that npm is necessary.
Some of the advantages of doing this include:
- Simpler instructions (as use of npm complicates things unnecessarily)
- Less churn (see here for some related discussion)
I suspect this should help with ongoing maintenance as returning to pay attention after some period of inattention should become easier.