1 |
|
2 | // Copyright IBM Corp. and LoopBack contributors 2017,2020. All Rights Reserved.
|
3 | // Node module: @loopback/build
|
4 | // This file is licensed under the MIT License.
|
5 | // License text available at https://opensource.org/licenses/MIT
|
6 |
|
7 | /*
|
8 | ========
|
9 |
|
10 | Usage:
|
11 | node ./bin/run-nyc
|
12 |
|
13 | ========
|
14 | */
|
15 |
|
16 | ;
|
17 |
|
18 | function run(argv, options) {
|
19 | const utils = require('./utils');
|
20 |
|
21 | const nycOpts = argv.slice(2);
|
22 | const args = [...nycOpts];
|
23 |
|
24 | return utils.runCLI('nyc/bin/nyc', args, options);
|
25 | }
|
26 |
|
27 | module.exports = run;
|
28 | if (require.main === module) run(process.argv);
|