angular-cli/bin/benchmark

21 lines
543 B
JavaScript
Executable File

#!/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.io/license
*/
'use strict';
require('../lib/bootstrap-local');
const packages = require('../lib/packages').packages;
const main = require(packages['@angular-devkit/benchmark'].bin['benchmark']).main;
const args = process.argv.slice(2);
main({ args })
.then(exitCode => process.exitCode = exitCode)
.catch(e => { throw (e); });