@insforge/mcp 1.2.4-deployment.5 → 1.2.4-deployment.6
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.
|
@@ -2043,18 +2043,29 @@ To: Your current project directory
|
|
|
2043
2043
|
archive.on("data", (chunk) => chunks.push(chunk));
|
|
2044
2044
|
archive.on("end", () => resolve(Buffer.concat(chunks)));
|
|
2045
2045
|
archive.on("error", (err) => reject(err));
|
|
2046
|
-
archive.
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2046
|
+
archive.on("warning", (err) => {
|
|
2047
|
+
console.warn("Archiver warning:", err.message);
|
|
2048
|
+
});
|
|
2049
|
+
const excludePatterns = [
|
|
2050
|
+
"node_modules",
|
|
2051
|
+
".git",
|
|
2052
|
+
".next",
|
|
2053
|
+
"dist",
|
|
2054
|
+
"build",
|
|
2055
|
+
".env.local",
|
|
2056
|
+
".DS_Store"
|
|
2057
|
+
];
|
|
2058
|
+
archive.directory(sourceDirectory, false, (entry) => {
|
|
2059
|
+
const normalizedName = entry.name.replace(/\\/g, "/");
|
|
2060
|
+
for (const pattern of excludePatterns) {
|
|
2061
|
+
if (normalizedName.startsWith(pattern + "/") || normalizedName === pattern || normalizedName.endsWith("/" + pattern) || normalizedName.includes("/" + pattern + "/")) {
|
|
2062
|
+
return false;
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
if (normalizedName.endsWith(".log")) {
|
|
2066
|
+
return false;
|
|
2067
|
+
}
|
|
2068
|
+
return entry;
|
|
2058
2069
|
});
|
|
2059
2070
|
archive.finalize();
|
|
2060
2071
|
});
|
package/dist/http-server.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED