Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only attempt npm install if the extension version has changed #18

Open
robb-j opened this issue Jun 13, 2021 · 0 comments
Open

Only attempt npm install if the extension version has changed #18

robb-j opened this issue Jun 13, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@robb-j
Copy link
Owner

robb-j commented Jun 13, 2021

The extension could store the installed version of the extension along side the yaml server. On startup it could check if the active and installed versions are different, and only if different do an npm install.

This could reduce startup time of the extension and improve overall performance.

Thoughts

It could piggyback on the package.json version to save creating another file, the extension could put the version in there when copying the file. That would require it to read, parse and modify the JSON rather than just straight copy it.

Alternatively, it could create a installed_version file and use that for the check

@robb-j robb-j added the enhancement New feature or request label Jun 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant