宿舍相关功能
This commit is contained in:
1 parent
4b22145041
commit
36a06c73a7
25 files changed
+10435
-113
No files matched your search
@@ -38,6 +38,4 @@ const rows = csv.trim().split(/\r?\n/).slice(1).map((line) => {
|
||||
return [Number(id), Number(pid), Number(deep), name]
|
||||
})
|
||||
|
||||
const source = `// 由 AreaCity-JsSpider-StatsGov 的 ok_data_level4.csv 生成,数据版本 2025.251231.260403(2026-04-03)。\n// 上游项目采用 MIT License:https://github.com/xiangyuecn/AreaCity-JsSpider-StatsGov\nexport type NativePlaceRow = readonly [id: number, pid: number, deep: number, name: string]\n\nexport const nativePlaceRows: readonly NativePlaceRow[] = ${JSON.stringify(rows)} as const\n`
|
||||
|
||||
await writeFile(resolve(outputFile), source, 'utf8')
|
||||
await writeFile(resolve(outputFile), `${JSON.stringify(rows)}\n`, 'utf8')
|
||||
Reference in new issue
Block a user