@sasjs/cli 3.15.2 → 3.16.0

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.
@@ -200,12 +200,12 @@ function createFinalSasFiles(target) {
200
200
  }
201
201
  function getBuildInfo(target, streamWeb) {
202
202
  return __awaiter(this, void 0, void 0, function () {
203
- var buildConfig, serverType, appLoc, macroFolders, createWebServiceScript, macroCorePath, dependencyFilePaths, createFileScript, dependencyFilePathsForCreateFile, gsubScript, dependencyFilePathsForGsubScript, dependenciesContent, buildVars;
203
+ var buildConfig, serverType, appLoc, serverName, macroFolders, createWebServiceScript, macroCorePath, dependencyFilePaths, createFileScript, dependencyFilePathsForCreateFile, gsubScript, dependencyFilePathsForGsubScript, dependenciesContent, buildVars;
204
204
  return __generator(this, function (_a) {
205
205
  switch (_a.label) {
206
206
  case 0:
207
207
  buildConfig = '';
208
- serverType = target.serverType, appLoc = target.appLoc;
208
+ serverType = target.serverType, appLoc = target.appLoc, serverName = target.serverName;
209
209
  return [4 /*yield*/, (0, config_1.getMacroFolders)(target)];
210
210
  case 1:
211
211
  macroFolders = _a.sent();
@@ -244,7 +244,7 @@ function getBuildInfo(target, streamWeb) {
244
244
  return [4 /*yield*/, getBuildVars(target)];
245
245
  case 10:
246
246
  buildVars = _a.sent();
247
- return [2 /*return*/, "\n/**\n * The appLoc represents the metadata or SAS Drive location of the app you\n * are about to deploy\n *\n * To set an alternative appLoc, simply populate the appLoc variable prior\n * to running this program, eg:\n *\n * %let apploc=/my/apploc;\n * %inc thisfile;\n *\n */\n\n%global appLoc;\n%let compiled_apploc=".concat(appLoc, ";\n\n%let appLoc=%sysfunc(coalescec(&appLoc,&compiled_apploc));\n\n%let sasjs_clickmeservice=clickme;\n%let syscc=0;\noptions ps=max nonotes nosgen nomprint nomlogic nosource2 nosource noquotelenmax;\n/* user supplied build vars */\n").concat(buildVars, "\n/* user supplied build vars end */\n/* system macro dependencies for build process */\n").concat(dependenciesContent, "\n/* system macro dependencies for build process end*/\n/* system macros for build process */\n").concat(buildConfig, "\n/* system macros for build process end */\n")];
247
+ return [2 /*return*/, "\n/**\n * The appLoc represents the metadata or SAS Drive location of the app you\n * are about to deploy\n *\n * To set an alternative appLoc, simply populate the appLoc variable prior\n * to running this program, eg:\n *\n * %let apploc=/my/apploc;\n * %inc thisfile;\n *\n */\n\n%global appLoc serverName;\n%let compiled_apploc=".concat(appLoc, ";\n\n").concat(serverType === utils_1.ServerType.Sas9 ? "%let serverName=".concat(serverName, ";") : '', "\n\n%let appLoc=%sysfunc(coalescec(&appLoc,&compiled_apploc));\n\n%let sasjs_clickmeservice=clickme;\n%let syscc=0;\noptions ps=max nonotes nosgen nomprint nomlogic nosource2 nosource noquotelenmax;\n/* user supplied build vars */\n").concat(buildVars, "\n/* user supplied build vars end */\n/* system macro dependencies for build process */\n").concat(dependenciesContent, "\n/* system macro dependencies for build process end*/\n/* system macros for build process */\n").concat(buildConfig, "\n/* system macros for build process end */\n")];
248
248
  }
249
249
  });
250
250
  });
@@ -314,7 +314,7 @@ function getWebServiceScriptInvocation(serverType, isSASFile, encoded) {
314
314
  ? "%mv_createwebservice(path=&appLoc/&path, name=&service, code=sascode ,replace=yes)"
315
315
  : "%mv_createfile(path=&appLoc/&path, name=&filename, inref=filecode".concat(encodedParam, ")");
316
316
  case utils_1.ServerType.Sas9:
317
- return "%mm_createwebservice(path=&appLoc/&path, name=&service, code=sascode ,replace=yes)";
317
+ return "%mm_createwebservice(path=&appLoc/&path, name=&service, code=sascode, server=&serverName, replace=yes)";
318
318
  case utils_1.ServerType.Sasjs:
319
319
  return isSASFile
320
320
  ? "%mv_createwebservice(path=&appLoc/&path, name=&service, code=sascode ,replace=yes)"
package/package.json CHANGED
@@ -96,5 +96,5 @@
96
96
  "typescript": "4.5.4",
97
97
  "util": "0.12.4"
98
98
  },
99
- "version": "3.15.2"
99
+ "version": "3.16.0"
100
100
  }