UNPKG

ts-add-js-extension

Version:

Add .js extension to each relative ESM import and export statement in JavaScript file

23 lines 747 B
/** * @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 * */ const parseConfig = (_) => { 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')); }; const valuelizeConfig = (config) => { return { ...config, showChanges: config.showChanges ?? true, include: config.include ?? [], }; }; export { valuelizeConfig, parseConfig }; //# sourceMappingURL=config.js.map