ts-add-js-extension
Version:
Add .js extension to each relative ESM import and export statement in JavaScript file
35 lines • 1.39 kB
JavaScript
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseConfig = exports.valuelizeConfig = void 0;
/**
* @deprecated since version 1.4.0
* Will be deleted in version 2.0
* There is no need to parse config with this function
* As configurations can be passed directly
* Using this function will halt the program
* And requires you to write configs directly
* */
var parseConfig = function (_) {
throw new Error([
"Function parseConfig should not be used, this function exists because of \"yargs\"",
"Now yargs is removed, cli arguments parser is hand-written",
].join('\n'));
};
exports.parseConfig = parseConfig;
var valuelizeConfig = function (config) {
var _a, _b;
return __assign(__assign({}, config), { showChanges: (_a = config.showChanges) !== null && _a !== void 0 ? _a : true, include: (_b = config.include) !== null && _b !== void 0 ? _b : [] });
};
exports.valuelizeConfig = valuelizeConfig;
//# sourceMappingURL=config.js.map
;