Skip to content

Commit

Permalink
Merge branch 'main' into hotfix/remove-console
Browse files Browse the repository at this point in the history
  • Loading branch information
jholt1 authored Dec 1, 2023
2 parents e84aa7d + b140999 commit 1db5ac6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion packages/muon/scripts/utils/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ const getAliasPaths = (type) => {
return undefined;
};

const sourceFilesAnalyzer = async () => {
const analyzeComponents = async () => {
const files = await findComponents();
const paths = getAliasPaths('glob');
const options = {
Expand Down Expand Up @@ -216,6 +216,15 @@ const sourceFilesAnalyzer = async () => {
}
}));

return {
results,
program
};
};

const sourceFilesAnalyzer = async () => {
const { results, program } = await analyzeComponents();

const tagNames = results?.map((result) => {
const { tagName, prefix } = getTagFromAnalyzerResult(result);

Expand Down Expand Up @@ -355,6 +364,7 @@ export {
componentDefiner,
componentImportExport,
runner,
analyzeComponents,
sourceFilesAnalyzer,
getAliasPaths
};

0 comments on commit 1db5ac6

Please sign in to comment.