UNPKG

constatic

Version:
2 lines (1 loc) 319 B
import{commonTexts as i}from"#helpers";import a from"chalk";function u(t,e){const r=t.map(({id:o,name:m})=>({name:a.blue(`\u{1F5D0} ${m}`),value:o}));return e||r.unshift({name:i.back,value:"back"}),r}function l(t){return t.map(({path:e,dist:r=e})=>({name:e,value:r}))}export{l as formatPresetFiles,u as formatPresets};