INNER CODE UNIT · TypeScript

getComponent

Serverless-Devs/Serverless-Devs · src/command/component/index.ts:120

async function getComponent(filePath: string) {
  const data = utils.getYamlContent(path.join(filePath, 'publish.yaml'));
  if (data && data.Type === 'Component') {
    data.isComponent = true;
    return data;
  }
  return {
    isComponent: false,
  };
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…