jupyterlab-lsp
jupyterlab-lsp copied to clipboard
Consider using the `bin` field from `package.json` for specs derived from `NodeModuleSpec`
trafficstars
Elevator Pitch
Originally discussed in https://github.com/jupyter-lsp/jupyterlab-lsp/pull/1064.
Currently NodeModuleSpec specs use the scripts field, for example: https://github.com/jupyter-lsp/jupyterlab-lsp/blob/18d5c8c2e068f63141ddba6339c1cb4173c96341/python_packages/jupyter_lsp/jupyter_lsp/specs/typescript_language_server.py#L7
Motivation
Package maintainers might rename underlying files (as noticed in #1064).
Reusing the script referenced by the bin field might prove more reliable over time.
Design Ideas
Maybe some unknown as to what would happen if there are multiple bin entries.