()
| 6 | const { COMMIT_HASH = "NO_HASH" } = process.env; |
| 7 | |
| 8 | function getDateVersion(): string { |
| 9 | const date = new Date(); |
| 10 | |
| 11 | const versionPrefix = [ |
| 12 | date.getFullYear(), |
| 13 | date.getMonth() + 1, |
| 14 | date.getDate(), |
| 15 | ]; |
| 16 | const versionSuffix = [date.getHours(), date.getMinutes()]; |
| 17 | |
| 18 | return [versionPrefix, versionSuffix] |
| 19 | .map((versionPart) => padNumbers(versionPart, 2, "0").join(".")) |
| 20 | .join("_"); |
| 21 | } |
| 22 | |
| 23 | function getVersion(): string { |
| 24 | if (isDevEnvironment()) { |
no test coverage detected