mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-30 10:14:53 -05:00
14 lines
394 B
TypeScript
14 lines
394 B
TypeScript
// @ts-strict-ignore
|
|
import path from 'path';
|
|
|
|
function indexTemplate(filePaths) {
|
|
const exportEntries = filePaths.map(({ path: filePath }) => {
|
|
const basename = path.basename(filePath, path.extname(filePath));
|
|
const exportName = `Svg${basename}`;
|
|
return `export { ${exportName} } from './${basename}'`;
|
|
});
|
|
return exportEntries.join('\n');
|
|
}
|
|
|
|
module.exports = indexTemplate;
|