skillmds 1.0.1 → 1.0.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/cli.js +7 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -275,7 +275,13 @@ import { join, basename, dirname } from "path";
|
|
|
275
275
|
var IGNORE_DIRS = /* @__PURE__ */ new Set(["node_modules", ".git", "dist", ".wrangler"]);
|
|
276
276
|
function findSkillFiles(dir) {
|
|
277
277
|
const out = [];
|
|
278
|
-
|
|
278
|
+
let entries;
|
|
279
|
+
try {
|
|
280
|
+
entries = readdirSync(dir, { withFileTypes: true });
|
|
281
|
+
} catch {
|
|
282
|
+
return out;
|
|
283
|
+
}
|
|
284
|
+
for (const entry of entries) {
|
|
279
285
|
if (entry.isDirectory()) {
|
|
280
286
|
if (IGNORE_DIRS.has(entry.name)) continue;
|
|
281
287
|
out.push(...findSkillFiles(join(dir, entry.name)));
|
package/package.json
CHANGED