Tenderly / tenderly-cli

CLI tool for Smart Contract error tracking, monitoring and alerting.
https://tenderly.co
GNU General Public License v3.0
520 stars 137 forks source link

Adding validator for packages in `package.json`. #116

Closed g4ndr4 closed 1 year ago

g4ndr4 commented 1 year ago

Description

This PR is adding validation for packages listed in package.json for actions. Specifically, it ensures that versions of packages stated in package.json comply with constraints specified for different versions of web3 action runtimes.

The validation occurs during the build phase, before the publish/deploy phase.

Two new files are being added to introduce the validation:

The validator itself uses npm view command to fetch versions from the npm registry.