()
| 129 | * Get current version from package.json |
| 130 | */ |
| 131 | const getCurrentVersion = (): string => { |
| 132 | const pkgPath = join(REPO_ROOT, 'package.json') |
| 133 | const pkg = JSON.parse(readFileSync(pkgPath, 'utf8')) |
| 134 | return pkg.version |
| 135 | } |
| 136 | |
| 137 | /** |
| 138 | * Bump version based on type |