/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v21.2.14
tools/example-module/bazel-bin.ts
16 строк
556 B
Paul Gschwendtner
build: fix missing example in generated example-module file (#18086)
07 янв 2020, 01:55
07 янв 2020, 01:55
801336b
Код
Авторство
О чём код?
import {readFileSync} from 'fs'; import {generateExampleModule} from './generate-example-module'; /** * CLI entry-point for building the example module. Usage: * bazel-bin.js {sourceFileManifest} {outputFilePath} {baseDirPath} */ if (require.main === module) { const [sourceFileManifest, outputFile, baseDir] = process.argv.slice(2); const sourceFiles = readFileSync(sourceFileManifest, 'utf8') .split(' ') .map(filePath => filePath.trim()) .filter(s => s.endsWith('.ts')); generateExampleModule(sourceFiles, outputFile, baseDir); }