feat: set up npm publish
for standalone server executable
#411
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
resolves #282
The only thing I didn't do is change the
package.json
name
, since that would also change the VSCode extension name. Butsolidity
is taken on NPM, so you'll need to temporarily change the name each time you runnpm publish
and then change it back. This can be done in a GitHub Action.Publish to NPM:
npm publish
.Users:
The changes:
package.json
to usetsup
server.ts
to read the default config frompackage.json
so that even if the client doesn't send a config, they'll still get the default behavior. This is because if the non-VSCode client has to keep manually copying the client config frompackage.json
, it's hard to keep it up-to-date.server.ts
is just me moving theonDidChangeConfiguration
logic into a separate function so that it can be run in bothonInitialize
andonDidChangeConfiguration
.