@rayburst/cli 0.4.16 → 0.4.17
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.
|
@@ -2031,9 +2031,12 @@ var unpluginFactory = (options = {}) => {
|
|
|
2031
2031
|
const stagedFiles = newAnalysis.stagedFilesMetadata?.[branchId] || [];
|
|
2032
2032
|
const committedFiles = newAnalysis.committedFilesMetadata?.[branchId] || [];
|
|
2033
2033
|
const changedFilePaths = /* @__PURE__ */ new Set();
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2034
|
+
const normalizeFilePath = (absPath) => {
|
|
2035
|
+
return absPath.replace(projectPath, "").replace(/^\//, "");
|
|
2036
|
+
};
|
|
2037
|
+
unstagedFiles.forEach((f) => changedFilePaths.add(normalizeFilePath(f.filePath)));
|
|
2038
|
+
stagedFiles.forEach((f) => changedFilePaths.add(normalizeFilePath(f.filePath)));
|
|
2039
|
+
committedFiles.forEach((f) => changedFilePaths.add(normalizeFilePath(f.filePath)));
|
|
2037
2040
|
for (const node of nodes) {
|
|
2038
2041
|
const filePath = node.id.split("::")[0];
|
|
2039
2042
|
if (changedFilePaths.has(filePath)) {
|
package/dist/index.js
CHANGED
package/dist/vite-plugin.js
CHANGED