mirror of
https://github.com/github/awesome-copilot.git
synced 2026-09-07 16:25:47 +00:00
chore: publish from main
This commit is contained in:
+12
-3
@@ -168,8 +168,14 @@ function parseSkillMetadata(skillPath) {
|
|||||||
entries.forEach((entry) => {
|
entries.forEach((entry) => {
|
||||||
const filePath = path.join(dirPath, entry.name);
|
const filePath = path.join(dirPath, entry.name);
|
||||||
if (entry.isDirectory()) {
|
if (entry.isDirectory()) {
|
||||||
|
if (entry.name === "bin" || entry.name === "obj") {
|
||||||
|
return; // Skip bin and obj directories as they are .NET project output folders and not part of the skill assets
|
||||||
|
}
|
||||||
arrayOfFiles = getAllFiles(filePath, arrayOfFiles);
|
arrayOfFiles = getAllFiles(filePath, arrayOfFiles);
|
||||||
} else if (!entry.isSymbolicLink() || !skipsAsBundledAsset(filePath)) {
|
} else if (
|
||||||
|
!entry.isSymbolicLink() ||
|
||||||
|
!skipsAsBundledAsset(filePath)
|
||||||
|
) {
|
||||||
const relativePath = path.relative(skillPath, filePath);
|
const relativePath = path.relative(skillPath, filePath);
|
||||||
if (relativePath !== "SKILL.md") {
|
if (relativePath !== "SKILL.md") {
|
||||||
// Normalize path separators to forward slashes for cross-platform consistency
|
// Normalize path separators to forward slashes for cross-platform consistency
|
||||||
@@ -245,7 +251,10 @@ function parseHookMetadata(hookPath) {
|
|||||||
const filePath = path.join(dirPath, entry.name);
|
const filePath = path.join(dirPath, entry.name);
|
||||||
if (entry.isDirectory()) {
|
if (entry.isDirectory()) {
|
||||||
arrayOfFiles = getAllFiles(filePath, arrayOfFiles);
|
arrayOfFiles = getAllFiles(filePath, arrayOfFiles);
|
||||||
} else if (!entry.isSymbolicLink() || !skipsAsBundledAsset(filePath)) {
|
} else if (
|
||||||
|
!entry.isSymbolicLink() ||
|
||||||
|
!skipsAsBundledAsset(filePath)
|
||||||
|
) {
|
||||||
const relativePath = path.relative(hookPath, filePath);
|
const relativePath = path.relative(hookPath, filePath);
|
||||||
if (relativePath !== "README.md") {
|
if (relativePath !== "README.md") {
|
||||||
// Normalize path separators to forward slashes for cross-platform consistency
|
// Normalize path separators to forward slashes for cross-platform consistency
|
||||||
@@ -337,8 +346,8 @@ export {
|
|||||||
extractMcpServerConfigs,
|
extractMcpServerConfigs,
|
||||||
extractMcpServers,
|
extractMcpServers,
|
||||||
parseFrontmatter,
|
parseFrontmatter,
|
||||||
parseSkillMetadata,
|
|
||||||
parseHookMetadata,
|
parseHookMetadata,
|
||||||
|
parseSkillMetadata,
|
||||||
parseWorkflowMetadata,
|
parseWorkflowMetadata,
|
||||||
parseYamlFile,
|
parseYamlFile,
|
||||||
safeFileOperation,
|
safeFileOperation,
|
||||||
|
|||||||
Reference in New Issue
Block a user