Merge pull request #4505 from iandolge/iandolge/filter-common-prompt-files
Filter for files ending with .prompt in global Prompt Files
This commit is contained in:
commit
56a942d87b
1 changed files with 1 additions and 1 deletions
|
|
@ -368,7 +368,7 @@ export function readAllGlobalPromptFiles(
|
|||
if (stats.isDirectory()) {
|
||||
const nestedPromptFiles = readAllGlobalPromptFiles(filepath);
|
||||
promptFiles.push(...nestedPromptFiles);
|
||||
} else {
|
||||
} else if (file.endsWith(".prompt")) {
|
||||
const content = fs.readFileSync(filepath, "utf8");
|
||||
promptFiles.push({ path: filepath, content });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue