message: chore: fix version update script
diff: #!/usr/bin/env node
  +const fs = require('fs')
  const path = require('path')
  +const glob = require('glob')
  +const semver = require('semver')
  +
  const getVersion = require('../getVersion')
  let [, , cwd, versionChange, prereleaseId] = process.argv
  @@ -13,11 +17,6 @@ const depFields = ['dependencies', 'peerDependencies', 'devDependencies', 'optio
  let currentVersion
  -if (!module.parent) {
  - const semver = require('semver')
  - const fs = require('fs')
  - const glob = require('glob')
  -
  const previousVersion = getVersion(cwd)
  if (versionChange) {
  @@ -58,7 +57,5 @@ if (!module.parent) {
  // if this was run with no arguments, get the current version
  else {
  currentVersion = previousVersion
  - }
  -
  console.log(currentVersion)
  }
  