(file, data)
| 29 | } |
| 30 | |
| 31 | function writeJson(file, data) { |
| 32 | ensureDir(path.dirname(file)); |
| 33 | fs.writeFileSync(file, JSON.stringify(data, null, 2) + '\n', 'utf8'); |
| 34 | console.log('Wrote', path.relative(REPO_ROOT, file)); |
| 35 | } |
| 36 | |
| 37 | async function importTsModule(tsFilePath) { |
| 38 | if (!fs.existsSync(tsFilePath)) { |