feat: expose the tzdb version of the bundled zonefile
This commit is contained in:
1 parent
d47824c8f3
commit
1668c0dd6b
7 files changed
+22
-3
No files matched your search
@@ -187,7 +187,7 @@ export const main = (args = process.argv.slice(2)) => {
|
||||
tzdata: version,
|
||||
unsupported: unsupported.map((o) => o.name)
|
||||
})
|
||||
const text = `// Generated by scripts/tz/update.js: ${source}\nexport default ${JSON.stringify(result, null, 2)}\n`
|
||||
const text = `// Generated by scripts/tz/update.js: ${source}\nexport const tzdbVersion = ${JSON.stringify(version)}\nexport default ${JSON.stringify(result, null, 2)}\n`
|
||||
// Rename within the destination directory so readers never see a partial file.
|
||||
// Only remove a temporary file created by this run (exclusive creation may fail).
|
||||
const temporary = join(dirname(options.output), `.zonefile-${process.pid}.tmp`)
|
||||
|
||||
Reference in new issue
Block a user