@magic-markdown/cli 0.3.9 → 0.3.10
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/index.js +10 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10997,7 +10997,7 @@ var RemoteDocumentIO = class {
|
|
|
10997
10997
|
};
|
|
10998
10998
|
|
|
10999
10999
|
// src/agent.ts
|
|
11000
|
-
var CLI_VERSION = "0.3.
|
|
11000
|
+
var CLI_VERSION = "0.3.10";
|
|
11001
11001
|
var CLI_PACKAGE_NAME = "@magic-markdown/cli";
|
|
11002
11002
|
var AGENT_COMMANDS = [
|
|
11003
11003
|
{
|
|
@@ -11674,6 +11674,7 @@ async function walk(root, output, base, rules, ignoreFiles) {
|
|
|
11674
11674
|
for (const entry of entries) {
|
|
11675
11675
|
const absolute = join2(root, entry.name);
|
|
11676
11676
|
const relativePath = relative(base, absolute).replaceAll("\\", "/");
|
|
11677
|
+
if (relativePath.endsWith(".tmp")) continue;
|
|
11677
11678
|
if (isIgnoredWorkspacePath(relativePath, rules)) continue;
|
|
11678
11679
|
if (ignoreMatcher(relativePath)) continue;
|
|
11679
11680
|
if (entry.isDirectory()) {
|
|
@@ -11683,11 +11684,18 @@ async function walk(root, output, base, rules, ignoreFiles) {
|
|
|
11683
11684
|
continue;
|
|
11684
11685
|
}
|
|
11685
11686
|
if (entry.isFile()) {
|
|
11686
|
-
const stats = await stat2(absolute)
|
|
11687
|
+
const stats = await stat2(absolute).catch((error) => {
|
|
11688
|
+
if (isMissingPathError(error)) return void 0;
|
|
11689
|
+
throw error;
|
|
11690
|
+
});
|
|
11691
|
+
if (!stats) continue;
|
|
11687
11692
|
if (isWorkspaceMarkdownPathAllowed(relativePath, rules, stats.size, ignoreMatcher)) output.push(normalizeWorkspacePath3(relativePath));
|
|
11688
11693
|
}
|
|
11689
11694
|
}
|
|
11690
11695
|
}
|
|
11696
|
+
function isMissingPathError(error) {
|
|
11697
|
+
return typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT";
|
|
11698
|
+
}
|
|
11691
11699
|
async function withDirectoryIgnoreFile(root, base, ignoreFiles) {
|
|
11692
11700
|
try {
|
|
11693
11701
|
const path = join2(relative(base, root).replaceAll("\\", "/"), ".gitignore").replace(/^\.\//, "");
|
package/package.json
CHANGED