@muonic/muon 0.0.2-beta.49 → 0.0.2-beta.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/scripts/utils/index.mjs +11 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.0.2-beta.50](https://github.com/centrica-engineering/muon/compare/v0.0.2-beta.48...v0.0.2-beta.50) (2023-12-04)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* remove console log ([e84aa7d](https://github.com/centrica-engineering/muon/commit/e84aa7dfb66b9ab5d760b190c6cbce8d3ac3839f))
|
|
11
|
+
|
|
5
12
|
### [0.0.2-beta.49](https://github.com/centrica-engineering/muon/compare/v0.0.2-beta.47...v0.0.2-beta.49) (2023-11-27)
|
|
6
13
|
|
|
7
14
|
### [0.0.2-beta.48](https://github.com/centrica-engineering/muon/compare/v0.0.2-beta.41...v0.0.2-beta.48) (2023-10-17)
|
package/package.json
CHANGED
package/scripts/utils/index.mjs
CHANGED
|
@@ -101,8 +101,6 @@ const analyze = async () => {
|
|
|
101
101
|
return { fileName: file, text: code.toString() };
|
|
102
102
|
});
|
|
103
103
|
|
|
104
|
-
console.log('Analyzing files: ', files.map((file) => file.fileName));
|
|
105
|
-
|
|
106
104
|
const { results } = analyzeText(files);
|
|
107
105
|
|
|
108
106
|
return results.map((result) => {
|
|
@@ -181,7 +179,7 @@ const getAliasPaths = (type) => {
|
|
|
181
179
|
return undefined;
|
|
182
180
|
};
|
|
183
181
|
|
|
184
|
-
const
|
|
182
|
+
const analyzeComponents = async () => {
|
|
185
183
|
const files = await findComponents();
|
|
186
184
|
const paths = getAliasPaths('glob');
|
|
187
185
|
const options = {
|
|
@@ -218,6 +216,15 @@ const sourceFilesAnalyzer = async () => {
|
|
|
218
216
|
}
|
|
219
217
|
}));
|
|
220
218
|
|
|
219
|
+
return {
|
|
220
|
+
results,
|
|
221
|
+
program
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
const sourceFilesAnalyzer = async () => {
|
|
226
|
+
const { results, program } = await analyzeComponents();
|
|
227
|
+
|
|
221
228
|
const tagNames = results?.map((result) => {
|
|
222
229
|
const { tagName, prefix } = getTagFromAnalyzerResult(result);
|
|
223
230
|
|
|
@@ -357,6 +364,7 @@ export {
|
|
|
357
364
|
componentDefiner,
|
|
358
365
|
componentImportExport,
|
|
359
366
|
runner,
|
|
367
|
+
analyzeComponents,
|
|
360
368
|
sourceFilesAnalyzer,
|
|
361
369
|
getAliasPaths
|
|
362
370
|
};
|