UNPKG

573 BJavaScriptView Raw
1#!/usr/bin/env node
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
10Usage:
11 node ./bin/run-nyc
12
13========
14*/
15
16'use strict';
17
18function 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
27module.exports = run;
28if (require.main === module) run(process.argv);