@sap-ux/project-access 1.33.0 → 1.33.2
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/project/search.d.ts
CHANGED
|
@@ -92,10 +92,12 @@ export declare function findFioriArtifacts(options: {
|
|
|
92
92
|
*
|
|
93
93
|
* @param options - find options
|
|
94
94
|
* @param options.wsFolders - list of roots, either as vscode WorkspaceFolder[] or array of paths
|
|
95
|
+
* @param options.noTraversal - optional flag to disable folder traversal for given paths
|
|
95
96
|
* @returns - root file paths that may contain a CAP project
|
|
96
97
|
*/
|
|
97
98
|
export declare function findCapProjects(options: {
|
|
98
99
|
readonly wsFolders: WorkspaceFolder[] | string[];
|
|
100
|
+
noTraversal?: boolean;
|
|
99
101
|
}): Promise<string[]>;
|
|
100
102
|
export {};
|
|
101
103
|
//# sourceMappingURL=search.d.ts.map
|
package/dist/project/search.js
CHANGED
|
@@ -503,6 +503,7 @@ async function findFioriArtifacts(options) {
|
|
|
503
503
|
*
|
|
504
504
|
* @param options - find options
|
|
505
505
|
* @param options.wsFolders - list of roots, either as vscode WorkspaceFolder[] or array of paths
|
|
506
|
+
* @param options.noTraversal - optional flag to disable folder traversal for given paths
|
|
506
507
|
* @returns - root file paths that may contain a CAP project
|
|
507
508
|
*/
|
|
508
509
|
async function findCapProjects(options) {
|
|
@@ -510,11 +511,13 @@ async function findCapProjects(options) {
|
|
|
510
511
|
const excludeFolders = ['node_modules', 'dist', 'webapp', 'MDKModule', 'gen'];
|
|
511
512
|
const fileNames = [constants_1.FileName.Pom, constants_1.FileName.Package, constants_1.FileName.CapJavaApplicationYaml];
|
|
512
513
|
const wsRoots = wsFoldersToRootPaths(options.wsFolders);
|
|
514
|
+
const noTraversal = options.noTraversal ?? false;
|
|
513
515
|
for (const root of wsRoots) {
|
|
514
516
|
const filesToCheck = await (0, file_1.findBy)({
|
|
515
517
|
fileNames,
|
|
516
518
|
root,
|
|
517
|
-
excludeFolders
|
|
519
|
+
excludeFolders,
|
|
520
|
+
noTraversal
|
|
518
521
|
});
|
|
519
522
|
const appYamlsToCheck = Array.from(new Set(filesToCheck
|
|
520
523
|
.filter((file) => (0, node_path_1.basename)(file) === constants_1.FileName.CapJavaApplicationYaml)
|