Skip to content

*ependencies bits in package.json questionable #37

@sogaiu

Description

@sogaiu

Currently, *ependencies bits in package.json are like:

"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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions