cob-cli 2.5.0 → 2.5.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.
@@ -64,7 +64,7 @@ async function otherFilesContiousReload(cmdEnv) {
64
64
  let productDir = resolveCobPath(cmdEnv.server, "serverLive", product).split(":")[1];
65
65
  let productScopeFilePath = changedFile.substring(changedFile.indexOf("/") + 1); // remove o directorio inicial do producto
66
66
 
67
- let isRemoteFile = await execa('ssh', [cmdEnv.server, "[[ -f " + productDir + productScopeFilePath + " ]] && echo 'file' || echo '' " ])
67
+ let isRemoteFile = () => execa('ssh', [cmdEnv.server, "[[ -f " + productDir + productScopeFilePath + " ]] && echo 'file' || echo '' " ])
68
68
  .then( r => {
69
69
  return r.stdout == "file"
70
70
  }).catch( () => {
@@ -77,8 +77,7 @@ async function otherFilesContiousReload(cmdEnv) {
77
77
  } catch {}
78
78
 
79
79
  if (
80
- (isLocalFile || isRemoteFile)
81
- && changedFile.indexOf("/customUI/") < 0
80
+ changedFile.indexOf("/customUI/") < 0
82
81
  && changedFile.indexOf("/node_modules/") < 0
83
82
  && !changedFile.startsWith(".git")
84
83
  && !changedFile.startsWith(".idea")
@@ -86,6 +85,7 @@ async function otherFilesContiousReload(cmdEnv) {
86
85
  && !changedFile.endsWith(".swp")
87
86
  && !changedFile.endsWith(".swap")
88
87
  && changedFile.indexOf(IN_PROGRESS_TEST_FILE) < 0
88
+ && (isLocalFile || await isRemoteFile())
89
89
  ) {
90
90
  try {
91
91
  await addFileToCurrentTest(cmdEnv.server, changedFile, changedFiles, " Syncing ".bgRed.bold + " ", restoreChanges );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cob-cli",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "A command line utility to help Cult of Bits partners develop with higher speed and reusing common code and best practices.",
5
5
  "preferGlobal": true,
6
6
  "repository": {