123456789101112131415161718192021222324252627282930313233343536373839 |
- "use strict";
- function _commander() {
- const data = _interopRequireDefault(require("commander"));
- _commander = function () {
- return data;
- };
- return data;
- }
- function _core() {
- const data = require("@babel/core");
- _core = function () {
- return data;
- };
- return data;
- }
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- function collect(value, previousValue) {
- if (typeof value !== "string") return previousValue;
- const values = value.split(",");
- return previousValue ? previousValue.concat(values) : values;
- }
- _commander().default.option("-l, --whitelist [whitelist]", "Whitelist of helpers to ONLY include", collect);
- _commander().default.option("-t, --output-type [type]", "Type of output (global|umd|var)", "global");
- _commander().default.usage("[options]");
- _commander().default.parse(process.argv);
- console.log((0, _core().buildExternalHelpers)(_commander().default.whitelist, _commander().default.outputType));
|