/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/compiler-cli/src/bin/ngc.ts
28 строк
823 B
Joey Perrott
refactor: update license text to point to angular.dev (#57901)
24 сен 2024, 16:33
24 сен 2024, 16:33
9dbe6fc
Код
Авторство
О чём код?
#!/usr/bin/env node /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // Must be imported first, because Angular decorators throw on load. import 'reflect-metadata'; import {NodeJSFileSystem, setFileSystem} from '../ngtsc/file_system'; import {main} from '../main'; async function runNgcComamnd() { process.title = 'Angular Compiler (ngc)'; const args = process.argv.slice(2); // We are running the real compiler so run against the real file-system setFileSystem(new NodeJSFileSystem()); process.exitCode = main(args, undefined, undefined, undefined, undefined, undefined); } runNgcComamnd().catch((e) => { console.error(e); process.exitCode = 1; });