Skip to content

Commit

Permalink
comments and bump
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJaredWilcurt committed Dec 15, 2023
1 parent 8049122 commit 1b2eddc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ function getLocalNWVersion () {
return new Promise(async (resolve, reject) => {
const nwManifest = await getLocalNwManifest();
let localNwVersion = nwManifest?.version || '';

// '0.82.0-sdk' => '0.82.0'
localNwVersion = localNwVersion.replace('-sdk', '');

if (localNwVersion) {
resolve(localNwVersion);
} else {
Expand All @@ -101,6 +104,7 @@ function getCorrectNodeVersion () {
const allNwVersions = await getVersions();

const match = allNwVersions.versions.find(function (version) {
// 'v0.82.0' === 'v' + '0.82.0'
return version.version === 'v' + localNwVersion;
});
if (!match) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "base-volta-off-of-nwjs",
"version": "1.0.0",
"version": "1.0.1",
"main": "index.js",
"bin": "./index.js",
"license": "MIT",
Expand Down

0 comments on commit 1b2eddc

Please sign in to comment.