You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the extension's "Project" menu, there's a "sync" command. According to the tooltip, it should perform: "Capacitor Sync copies the web app build assets to the native projects and updates native plugins and dependencies." However, when this command is executed, it runs nx sync, which is a command used by the Nx tool to synchronize dependencies and configurations in the project - it has nothing to do with Capacitor.
src/capacitor-sync.ts
function nxSync(project: Project): string {
if (project.monoRepo.isNXStandalone) {
return capCLISync(project);
}
return `${npx(project)} nx sync ${project.monoRepo.name}${getConfigurationArgs()}`;
}
Questions and Proposed Solutions:
Was this behavior intentional? If so, could you please clarify the reasoning behind using nx sync for the "sync" command when the tooltip describes Capacitor's functionality?
Possible Solution: If the current behavior was not intentional, perhaps the extension should handle the sync operation the same way it does for NXStandalone projects. This would ensure that the Capacitor sync is performed correctly in an Nx monorepo environment.
Alternative Suggestion: Would it be beneficial to have two separate sync actions in the menu for projects using an Nx monorepo - one for Capacitor sync and another for nx sync? This would provide clarity and allow developers to choose the appropriate sync action based on their needs.
If needed, I am willing to prepare a Pull Request to address this issue.
The text was updated successfully, but these errors were encountered:
In the extension's "Project" menu, there's a "sync" command. According to the tooltip, it should perform: "Capacitor Sync copies the web app build assets to the native projects and updates native plugins and dependencies." However, when this command is executed, it runs nx sync, which is a command used by the Nx tool to synchronize dependencies and configurations in the project - it has nothing to do with Capacitor.
src/capacitor-sync.ts
Questions and Proposed Solutions:
If needed, I am willing to prepare a Pull Request to address this issue.
The text was updated successfully, but these errors were encountered: