async function buildPath({ root, id, selector }) {
  log(`Building path for ${id} - ${selector}`);

  const [, category, component, file] = /(\w*)-(.*)--(.*)$/g.exec(id);

  const extension = '.png';

  const paths = {
    file,
    folder: join(root, category, component),
    path: join(root, category, component, file + extension),
  };

  log(`Path is ${paths.path}`);

  return paths;
}
@param {string} root
@param {string} id
@param {string} selector
@return {{file: string, folder: string, path: string}}