feat: add ES module builds (#2215)
This commit is contained in:
committed by
Shawn Erquhart
parent
7672f2ae27
commit
d142b32345
@ -4,13 +4,15 @@
|
||||
"version": "2.9.1-beta.0",
|
||||
"repository": "https://github.com/netlify/netlify-cms/tree/master/packages/netlify-cms-core",
|
||||
"bugs": "https://github.com/netlify/netlify-cms/issues",
|
||||
"module": "dist/esm/index.js",
|
||||
"main": "dist/netlify-cms-core.js",
|
||||
"files": [
|
||||
"src/",
|
||||
"dist/"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_ENV=production webpack"
|
||||
"build": "cross-env NODE_ENV=production webpack",
|
||||
"build:esm": "cross-env NODE_ENV=esm babel src --out-dir dist/esm --ignore src/**/__tests__/* --root-mode upward"
|
||||
},
|
||||
"keywords": [
|
||||
"netlify",
|
||||
|
4
packages/netlify-cms-core/src/bootstrap.js
vendored
4
packages/netlify-cms-core/src/bootstrap.js
vendored
@ -23,9 +23,7 @@ function bootstrap(opts = {}) {
|
||||
/**
|
||||
* Log the version number.
|
||||
*/
|
||||
if (NETLIFY_CMS_VERSION) {
|
||||
console.log(`netlify-cms ${NETLIFY_CMS_VERSION}`);
|
||||
} else if (NETLIFY_CMS_CORE_VERSION) {
|
||||
if (typeof NETLIFY_CMS_CORE_VERSION === 'string') {
|
||||
console.log(`netlify-cms-core ${NETLIFY_CMS_CORE_VERSION}`);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user