googlecreativelab / teachablemachine-community

Example code snippets and machine learning code for Teachable Machine
https://g.co/teachablemachine
Apache License 2.0
1.52k stars 683 forks source link

Update make-version.js #327

Open Tinny-Robot opened 1 year ago

Tinny-Robot commented 1 year ago

This change adds a check to see if the package.json file exists before reading and parsing it. If the file does not exist, an error is thrown indicating that the file could not be found. This helps to prevent unhandled exceptions and makes the error message more informative.