提交正式官网
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* @deprecated 请使用 Python 流程(以 Excel 为唯一数据源):
|
||||
* python scripts/extract-hospitals-excel.py
|
||||
* python scripts/build-hospitals-data.py
|
||||
* python scripts/build-hospitals-zh-locale.py
|
||||
*/
|
||||
import { spawnSync } from 'node:child_process'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { dirname, join } from 'node:path'
|
||||
|
||||
const root = join(dirname(fileURLToPath(import.meta.url)), '..')
|
||||
const steps = [
|
||||
'extract-hospitals-excel.py',
|
||||
'build-hospitals-data.py',
|
||||
'build-hospitals-zh-locale.py'
|
||||
]
|
||||
|
||||
for (const script of steps) {
|
||||
const r = spawnSync('python', [join(root, 'scripts', script)], {
|
||||
stdio: 'inherit',
|
||||
cwd: root
|
||||
})
|
||||
if (r.status !== 0) process.exit(r.status ?? 1)
|
||||
}
|
||||
Reference in New Issue
Block a user