A simple json schema that extends the json schema for package.json and adds fields relative to esy.
To use it in a vscode extension, look at how this is done for vscode-merlin.
It is also possible to specify its use manually in vscode for example. Other editors also have their way of specifying json schema using the json language server.