From 193d4c50cc52f28de3a328718c0020772de9bfd1 Mon Sep 17 00:00:00 2001 From: Yong Sopheaktra Date: Thu, 11 Jan 2024 16:50:34 +0900 Subject: [PATCH] MN-4952: fix monaca import and monaca clone (#202) * fix: monaca import/clone to resolve absolute directory path * chore: bump version 5.0.1 --- CHANGELOG.md | 7 +++++++ package-lock.json | 2 +- package.json | 2 +- src/sync.js | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fb13a6..32a9659 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ CHANGELOG ==== +v5.0.1 +---- + +#### Bug Fix + +* Fixed `monaca import` and `monaca clone` to resolve directory path. + v5.0.0 ---- diff --git a/package-lock.json b/package-lock.json index 2d4e2de..85a338a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "monaca", - "version": "5.0.0", + "version": "5.0.1", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index f7e0319..a485ccb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "monaca", - "version": "5.0.0", + "version": "5.0.1", "description": "Monaca Command Line Tool", "bin": { "monaca": "bin/monaca" diff --git a/src/sync.js b/src/sync.js index cb283fc..04bba7c 100755 --- a/src/sync.js +++ b/src/sync.js @@ -149,7 +149,7 @@ SyncTask.clone = function(saveCloudProjectID) { .then( function() { util.print((saveCloudProjectID ? 'Cloning' : 'Importing') + ' \'' + project.name + '\' to ' + project.absolutePath); - return monaca.cloneProject(project.projectId, project.destPath, saveCloudProjectID) + return monaca.cloneProject(project.projectId, path.resolve(project.destPath), saveCloudProjectID) .progress(util.displayProgress); } )