publish-plugins.js 306 B

123456789101112
  1. #!/usr/bin/env node
  2. const sh = require('shelljs')
  3. const vars = require('./vars')
  4. const log = require('npmlog')
  5. vars.allPackages.forEach(plugin => {
  6. log.info('bump', plugin)
  7. sh.cd(plugin)
  8. sh.exec('npm --no-git-tag-version version ' + vars.version)
  9. sh.exec('npm publish')
  10. sh.cd('..')
  11. })