I am working on an application written in Angular 11, that allows users to download a script. I would like it so that the link to download the script is as follows:
<a href="example.com/resources/script_<version>.ps1">
I would like to be able to include the version of the script in the package.json file like this:
{ "name": "my-app", "version": "0.0.0", "script-version" : "1.0.0", .... }
Is there some tool I can use that will at build time update the name of the script, and the the corresponding code in my application so that users get files downloaded with the correct version in the filename?