UNPKG

341 BPlain TextView Raw
1#!/usr/bin/env node
2var dtsGenerator = require('./dts-generator.js');
3/* istanbul ignore if: we use the module interface in testing */
4if (!module.parent) {
5 dtsGenerator.default(process.argv.slice(2)).then(function (code) {
6 return process.exit(code || 0);
7 }, function (err) {
8 throw err;
9 });
10}
11else {
12 module.exports = dtsGenerator;
13}