/
mustreets
/
TestApp
Обзор
Документация
Войти
/
mustreets
/
TestApp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
1
CI/CD
Аналитика
Безопасность
master
scripts/sync-tsconfig-paths.js
24 строки
625 B
Slava
Remove Crashlytics integration from the beta lane in Fastfile
07 июн 2026, 20:06
07 июн 2026, 20:06
f21773c
Код
Авторство
О чём код?
const fs = require('fs'); const path = require('path'); const aliases = require('../aliases'); const root = path.resolve(__dirname, '..'); const outPath = path.join(root, 'tsconfig.paths.json'); const tsPaths = {}; Object.keys(aliases).forEach((key) => { const cleanPath = aliases[key].replace(/^\.\//, ''); tsPaths[`${key}/*`] = [`${cleanPath}/*`]; tsPaths[key] = [cleanPath]; }); const config = { compilerOptions: { baseUrl: '.', paths: tsPaths, }, }; fs.writeFileSync(outPath, `${JSON.stringify(config, null, 2)}\n`, 'utf8'); console.log('✅ tsconfig.paths.json обновлён из aliases.js');