MCPcopy Create free account
hub / github.com/freecodexyz/free-code / getDevVersion

Function getDevVersion

scripts/build.ts:67–73  ·  view source on GitHub ↗
(baseVersion: string)

Source from the content-addressed store, hash-verified

65}
66
67function getDevVersion(baseVersion: string): string {
68 const timestamp = new Date().toISOString()
69 const date = timestamp.slice(0, 10).replaceAll('-', '')
70 const time = timestamp.slice(11, 19).replaceAll(':', '')
71 const sha = runCommand(['git', 'rev-parse', '--short=8', 'HEAD']) ?? 'unknown'
72 return `${baseVersion}-dev.${date}.t${time}.sha${sha}`
73}
74
75function getVersionChangelog(): string {
76 return (

Callers 1

build.tsFile · 0.85

Calls 1

runCommandFunction · 0.85

Tested by

no test coverage detected