@sasjs/cli 3.23.4 → 3.23.6

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.
@@ -120,7 +120,7 @@ var description = 'Handles operations around file system synchronisation';
120
120
  var parseOptions = {
121
121
  output: { type: 'string', alias: 'o' }
122
122
  };
123
- var compileCommandSyntax = 'fs <subCommand> <localFolder> [options]';
123
+ var compileCommandSyntax = 'fs <subCommand> <local> [options]';
124
124
  var compileCommandUsage = 'sasjs fs compile <localFolder> [options]';
125
125
  var compileCommandDescription = 'Compiles a SAS program with the contents of a local directory';
126
126
  var compileCommandExamples = [
@@ -324,11 +324,13 @@ var FSCommand = /** @class */ (function (_super) {
324
324
  case 7:
325
325
  _v.sent();
326
326
  (_e = process.logger) === null || _e === void 0 ? void 0 : _e.info('creating the hash of local folder');
327
- return [4 /*yield*/, (0, utils_2.getHash)(obj.local)];
327
+ return [4 /*yield*/, (0, utils_2.getHash)((0, utils_2.getAbsolutePath)(obj.local, process.projectDir))];
328
328
  case 8:
329
329
  localHash = _v.sent();
330
330
  remoteHashMap_1 = remoteHashes.reduce(function (map, item) {
331
- var relativePath = (0, utils_2.getRelativePath)(obj.remote, item.FILE_PATH);
331
+ var from = obj.remote.replace(/\//g, path_1.default.sep);
332
+ var to = item.FILE_PATH.replace(/\//g, path_1.default.sep);
333
+ var relativePath = (0, utils_2.getRelativePath)(from, to);
332
334
  map[relativePath] = item.FILE_HASH;
333
335
  return map;
334
336
  }, {});
@@ -360,7 +362,9 @@ var FSCommand = /** @class */ (function (_super) {
360
362
  case 14:
361
363
  _v.sent();
362
364
  syncedHashMap = syncedHash.reduce(function (map, item) {
363
- var relativePath = (0, utils_2.getRelativePath)(obj.remote, item.FILE_PATH);
365
+ var from = obj.remote.replace(/\//g, path_1.default.sep);
366
+ var to = item.FILE_PATH.replace(/\//g, path_1.default.sep);
367
+ var relativePath = (0, utils_2.getRelativePath)(from, to);
364
368
  map[relativePath] = item.FILE_HASH;
365
369
  return map;
366
370
  }, {});
package/package.json CHANGED
@@ -51,9 +51,9 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@sasjs/adapter": "4.1.0",
54
- "@sasjs/core": "4.45.3",
54
+ "@sasjs/core": "4.45.4",
55
55
  "@sasjs/lint": "2.0.1",
56
- "@sasjs/utils": "2.51.2",
56
+ "@sasjs/utils": "2.51.3",
57
57
  "adm-zip": "0.5.9",
58
58
  "chalk": "4.1.2",
59
59
  "csv-stringify": "5.6.5",
@@ -101,5 +101,5 @@
101
101
  "typescript": "4.5.4",
102
102
  "util": "0.12.4"
103
103
  },
104
- "version": "3.23.4"
104
+ "version": "3.23.6"
105
105
  }