Skip to content

Commit

Permalink
Fix publish issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jdnichollsc committed Jun 27, 2021
1 parent 152efc4 commit 349f610
Show file tree
Hide file tree
Showing 3 changed files with 159 additions and 30 deletions.
133 changes: 132 additions & 1 deletion publish/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 25 additions & 19 deletions src/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 2 additions & 10 deletions src/scripts/build-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,7 @@ exec('tns --version', (err, stdout, stderr) => {
return;
}

// In case the current Node.js version is not supported by CLI, a warning in `tns --version` output is shown.
// Sample output:
//
/*Support for Node.js ^8.0.0 is deprecated and will be removed in one of the next releases of NativeScript. Please, upgrade to the latest Node.js LTS version.
6.0.0
*/
// Extract the actual version (6.0.0) from it.
const tnsVersion = semver.major((stdout.match(/^(?:\d+\.){2}\d+.*?$/m) || [])[0]);
const tnsVersion = semver.major('8.0.2');

// execute 'tns plugin build' for {N} version > 4. This command builds .aar in platforms/android folder.
if (tnsVersion >= 4) {
Expand All @@ -29,4 +21,4 @@ exec('tns --version', (err, stdout, stderr) => {
}
});
}
});
});

0 comments on commit 349f610

Please sign in to comment.