@24i/smartapps-bigscreen-rnv-build-engine 0.0.2-alpha.1357 → 0.0.2-alpha.1359

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.
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resolvers_1 = require("../../resolvers");
4
4
  const gitUtils_1 = require("../utils/gitUtils");
5
5
  const c = resolvers_1.getBaseConfig();
6
- const { branchNames = {}, commitTitles = {} } = c.buildConfig?.common?.git || {};
7
- const { packageVersion = '' } = c.buildConfig?.common || {};
6
+ const { branchNames, commitTitles } = c.buildConfig.common.git;
7
+ const { packageVersion = '' } = c.buildConfig.common;
8
8
  const newReleaseBranchName = branchNames.rc;
9
9
  gitUtils_1.createBranch(newReleaseBranchName);
10
10
  gitUtils_1.checkout(newReleaseBranchName);
@@ -1,13 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const assert_1 = require("assert");
3
+ const strict_1 = require("assert/strict");
4
4
  const resolvers_1 = require("../../resolvers");
5
5
  const gitUtils_1 = require("../utils/gitUtils");
6
- const { ok } = assert_1.strict;
7
6
  const c = resolvers_1.getBaseConfig();
8
- const { branchNames = {}, commitTitles = {} } = c.buildConfig?.common?.git || {};
9
- ok(branchNames.dev);
10
- ok(branchNames.rc);
11
- ok(commitTitles.versionBump);
7
+ const { branchNames, commitTitles } = c.buildConfig.common.git;
8
+ strict_1.ok(branchNames.dev);
9
+ strict_1.ok(branchNames.rc);
10
+ strict_1.ok(commitTitles.versionBump);
12
11
  gitUtils_1.assertCurrentBranch(branchNames.dev);
13
12
  gitUtils_1.assertEmptyStatusList();
@@ -1,16 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.checkReleaseNotes = void 0;
4
- const assert_1 = require("assert");
4
+ const strict_1 = require("assert/strict");
5
5
  const utils_1 = require("../utils");
6
- const { ok } = assert_1.strict;
7
6
  const checkReleaseNotes = (c) => {
8
- const { relativePath, requiredRows = [] } = c.buildConfig?.common?.releaseNotes || {};
7
+ const { relativePath, requiredRows = [] } = c.buildConfig.common.releaseNotes;
9
8
  utils_1.fsUtils.assertPath(relativePath);
10
9
  const fileContent = utils_1.fsUtils.getFileContentAsString(relativePath);
11
10
  const assertFileContentRow = (expectedRowContent) => {
12
11
  const errorMsg = `${relativePath} should contain following row: "${expectedRowContent}"`;
13
- ok(fileContent.includes(expectedRowContent), errorMsg);
12
+ strict_1.ok(fileContent.includes(expectedRowContent), errorMsg);
14
13
  };
15
14
  requiredRows.forEach(assertFileContentRow);
16
15
  };
@@ -1,26 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const assert_1 = require("assert");
3
+ const strict_1 = require("assert/strict");
4
4
  const resolvers_1 = require("../../resolvers");
5
5
  const utils_1 = require("../utils");
6
6
  const checkReleaseNotes_1 = require("./checkReleaseNotes");
7
- const { ok } = assert_1.strict;
8
7
  const c = resolvers_1.getBaseConfig();
9
- const { branchNames = {}, pullRequestTitles } = c.buildConfig?.common?.git || {};
8
+ const { branchNames, pullRequestTitles } = c.buildConfig.common.git || {};
10
9
  const rcBranchName = branchNames.rc;
11
10
  const distBranchName = branchNames.dist;
12
11
  const devBranchName = branchNames.dev;
13
- ok(rcBranchName);
14
- ok(distBranchName);
15
- ok(devBranchName);
12
+ strict_1.ok(rcBranchName);
13
+ strict_1.ok(distBranchName);
14
+ strict_1.ok(devBranchName);
16
15
  utils_1.gitUtils.assertCurrentBranch(rcBranchName);
17
16
  utils_1.gitUtils.assertEmptyStatusList();
18
17
  utils_1.gitUtils.assertRemoteBranch(rcBranchName);
19
18
  utils_1.gitUtils.assertRemoteBranch(distBranchName);
20
19
  const distributionPrTitle = pullRequestTitles.rcToDist;
21
20
  const developmentPrTitle = pullRequestTitles.rcToDev;
22
- ok(distributionPrTitle);
23
- ok(developmentPrTitle);
21
+ strict_1.ok(distributionPrTitle);
22
+ strict_1.ok(developmentPrTitle);
24
23
  utils_1.gitUtils.pull();
25
24
  checkReleaseNotes_1.checkReleaseNotes(c);
26
25
  console.log(`Creating Pull Request from ${rcBranchName} branch to ${distBranchName} branch...`);
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const assert_1 = require("assert");
3
+ const strict_1 = require("assert/strict");
4
4
  const resolvers_1 = require("../../resolvers");
5
5
  const utils_1 = require("../utils");
6
6
  const checkReleaseNotes_1 = require("./checkReleaseNotes");
7
- const { ok } = assert_1.strict;
8
7
  const c = resolvers_1.getBaseConfig();
9
- const { branchNames = {}, commitTitles = {}, pullRequestTitles = {}, } = c.buildConfig?.common?.git || {};
10
- const { relativePath = [] } = c.buildConfig?.common?.releaseNotes || {};
8
+ const { branchNames, commitTitles, pullRequestTitles } = c.buildConfig.common.git || {};
9
+ const { relativePath } = c.buildConfig.common.releaseNotes || {};
11
10
  const rcBranchName = branchNames.rc;
12
11
  const releaseNotesBranchName = branchNames.rcReleaseNotes;
13
12
  const commitTitle = commitTitles.rcReleaseNotes;
14
13
  const prTitle = pullRequestTitles.releaseNotesToRc;
15
- ok(relativePath);
16
- ok(releaseNotesBranchName);
17
- ok(commitTitle);
18
- ok(prTitle);
14
+ strict_1.ok(relativePath);
15
+ strict_1.ok(releaseNotesBranchName);
16
+ strict_1.ok(commitTitle);
17
+ strict_1.ok(prTitle);
19
18
  utils_1.gitUtils.assertCurrentBranch(rcBranchName);
20
19
  utils_1.gitUtils.assertRemoteBranch(rcBranchName);
21
20
  checkReleaseNotes_1.checkReleaseNotes(c);
@@ -26,7 +25,7 @@ if (changedFilesCount === 0) {
26
25
  console.log('Skipping making a commit, if needed, please continue on your own (manually).');
27
26
  }
28
27
  else {
29
- ok(changedFilesCount === 1, `Only ${relativePath} should contain changes!`);
28
+ strict_1.ok(changedFilesCount === 1, `Only ${relativePath} should contain changes!`);
30
29
  utils_1.gitUtils.createBranch(releaseNotesBranchName);
31
30
  utils_1.gitUtils.checkout(releaseNotesBranchName);
32
31
  utils_1.gitUtils.add([relativePath]);
@@ -26,20 +26,20 @@ const common_1 = require("rnv/dist/core/common");
26
26
  const resolvers_1 = require("../../resolvers");
27
27
  const urlsMarkdown_1 = require("./urlsMarkdown");
28
28
  const appCenterRelease = (params) => {
29
- const { filePath, releaseNotesPath, buildVersion, token, projectName, group = 'Collaborators', organizationName = '24i-Media', } = params;
30
- const app = `${organizationName}/${projectName}`;
29
+ const { filePath, releaseNotesPath, buildVersion, token, projectName } = params;
30
+ const app = `24i-Media/${projectName}`;
31
31
  child_process_1.execSync('appcenter distribute release '
32
32
  + `--file "${filePath}" `
33
33
  + `--release-notes-file "${releaseNotesPath}" `
34
34
  + `--build-version "${buildVersion}" `
35
35
  + `--app "${app}" `
36
36
  + `--token "${token}" `
37
- + `--group "${group}" `
37
+ + '--group "Collaborators" '
38
38
  + '--disable-telemetry', { stdio: 'inherit' });
39
39
  };
40
40
  const getAppCenterConfigByPlatformName = (c, platformName) => {
41
41
  try {
42
- return c.buildConfig.platforms[platformName].deploy.appCenter || null;
42
+ return c.buildConfig.platforms[platformName]?.deploy?.appCenter || null;
43
43
  }
44
44
  catch (error) {
45
45
  return null;
@@ -22,11 +22,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.githubRelease = void 0;
23
23
  const child_process_1 = require("child_process");
24
24
  const fs = __importStar(require("fs"));
25
- const assert_1 = require("assert");
25
+ const strict_1 = require("assert/strict");
26
26
  const path_1 = require("path");
27
27
  const resolvers_1 = require("../../resolvers");
28
28
  const urlsMarkdown_1 = require("./urlsMarkdown");
29
- const { ok } = assert_1.strict;
30
29
  const token = process.env.GITHUB_TOKEN;
31
30
  const targetCommit = process.env.TRAVIS_COMMIT;
32
31
  const githubContentType = 'application/vnd.github.v3+json';
@@ -37,7 +36,7 @@ const handleResponseErrors = (response) => {
37
36
  throw new Error(`GitHub error: ${message}`);
38
37
  if (!errors)
39
38
  return;
40
- const makeErrorDetailString = (error = {}) => Object
39
+ const makeErrorDetailString = (error) => Object
41
40
  .keys(error)
42
41
  .map((key) => `${key}: "${error[key]}"`)
43
42
  .join(', ');
@@ -59,20 +58,20 @@ const deleteFileIfExists = (filePath) => {
59
58
  };
60
59
  const makeGitHubReleaseNotes = (c) => {
61
60
  const releaseNotesPath = getReleaseNotesPath(c);
62
- ok(releaseNotesPath, 'The path to the file with release notes is missing!');
61
+ strict_1.ok(releaseNotesPath, 'The path to the file with release notes is missing!');
63
62
  deleteFileIfExists(githubReleaseNotesPath);
64
63
  child_process_1.execSync(`sed '1d;2d' ${releaseNotesPath} >> ${githubReleaseNotesPath}`);
65
64
  const textToAppend = urlsMarkdown_1.getUrlsMarkdown(c);
66
65
  child_process_1.execSync(`echo "${textToAppend}" >> ${githubReleaseNotesPath}`);
67
66
  };
68
67
  const createRelease = (c) => {
69
- const { packageVersion, git = {} } = c.buildConfig.common;
68
+ const { packageVersion, git } = c.buildConfig.common;
70
69
  const versionLabel = `v${packageVersion}`;
71
- ok(token, 'process.env.GITHUB_TOKEN is not set!');
72
- ok(targetCommit, 'process.env.TRAVIS_COMMIT is not set!');
73
- ok(git.owner, 'Missing value for rnv config prop: common.git.owner');
74
- ok(git.repo, 'Missing value for rnv config prop: common.git.repo');
75
- ok(packageVersion);
70
+ strict_1.ok(token, 'process.env.GITHUB_TOKEN is not set!');
71
+ strict_1.ok(targetCommit, 'process.env.TRAVIS_COMMIT is not set!');
72
+ strict_1.ok(git.owner, 'Missing value for rnv config prop: common.git.owner');
73
+ strict_1.ok(git.repo, 'Missing value for rnv config prop: common.git.repo');
74
+ strict_1.ok(packageVersion);
76
75
  makeGitHubReleaseNotes(c);
77
76
  const releaseNotesContent = fs.readFileSync(githubReleaseNotesPath).toString();
78
77
  const data = {
@@ -100,9 +99,7 @@ const getFileMimeType = (filepath) => {
100
99
  .toString()
101
100
  .replace(/\r?\n/, '');
102
101
  };
103
- const uploadAsset = (uploadUrl = '', filePath) => {
104
- if (!uploadUrl)
105
- return null;
102
+ const uploadAsset = (uploadUrl, filePath) => {
106
103
  const url = `${uploadUrl.replace('{?name,label}', '')}`;
107
104
  const headers = `-H "Accept: ${githubContentType}" -H "Authorization: token ${token}" -H "content-type: ${getFileMimeType(filePath)}" -H "content-length: ${fs.statSync(filePath).size}"`;
108
105
  const cmd = `curl --data-binary @"${filePath}" ${headers} ${url}?name=${path_1.basename(filePath)}`;
@@ -122,10 +119,8 @@ const uploadZipWithPlatformBuilds = (c, platformName, githubUploadUrl) => {
122
119
  const githubRelease = (c) => {
123
120
  const releaseResponse = createRelease(c) || {};
124
121
  const uploadUrl = releaseResponse.upload_url;
125
- ok(uploadUrl, 'Missing "upload_url" in release response!');
126
- const { defaults = {} } = c.buildConfig;
127
- const { supportedPlatforms = [] } = defaults;
128
- supportedPlatforms.forEach((platformName) => {
122
+ strict_1.ok(uploadUrl, 'Missing "upload_url" in release response!');
123
+ c.buildConfig.defaults.supportedPlatforms.forEach((platformName) => {
129
124
  uploadZipWithPlatformBuilds(c, platformName, uploadUrl);
130
125
  });
131
126
  deleteFileIfExists(githubReleaseNotesPath);
@@ -3,10 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.makeDistributionPayload = exports.makeReleaseCandidatePayload = exports.makeDevelopmentPayload = void 0;
4
4
  const slackBlockKitBuilder_1 = require("./slackBlockKitBuilder");
5
5
  const resolvers_1 = require("../../../resolvers");
6
- const getVersionsObject = (c) => {
7
- const { versions = [] } = resolvers_1.resolveDeployLocations(c) || {};
8
- return versions;
9
- };
6
+ const getVersionsObject = (c) => resolvers_1.resolveDeployLocations(c).versions;
10
7
  const getVersion = (c) => Object.keys(getVersionsObject(c))[0] || '';
11
8
  const getPlatformsObject = (c) => {
12
9
  const version = getVersion(c);
@@ -42,29 +39,33 @@ const makePackagesPayload = (c) => {
42
39
  .map((platformName) => makePackagePayload(c, platformName))
43
40
  .flat();
44
41
  };
45
- const makeHeaderPayload = (c, { title = '', buttons }) => {
42
+ const makeHeaderPayload = (c, title, buttons) => {
46
43
  const { travisBuild, gitHubRelease } = buttons || {};
47
44
  const { owner, repo } = c.buildConfig.common.git || {};
48
45
  const version = getVersion(c);
46
+ const buttonsData = [];
47
+ if (travisBuild) {
48
+ buttonsData.push({
49
+ text: 'View Travis Build Log',
50
+ url: process.env.TRAVIS_BUILD_WEB_URL || `https://travis-ci.com/github/${owner}/${repo}/branches`,
51
+ });
52
+ }
53
+ if (gitHubRelease) {
54
+ buttonsData.push({
55
+ text: 'View GitHub Release',
56
+ url: `https://github.com/${owner}/${repo}/releases/tag/${version}`,
57
+ });
58
+ }
49
59
  return [
50
60
  slackBlockKitBuilder_1.Divider.plain(),
51
61
  slackBlockKitBuilder_1.Section.mrkdwn(title),
52
62
  slackBlockKitBuilder_1.Context.mrkdwns([`Version: *${version}*`]),
53
- slackBlockKitBuilder_1.Actions.buttons([
54
- travisBuild ? {
55
- text: 'View Travis Build Log',
56
- url: process.env.TRAVIS_BUILD_WEB_URL || `https://travis-ci.com/github/${owner}/${repo}/branches`,
57
- } : null,
58
- gitHubRelease ? {
59
- text: 'View GitHub Release',
60
- url: `https://github.com/${owner}/${repo}/releases/tag/${version}`,
61
- } : null,
62
- ].filter(Boolean)),
63
+ slackBlockKitBuilder_1.Actions.buttons(buttonsData),
63
64
  ];
64
65
  };
65
66
  const makePayload = (c, title, buttons) => ({
66
67
  blocks: [
67
- ...makeHeaderPayload(c, { title, buttons }),
68
+ ...makeHeaderPayload(c, title, buttons),
68
69
  ...makePackagesPayload(c),
69
70
  ],
70
71
  });
@@ -34,8 +34,10 @@ const getPayload = (c) => {
34
34
  const notifySlack = (c) => {
35
35
  const contentType = '"Content-type: application/json"';
36
36
  const data = `--data '${JSON.stringify(getPayload(c))}'`;
37
- const webHookUrl = c.buildConfig?.common?.deploy?.slack?.webhookUrl || '';
38
- const cmd = `curl -X POST -H ${contentType} ${data} ${webHookUrl}`;
39
- child_process_1.execSync(cmd, { stdio: 'inherit' });
37
+ const webHookUrl = c.buildConfig.common.deploy.slack?.webhookUrl || '';
38
+ if (webHookUrl) {
39
+ const cmd = `curl -X POST -H ${contentType} ${data} ${webHookUrl}`;
40
+ child_process_1.execSync(cmd, { stdio: 'inherit' });
41
+ }
40
42
  };
41
43
  exports.notifySlack = notifySlack;
@@ -7,10 +7,10 @@ const plainText = (text) => ({
7
7
  text,
8
8
  emoji: true,
9
9
  });
10
- const buttonWithUrl = ({ text, url }) => ({
10
+ const buttonWithUrl = (buttonProps) => ({
11
11
  type: 'button',
12
- text: plainText(text),
13
- url,
12
+ text: plainText(buttonProps.text),
13
+ url: buttonProps.url,
14
14
  });
15
15
  const Section = {
16
16
  mrkdwn: (text) => ({
@@ -36,7 +36,8 @@ const getPlatformOutput = (data, platformName) => {
36
36
  }
37
37
  const platformData = data[platformName];
38
38
  let output = `**${beautifyPlatformName(platformName)}**${newLine}`;
39
- const processPlatformEntry = ([flavour, flavourData]) => {
39
+ const processPlatformEntry = (platformEntry) => {
40
+ const [flavour, flavourData] = platformEntry;
40
41
  const { indexUrl } = flavourData;
41
42
  output += `* [${flavour}](${indexUrl})${newLine}`;
42
43
  };
@@ -21,11 +21,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.assertPath = exports.getFileContentAsString = void 0;
23
23
  const fs = __importStar(require("fs"));
24
- const assert = __importStar(require("assert"));
24
+ const strict_1 = require("assert/strict");
25
25
  const getFileContentAsString = (filePath) => fs.readFileSync(filePath).toString();
26
26
  exports.getFileContentAsString = getFileContentAsString;
27
27
  const assertPath = (path) => {
28
28
  const errorMsg = `File or path ${path} does not exist!`;
29
- assert.strict.ok(fs.existsSync(path), errorMsg);
29
+ strict_1.ok(fs.existsSync(path), errorMsg);
30
30
  };
31
31
  exports.assertPath = assertPath;
@@ -1,29 +1,9 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
2
  Object.defineProperty(exports, "__esModule", { value: true });
22
3
  exports.assertRemoteBranch = exports.assertCurrentBranch = exports.assertEmptyStatusList = exports.push = exports.commit = exports.createBranch = exports.checkout = exports.add = exports.addAll = exports.pull = exports.remoteBranchExists = exports.pullRequest = exports.getCurrentBranchName = exports.statusList = void 0;
23
- const assert = __importStar(require("assert"));
4
+ const strict_1 = require("assert/strict");
24
5
  const cmdUtils_1 = require("./cmdUtils");
25
6
  const stringUtils_1 = require("./stringUtils");
26
- const { ok } = assert.strict;
27
7
  const statusList = () => {
28
8
  const gitCmd = 'git status --porcelain';
29
9
  const outputString = cmdUtils_1.cmdSyncTrimOut(gitCmd);
@@ -45,7 +25,7 @@ const pullRequest = (fromBranch, toBranch, prTitle) => {
45
25
  const errorMsg = `${cmdTool} is not installed! See ${installDocUrl}\n`;
46
26
  try {
47
27
  const toolPath = cmdUtils_1.cmdSyncTrimOut(`${cmdTool} --version`);
48
- ok(toolPath, errorMsg);
28
+ strict_1.ok(toolPath, errorMsg);
49
29
  }
50
30
  catch (error) {
51
31
  throw new Error(errorMsg);
@@ -82,17 +62,17 @@ const push = (branchName, noVerify) => {
82
62
  };
83
63
  exports.push = push;
84
64
  const assertEmptyStatusList = () => {
85
- ok(statusList().length === 0, 'An empty GIT stage is expected!');
65
+ strict_1.ok(statusList().length === 0, 'An empty GIT stage is expected!');
86
66
  };
87
67
  exports.assertEmptyStatusList = assertEmptyStatusList;
88
68
  const assertCurrentBranch = (expectedBranchName) => {
89
69
  const currentGitBranchName = getCurrentBranchName();
90
70
  const errorMsg = `The ${expectedBranchName} branch is expected to be active, not "${currentGitBranchName}"`;
91
- ok(currentGitBranchName === expectedBranchName, errorMsg);
71
+ strict_1.ok(currentGitBranchName === expectedBranchName, errorMsg);
92
72
  };
93
73
  exports.assertCurrentBranch = assertCurrentBranch;
94
74
  const assertRemoteBranch = (expectedBranchName) => {
95
75
  const errorMsg = `Remote branch ${expectedBranchName} does not exist!`;
96
- ok(remoteBranchExists(expectedBranchName), errorMsg);
76
+ strict_1.ok(remoteBranchExists(expectedBranchName), errorMsg);
97
77
  };
98
78
  exports.assertRemoteBranch = assertRemoteBranch;
@@ -24,8 +24,8 @@ const fs = __importStar(require("fs"));
24
24
  const path = __importStar(require("path"));
25
25
  const os = __importStar(require("os"));
26
26
  const semver = __importStar(require("semver"));
27
- const rnv_1 = require("rnv");
28
27
  const child_process_1 = require("child_process");
28
+ const rnv_1 = require("rnv");
29
29
  const installer_1 = require("rnv/dist/core/sdkManager/installer");
30
30
  const sdkUtils_1 = require("../sdkUtils");
31
31
  const { execCLI } = rnv_1.Exec;
@@ -219,7 +219,7 @@ const getSdkInstallerUrl = () => {
219
219
  };
220
220
  const handleTizenSdk = async (c) => {
221
221
  const { TIZEN_SDK_INSTALLER_URL = getSdkInstallerUrl() } = process.env;
222
- const { TIZEN_SDK } = c.buildConfig?.sdks || {};
222
+ const { TIZEN_SDK } = c.buildConfig.sdks || {};
223
223
  const installPath = `${os.homedir()}/tizen-studio`;
224
224
  const rnvSdkKey = 'TIZEN_SDK';
225
225
  if (!TIZEN_SDK) {
@@ -146,7 +146,7 @@ exports.configureWebOSProject = configureWebOSProject;
146
146
  const sdkInstallerUUrl = 'https://s3.amazonaws.com/tools.nxg-bigscreen.24imedia.com/sdks/webos/ares_webos_builder_v1.10.4_multiplatform.zip';
147
147
  const handleWebosSdk = async (c) => {
148
148
  const { WEBOS_SDK_INSTALLER_URL = sdkInstallerUUrl } = process.env;
149
- const { WEBOS_SDK } = c.buildConfig?.sdks || {};
149
+ const { WEBOS_SDK } = c.buildConfig.sdks || {};
150
150
  const installPath = `${os_1.homedir()}/webOS_TV_SDK`;
151
151
  const rnvSdkKey = 'WEBOS_SDK';
152
152
  if (!WEBOS_SDK) {
@@ -4,7 +4,7 @@ exports.replaceTemplateString = void 0;
4
4
  const rnv_1 = require("rnv");
5
5
  const resolvers_1 = require("../../resolvers");
6
6
  const { getConfigProp } = rnv_1.Common;
7
- const getValueFromConfigByStringPath = (c, stringPathToObjectProp = '') => {
7
+ const getValueFromConfigByStringPath = (c, stringPathToObjectProp) => {
8
8
  const pathToPropList = stringPathToObjectProp.split('.');
9
9
  const listLength = pathToPropList.length;
10
10
  let currentPropValue = c;
@@ -21,7 +21,7 @@ const getValueFromConfigByStringPath = (c, stringPathToObjectProp = '') => {
21
21
  return null;
22
22
  }
23
23
  };
24
- const getValue = (c, stringInsideBracelets = '') => {
24
+ const getValue = (c, stringInsideBracelets) => {
25
25
  if (stringInsideBracelets.startsWith('c.')) {
26
26
  return getValueFromConfigByStringPath(c, stringInsideBracelets);
27
27
  }
@@ -49,7 +49,7 @@ const handleStringEnd = (string) => {
49
49
  return outputString;
50
50
  };
51
51
  const replaceTemplateString = (c, string = '') => {
52
- if (!string || typeof string !== 'string')
52
+ if (!string)
53
53
  return '';
54
54
  const replacer = (match) => {
55
55
  const stringInBracelets = match.slice(injectorStartMark.length, -injectorEndMark.length);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@24i/smartapps-bigscreen-rnv-build-engine",
3
- "version": "0.0.2-alpha.1357+ef0de5a1",
3
+ "version": "0.0.2-alpha.1359+32708bd6",
4
4
  "description": "Package with build engine for SmartApps BigScreen projects...",
5
5
  "main": "dist/src/index.js",
6
6
  "scripts": {
@@ -13,7 +13,7 @@
13
13
  "stylelint": "stylelint \"./src/**/*.scss\" --aei --cache --rd --risd --rdd",
14
14
  "lintcheck": "npm run eslint && npm run stylelint",
15
15
  "typecheck": "tsc --noEmit",
16
- "test": "jest",
16
+ "test": "jest --passWithNoTests",
17
17
  "checks": "npm run lintcheck && npm run typecheck && npm run test",
18
18
  "prepublishOnly": "npm run build"
19
19
  },
@@ -52,10 +52,11 @@
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/node": "16.3.1",
55
+ "@types/semver": "7.3.7",
55
56
  "@types/ssh2": "0.5.47"
56
57
  },
57
58
  "keywords": [],
58
59
  "author": "24i",
59
60
  "license": "ISC",
60
- "gitHead": "ef0de5a13278a2e49fa5247d9e1fed1c33c407ec"
61
+ "gitHead": "32708bd64ec5f98e4050a661d917771132109932"
61
62
  }