vertigis / vertigis-web-sdk

The SDK for VertiGIS Studio Web
https://developers.vertigisstudio.com/docs/web/sdk-overview/
MIT License
5 stars 3 forks source link

feat: Adding a script for updating package.json dev dependencies #33

Closed eric-parsons closed 2 years ago

eric-parsons commented 2 years ago

This PR adds a new script to the SDK: npm run upgrade. When run within the context of a custom library created by the SDK, it will automatically upgrade its package.json to point at the latest versions of Web and the Web SDK. It will also explicitly add/update any of Web's dependencies as direct dependencies of the project. Without this, VS Code autocomplete and intellisense don't work for things like arcgis-extensions or react.

sweco-nlgucu commented 2 years ago

Will check asap Eric!

sweco-nlgucu commented 2 years ago

@eric-parsons I've finally had time to test it, sorry for this delay. But, it works great on my end :-)!

eric-parsons commented 2 years ago

@eric-parsons I've finally had time to test it, sorry for this delay. But, it works great on my end :-)!

Great, glad it worked for you. Thanks for testing it. I've merged it in now. You will need to manually update the version of the SDK to the latest and manually add an upgrade script to your project's package.json, but after that you should be able to just run npm run upgrade in the future.

github-actions[bot] commented 2 years ago

:tada: This PR is included in version 1.5.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: