diff --git a/scripts/update-changelog.js b/scripts/update-changelog.js index 2a58e8503e4..f131afc0ceb 100644 --- a/scripts/update-changelog.js +++ b/scripts/update-changelog.js @@ -41,7 +41,7 @@ function findFirstPackageVersion(basePath){ } if(packageJson.version != null){ - return version; + return packageJson.version; } console.log('Version in', packageJsonPath, 'was null or undefined, skipping');