@dboio/cli 0.9.2 → 0.9.3
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/package.json +1 -1
- package/src/commands/push.js +6 -2
package/package.json
CHANGED
package/src/commands/push.js
CHANGED
|
@@ -738,8 +738,12 @@ async function checkPathMismatch(meta, metaPath, options) {
|
|
|
738
738
|
|
|
739
739
|
if (!contentFileName) return;
|
|
740
740
|
|
|
741
|
-
// Compute the current path based on where the file actually is
|
|
742
|
-
|
|
741
|
+
// Compute the current path based on where the file actually is.
|
|
742
|
+
// Strip the ~UID from the filename — the metadata Path is the canonical
|
|
743
|
+
// server path and never contains the local ~UID suffix.
|
|
744
|
+
const uid = meta.UID;
|
|
745
|
+
const serverFileName = uid ? stripUidFromFilename(contentFileName, uid) : contentFileName;
|
|
746
|
+
const currentFilePath = join(metaDir, serverFileName);
|
|
743
747
|
const currentRelPath = relative(process.cwd(), currentFilePath);
|
|
744
748
|
|
|
745
749
|
// Normalize both paths for comparison
|