packages/build-tools/utils/manifest.js
async function getAllDirs(relativeFrom) {
  const dirs = [];
  const manifest = await getBoltManifest();
  [manifest.components.global, manifest.components.individual].forEach(
    componentList => {
      componentList.forEach(component => {
        dirs.push(
          relativeFrom
            ? path.relative(relativeFrom, component.dir)
            : component.dir,
        );
      });
    },
  );

  return dirs;
}
async function getAllDirs(relativeFrom) {
  const dirs = [];
  const manifest = await getBoltManifest();
  [manifest.components.global, manifest.components.individual].forEach(
    componentList => {
      componentList.forEach(component => {
        dirs.push(
          relativeFrom
            ? path.relative(relativeFrom, component.dir)
            : component.dir,
        );
      });
    },
  );

  return dirs;
}
async function getAllDirs ( relativeFrom ) { const dirs = [ ] ; const manifest = await getBoltManifest ( ) ; [ manifest . components . global , manifest . components . individual ] . forEach ( componentList => { componentList . forEach ( component => { dirs . push ( relativeFrom ? path . relative ( relativeFrom , component . dir ) : component . dir , ) ; } ) ; } , ) ; return dirs ; }
Get all directories for components in Bolt Manifest
@param relativeFrom {string} - If present, the path will be relative from this, else it will be absolute.
@returns {Array<String>} {dirs} - List of all component/package paths in Bolt Manifest
Get all directories for components in Bolt Manifest