<% dir.forEach(dirPath => { -%> import <%- dirPathToName(dirPath) %> from './<%- dirPath %>/index.mjs'; <% }) -%> export { <% dir.forEach((dirPath, index) => { -%> <%- dirPathToName(dirPath) %><% if (dir.length>index+1) { %>,<% } %> <% }) -%> }