@sasjs/cli 3.12.0 → 3.12.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.
@@ -60,7 +60,7 @@ var addCredential_1 = require("./addCredential");
60
60
  function addTarget(insecure) {
61
61
  var _a, _b, _c;
62
62
  return __awaiter(this, void 0, void 0, function () {
63
- var _d, scope, serverType, name, appLoc, serverUrl, existingTarget, saveWithDefaultValues, targetJson, target, filePath, _e, _f, serverName, repositoryName, userName, password, _g, contextName, updatedViyaTarget, updatedSasjsTarget, isDefault;
63
+ var _d, scope, serverType, name, appLoc, serverUrl, existingTarget, targetJson, target, filePath, _e, _f, serverName, repositoryName, userName, password, _g, contextName, updatedViyaTarget, updatedSasjsTarget, isDefault;
64
64
  return __generator(this, function (_h) {
65
65
  switch (_h.label) {
66
66
  case 0:
@@ -69,10 +69,9 @@ function addTarget(insecure) {
69
69
  return [4 /*yield*/, (0, input_1.getCommonFields)()];
70
70
  case 1:
71
71
  _d = _h.sent(), scope = _d.scope, serverType = _d.serverType, name = _d.name, appLoc = _d.appLoc, serverUrl = _d.serverUrl, existingTarget = _d.existingTarget;
72
- saveWithDefaultValues = !existingTarget;
73
72
  targetJson = __assign(__assign({}, existingTarget), { name: name, serverType: serverType, serverUrl: serverUrl, appLoc: appLoc });
74
73
  target = new types_1.Target(targetJson);
75
- return [4 /*yield*/, (0, saveConfig_1.saveConfig)(scope, target, false, saveWithDefaultValues)];
74
+ return [4 /*yield*/, (0, saveConfig_1.saveConfig)(scope, target, false, false)];
76
75
  case 2:
77
76
  filePath = _h.sent();
78
77
  (_b = process.logger) === null || _b === void 0 ? void 0 : _b.info("Target configuration has been saved to ".concat(filePath, " ."));
@@ -98,11 +97,7 @@ function addTarget(insecure) {
98
97
  case 6:
99
98
  _g = _h.sent(), contextName = _g.contextName, updatedViyaTarget = _g.target;
100
99
  targetJson = {
101
- contextName: contextName,
102
- deployConfig: {
103
- deployServicePack: true,
104
- deployScripts: []
105
- }
100
+ contextName: contextName
106
101
  };
107
102
  targetJson = __assign(__assign({}, updatedViyaTarget.toJson(false)), targetJson);
108
103
  return [3 /*break*/, 10];
@@ -115,7 +110,7 @@ function addTarget(insecure) {
115
110
  case 10: return [4 /*yield*/, (0, input_1.getIsDefault)()];
116
111
  case 11:
117
112
  isDefault = _h.sent();
118
- return [4 /*yield*/, (0, saveConfig_1.saveConfig)(scope, new types_1.Target(targetJson), isDefault, saveWithDefaultValues)];
113
+ return [4 /*yield*/, (0, saveConfig_1.saveConfig)(scope, new types_1.Target(targetJson), isDefault, false)];
119
114
  case 12:
120
115
  filePath = _h.sent();
121
116
  (_c = process.logger) === null || _c === void 0 ? void 0 : _c.info("Target configuration has been saved to ".concat(filePath));
package/package.json CHANGED
@@ -50,7 +50,7 @@
50
50
  "@sasjs/adapter": "3.8.0",
51
51
  "@sasjs/core": "4.15.3",
52
52
  "@sasjs/lint": "1.11.2",
53
- "@sasjs/utils": "2.40.0",
53
+ "@sasjs/utils": "2.40.1",
54
54
  "chalk": "4.1.2",
55
55
  "csv-stringify": "5.6.5",
56
56
  "dotenv": "10.0.0",
@@ -94,5 +94,5 @@
94
94
  "typescript": "4.5.4",
95
95
  "util": "0.12.4"
96
96
  },
97
- "version": "3.12.0"
97
+ "version": "3.12.1"
98
98
  }