@sap-ux/project-access 1.28.3 → 1.28.4
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/dist/library/helpers.js +4 -1
- package/package.json +1 -1
package/dist/library/helpers.js
CHANGED
|
@@ -105,7 +105,10 @@ const getReuseLibs = async (libs) => {
|
|
|
105
105
|
for (const lib of libs) {
|
|
106
106
|
const excludeFolders = ['.git', 'node_modules', 'dist'];
|
|
107
107
|
const manifestPaths = await (0, file_1.findFiles)('manifest.json', lib.projectRoot, excludeFolders);
|
|
108
|
-
const libraryPaths =
|
|
108
|
+
const libraryPaths = [
|
|
109
|
+
...(await (0, file_1.findFiles)('library.js', lib.projectRoot, excludeFolders)),
|
|
110
|
+
...(await (0, file_1.findFiles)('library.ts', lib.projectRoot, excludeFolders))
|
|
111
|
+
];
|
|
109
112
|
for (const manifestPath of manifestPaths) {
|
|
110
113
|
const manifestFilePath = (0, path_1.join)(manifestPath, constants_2.FileName.Manifest);
|
|
111
114
|
const manifest = JSON.parse(await fs_1.promises.readFile(manifestFilePath, { encoding: 'utf8' }));
|