eslint / espree

An Esprima-compatible JavaScript parser
BSD 2-Clause "Simplified" License
2.26k stars 189 forks source link

Build: Update scripts for release (fixes #475) #478

Closed nzakas closed 3 years ago

nzakas commented 3 years ago
  1. Split updating of lib/version.js into a separate script and created update-version npm script
  2. Renamed rollup script to build to be a bit more conventional
  3. Added a pretest script to run build before npm test
  4. Added a prepublishOnly script to run update-version and then build before npm publish

I believe this should take care of any of our remaining issues with the release process. We should, of course, run an alpha release first to verify. I tested this locally and everything seemed to work.

nzakas commented 3 years ago

@mdjermanovic nice catch. Updated.