@magentrix-corp/magentrix-cli 1.3.0 → 1.3.1

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/README.md CHANGED
@@ -210,6 +210,7 @@ This creates a `src` folder with all your files organized into:
210
210
  - `Pages/` - Your ASPX pages (`.aspx` files)
211
211
  - `Templates/` - Your templates (`.aspx` files)
212
212
  - `Assets/` - Your static assets (images, CSS, JavaScript, etc.)
213
+ - `iris-apps/` - Your Iris Vue.js applications
213
214
 
214
215
  ---
215
216
 
@@ -1114,7 +1114,12 @@ export const runPublish = async (options = {}) => {
1114
1114
  if (!safe) continue;
1115
1115
 
1116
1116
  const { content, hash } = safe;
1117
- const renamed = cacheFile.lastKnownPath !== path.resolve(curFile.path);
1117
+ // Check both paths - only consider renamed if NEITHER matches current path
1118
+ // This prevents false positives from stale/corrupted tracking data
1119
+ const resolvedCurPath = path.resolve(curFile.path);
1120
+ const matchesActualPath = cacheFile.lastKnownActualPath === resolvedCurPath;
1121
+ const matchesExpectedPath = cacheFile.lastKnownPath === resolvedCurPath;
1122
+ const renamed = !matchesActualPath && !matchesExpectedPath;
1118
1123
  const contentChanged = hash !== cacheFile.contentHash;
1119
1124
 
1120
1125
  if (renamed || contentChanged) {
@@ -1127,7 +1132,7 @@ export const runPublish = async (options = {}) => {
1127
1132
  entity,
1128
1133
  fields: { [contentField]: content },
1129
1134
  renamed,
1130
- oldPath: cacheFile.lastKnownPath,
1135
+ oldPath: cacheFile.lastKnownActualPath || cacheFile.lastKnownPath,
1131
1136
  filePath: curFile.path,
1132
1137
  });
1133
1138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magentrix-corp/magentrix-cli",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "CLI tool for synchronizing local files with Magentrix cloud platform",
5
5
  "main": "index.js",
6
6
  "type": "module",