chore: improve build output (#2258)

This commit is contained in:
Tony Alves
2019-04-04 11:16:06 -07:00
committed by Shawn Erquhart
parent 54fde06050
commit f5e148f9a7
36 changed files with 47 additions and 43 deletions

View File

@ -1,10 +1,12 @@
const path = require('path');
const version = require('./packages/netlify-cms/package.json').version;
const appVersion = require('./packages/netlify-cms-app/package.json').version;
const coreVersion = require('./packages/netlify-cms-core/package.json').version;
const isProduction = process.env.NODE_ENV === 'production';
const isTest = process.env.NODE_ENV === 'test';
const isESM = process.env.NODE_ENV === 'esm';
console.log('Build Package:', path.basename(process.cwd()));
const presets = () => {
return ['@babel/preset-react', '@babel/preset-env'];
};
@ -82,7 +84,7 @@ const plugins = () => {
[
'transform-define',
{
NETLIFY_CMS_VERSION: `${version}`,
NETLIFY_CMS_APP_VERSION: `${appVersion}`,
NETLIFY_CMS_CORE_VERSION: `${coreVersion}`,
},
],