(length = 7)
| 363 | * Returns the first n characters of the current git commit hash. |
| 364 | */ |
| 365 | export function getCurrentHash(length = 7) { |
| 366 | const hash = execSync(`git rev-parse HEAD`, { |
| 367 | encoding: 'utf-8', |
| 368 | }) |
| 369 | .toString() |
| 370 | .trim() |
| 371 | return hash.slice(0, length) |
| 372 | } |
| 373 | |
| 374 | /** |
| 375 | * Updates the version number export in the @formkit/core package to reflect the |
no outgoing calls
no test coverage detected