fix: build timestamp conversion (#654)

This commit is contained in:
prism 2026-01-17 20:37:12 +01:00 • committed by GitHub
parent 5e70b145ff
commit 6610bc9651
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,7 +36,7 @@ const PackageJSON = JSON.parse(readFileSync(join(dirname(fileURLToPath(import.me
export const VERSION = PackageJSON.version;
// https://reproducible-builds.org/docs/source-date-epoch/
export const BUILD_TIMESTAMP = Number(process.env.SOURCE_DATE_EPOCH) || Date.now();
export const BUILD_TIMESTAMP = Number(process.env.SOURCE_DATE_EPOCH) * 1000 || Date.now();
export const watch = process.argv.includes("--watch");
export const IS_DEV = watch || process.argv.includes("--dev");