fix: log accurate version by distribution (#1531)

This commit is contained in:
Shawn Erquhart
2018-07-27 14:26:03 -04:00
committed by GitHub
parent 668a53a079
commit 95a76ad790
5 changed files with 33 additions and 14 deletions

View File

@ -20,7 +20,11 @@ function bootstrap(opts = {}) {
/**
* Log the version number.
*/
console.log(`Netlify CMS version ${NETLIFY_CMS_VERSION}`);
if (NETLIFY_CMS_VERSION) {
console.log(`netlify-cms ${NETLIFY_CMS_VERSION}`);
} else if (NETLIFY_CMS_CORE_VERSION) {
console.log(`netlify-cms-core ${NETLIFY_CMS_CORE_VERSION}`);
}
/**
* Get DOM element where app will mount.