| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 197df63 commit 543493c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | #!/usr/bin/env node | |
| 2 | 2 | // Usage: tools/update-timezone.mjs | |
| 3 | - import { execSync, spawnSync } from 'node:child_process'; | ||
| 3 | + import { execSync } from 'node:child_process'; | ||
| 4 | 4 | import { renameSync, readdirSync, rmSync } from 'node:fs'; | |
| 5 | 5 | import { exit } from 'node:process'; | |
| 6 | 6 | ||
@@ -26,13 +26,7 @@ if (latestVersion === currentVersion) { | |||
| 26 | 26 | execSync('bzip2 -d deps/icu-small/source/data/in/icudt*.dat.bz2'); | |
| 27 | 27 | fileNames.forEach((file) => { | |
| 28 | 28 | renameSync(`icu-data/tzdata/icunew/${latestVersion}/44/le/${file}`, `deps/icu-small/source/data/in/${file}`); | |
| 29 | - spawnSync( | ||
| 30 | - 'icupkg', [ | ||
| 31 | - '-a', | ||
| 32 | - file, | ||
| 33 | - 'icudt*.dat', | ||
| 34 | - ], { cwd: 'deps/icu-small/source/data/in/' } | ||
| 35 | - ); | ||
| 29 | + execSync(`icupkg -a ${file} icudt*.dat`, { cwd: 'deps/icu-small/source/data/in/' }); | ||
| 36 | 30 | rmSync(`deps/icu-small/source/data/in/${file}`); | |
| 37 | 31 | }); | |
| 38 | 32 | execSync('bzip2 -z deps/icu-small/source/data/in/icudt*.dat'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments