Closed bz2 closed 6 years ago
I was versioning the dist directory in order to be able to deliver the script like this:
<script defer src="https://cdn.jsdelivr.net/gh/GoogleCloudPlatform/stackdriver-errors-js@v0.4.0/dist/stackdriver-errors-concat.min.js"></script>
If you remove it from the repo, please also update the README
instructions. I guess there is a way to point to what is in npm?
Looks like we can indeed serve it out of npm instead:
https://cdn.jsdelivr.net/npm/stackdriver-errors-js@0.5.0/dist/stackdriver-errors-concat.min.js
I'll update the README with that suggestion (will need to remember to bump the @version
each time too).
Rather than including build time generated source files in the repository, use the npm prepare step to create the dist folder contents after local install and before publishing.