From a09fa5e7c1e7c9b026144d6e03af4ad615bde674 Mon Sep 17 00:00:00 2001 From: liujuping Date: Fri, 23 Feb 2024 15:35:02 +0800 Subject: [PATCH 1/9] fix: plugin-multiple-editor build error --- package.json | 5 +- .../plugin-multiple-editor/scripts/build.js | 132 +++++++++--------- 2 files changed, 72 insertions(+), 65 deletions(-) diff --git a/package.json b/package.json index 761e9e0..5adc73b 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,8 @@ "f2elint": "^2.0.1", "husky": "^7.0.4", "lerna": "^4.x", - "typescript": "^3.2.2" + "typescript": "^3.2.2", + "webpack": "^5.90.3" }, "engines": { "node": ">=14.0.0" @@ -56,4 +57,4 @@ "@builder/babel-preset-ice": "1.0.1" }, "repository": "https://github.com/alibaba/lowcode-plugins.git" -} \ No newline at end of file +} diff --git a/packages/plugin-multiple-editor/scripts/build.js b/packages/plugin-multiple-editor/scripts/build.js index a15ed89..c178de8 100644 --- a/packages/plugin-multiple-editor/scripts/build.js +++ b/packages/plugin-multiple-editor/scripts/build.js @@ -122,74 +122,80 @@ function build(previousFileSizes) { const compiler = webpack(config); return new Promise((resolve, reject) => { - compiler.run((err, stats) => { - let messages; - if (err) { - if (!err.message) { - return reject(err); - } - - let errMessage = err.message; - - // Add additional information for postcss errors - if (Object.prototype.hasOwnProperty.call(err, 'postcssNode')) { - errMessage += - '\nCompileError: Begins at CSS selector ' + - err['postcssNode'].selector; + try { + compiler.run((err, stats) => { + let messages; + if (err) { + if (!err.message) { + return reject(err); + } + + let errMessage = err.message; + + // Add additional information for postcss errors + if (Object.prototype.hasOwnProperty.call(err, 'postcssNode')) { + errMessage += + '\nCompileError: Begins at CSS selector ' + + err['postcssNode'].selector; + } + + messages = formatWebpackMessages({ + errors: [errMessage], + warnings: [], + }); + } else { + messages = formatWebpackMessages( + stats.toJson({ all: false, warnings: true, errors: true }) + ); } - - messages = formatWebpackMessages({ - errors: [errMessage], - warnings: [], - }); - } else { - messages = formatWebpackMessages( - stats.toJson({ all: false, warnings: true, errors: true }) - ); - } - if (messages.errors.length) { - // Only keep the first error. Others are often indicative - // of the same problem, but confuse the reader with noise. - if (messages.errors.length > 1) { - messages.errors.length = 1; + if (messages.errors.length) { + // Only keep the first error. Others are often indicative + // of the same problem, but confuse the reader with noise. + if (messages.errors.length > 1) { + messages.errors.length = 1; + } + return reject(new Error(messages.errors.join('\n\n'))); } - return reject(new Error(messages.errors.join('\n\n'))); - } - if ( - process.env.CI && - (typeof process.env.CI !== 'string' || - process.env.CI.toLowerCase() !== 'false') && - messages.warnings.length - ) { - // Ignore sourcemap warnings in CI builds. See #8227 for more info. - const filteredWarnings = messages.warnings.filter( - w => !/Failed to parse source map/.test(w) - ); - if (filteredWarnings.length) { - console.log( - chalk.yellow( - '\nTreating warnings as errors because process.env.CI = true.\n' + - 'Most CI servers set it automatically.\n' - ) + if ( + process.env.CI && + (typeof process.env.CI !== 'string' || + process.env.CI.toLowerCase() !== 'false') && + messages.warnings.length + ) { + // Ignore sourcemap warnings in CI builds. See #8227 for more info. + const filteredWarnings = messages.warnings.filter( + w => !/Failed to parse source map/.test(w) ); - return reject(new Error(filteredWarnings.join('\n\n'))); + if (filteredWarnings.length) { + console.log( + chalk.yellow( + '\nTreating warnings as errors because process.env.CI = true.\n' + + 'Most CI servers set it automatically.\n' + ) + ); + return reject(new Error(filteredWarnings.join('\n\n'))); + } } - } - const resolveArgs = { - stats, - previousFileSizes, - warnings: messages.warnings, - }; - - if (writeStatsJson) { - return bfj - .write(paths.appBuild + '/bundle-stats.json', stats.toJson()) - .then(() => resolve(resolveArgs)) - .catch(error => reject(new Error(error))); - } + const resolveArgs = { + stats, + previousFileSizes, + warnings: messages.warnings, + }; + + if (writeStatsJson) { + return bfj + .write(paths.appBuild + '/bundle-stats.json', stats.toJson()) + .then(() => resolve(resolveArgs)) + .catch(error => reject(new Error(error))); + } - return resolve(resolveArgs); - }); + return resolve(resolveArgs); + }); + } catch(err) { + console.log(chalk.red('Failed to compile.\n')); + console.log(err); + process.exit(1); + } }); } \ No newline at end of file From 0f43b8181b62b531df8e9796c0ca500ac62fb998 Mon Sep 17 00:00:00 2001 From: liujuping Date: Fri, 23 Feb 2024 15:42:46 +0800 Subject: [PATCH 2/9] fix: plugin-multiple-editor build error --- packages/plugin-multiple-editor/scripts/build.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/plugin-multiple-editor/scripts/build.js b/packages/plugin-multiple-editor/scripts/build.js index c178de8..ece8bef 100644 --- a/packages/plugin-multiple-editor/scripts/build.js +++ b/packages/plugin-multiple-editor/scripts/build.js @@ -126,6 +126,8 @@ function build(previousFileSizes) { compiler.run((err, stats) => { let messages; if (err) { + console.log(err); + if (!err.message) { return reject(err); } From 79453140e5512146c2372a6a56d8e10d9c2f167d Mon Sep 17 00:00:00 2001 From: liujuping Date: Fri, 23 Feb 2024 15:56:43 +0800 Subject: [PATCH 3/9] fix: plugin-multiple-editor build error --- packages/plugin-multiple-editor/scripts/build.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/plugin-multiple-editor/scripts/build.js b/packages/plugin-multiple-editor/scripts/build.js index ece8bef..620b556 100644 --- a/packages/plugin-multiple-editor/scripts/build.js +++ b/packages/plugin-multiple-editor/scripts/build.js @@ -112,6 +112,7 @@ checkBrowsers(paths.appPath, isInteractive) .catch(err => { if (err && err.message) { console.log(err.message); + console.log(err); } process.exit(1); }); From 2c92a88bb133b497ee335928b78bcc1c605c11e5 Mon Sep 17 00:00:00 2001 From: liujuping Date: Fri, 23 Feb 2024 16:03:45 +0800 Subject: [PATCH 4/9] fix: plugin-multiple-editor build error --- .../plugin-multiple-editor/scripts/build.js | 338 +++++++++--------- 1 file changed, 172 insertions(+), 166 deletions(-) diff --git a/packages/plugin-multiple-editor/scripts/build.js b/packages/plugin-multiple-editor/scripts/build.js index 620b556..5f9a833 100644 --- a/packages/plugin-multiple-editor/scripts/build.js +++ b/packages/plugin-multiple-editor/scripts/build.js @@ -21,184 +21,190 @@ const printHostingInstructions = require('react-dev-utils/printHostingInstructio const FileSizeReporter = require('react-dev-utils/FileSizeReporter'); const printBuildError = require('react-dev-utils/printBuildError'); -const measureFileSizesBeforeBuild = +try { + const measureFileSizesBeforeBuild = FileSizeReporter.measureFileSizesBeforeBuild; -const printFileSizesAfterBuild = FileSizeReporter.printFileSizesAfterBuild; -const useYarn = fs.existsSync(paths.yarnLockFile); + const printFileSizesAfterBuild = FileSizeReporter.printFileSizesAfterBuild; + const useYarn = fs.existsSync(paths.yarnLockFile); -// These sizes are pretty large. We'll warn for bundles exceeding them. -const WARN_AFTER_BUNDLE_GZIP_SIZE = 512 * 1024; -const WARN_AFTER_CHUNK_GZIP_SIZE = 1024 * 1024; + // These sizes are pretty large. We'll warn for bundles exceeding them. + const WARN_AFTER_BUNDLE_GZIP_SIZE = 512 * 1024; + const WARN_AFTER_CHUNK_GZIP_SIZE = 1024 * 1024; -const isInteractive = process.stdout.isTTY; + const isInteractive = process.stdout.isTTY; -// Warn and crash if required files are missing -if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) { - process.exit(1); -} - -const argv = process.argv.slice(2); -const writeStatsJson = argv.indexOf('--stats') !== -1; - -// Generate configuration -const config = configFactory('production'); - -const { checkBrowsers } = require('react-dev-utils/browsersHelper'); -checkBrowsers(paths.appPath, isInteractive) - .then(() => { - return measureFileSizesBeforeBuild(paths.appBuild); - }) - .then(previousFileSizes => { - fs.emptyDirSync(paths.appBuild); - return build(previousFileSizes); - }) - .then( - ({ stats, previousFileSizes, warnings }) => { - if (warnings.length) { - console.log(chalk.yellow('Compiled with warnings.\n')); - console.log(warnings.join('\n\n')); - console.log( - '\nSearch for the ' + - chalk.underline(chalk.yellow('keywords')) + - ' to learn more about each warning.' + // Warn and crash if required files are missing + if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) { + process.exit(1); + } + + const argv = process.argv.slice(2); + const writeStatsJson = argv.indexOf('--stats') !== -1; + + // Generate configuration + const config = configFactory('production'); + + const { checkBrowsers } = require('react-dev-utils/browsersHelper'); + checkBrowsers(paths.appPath, isInteractive) + .then(() => { + return measureFileSizesBeforeBuild(paths.appBuild); + }) + .then(previousFileSizes => { + fs.emptyDirSync(paths.appBuild); + return build(previousFileSizes); + }) + .then( + ({ stats, previousFileSizes, warnings }) => { + if (warnings.length) { + console.log(chalk.yellow('Compiled with warnings.\n')); + console.log(warnings.join('\n\n')); + console.log( + '\nSearch for the ' + + chalk.underline(chalk.yellow('keywords')) + + ' to learn more about each warning.' + ); + console.log( + 'To ignore, add ' + + chalk.cyan('// eslint-disable-next-line') + + ' to the line before.\n' + ); + } else { + console.log(chalk.green('Compiled successfully.\n')); + } + + console.log('File sizes after gzip:\n'); + printFileSizesAfterBuild( + stats, + previousFileSizes, + paths.appBuild, + WARN_AFTER_BUNDLE_GZIP_SIZE, + WARN_AFTER_CHUNK_GZIP_SIZE ); - console.log( - 'To ignore, add ' + - chalk.cyan('// eslint-disable-next-line') + - ' to the line before.\n' + console.log(); + + const appPackage = require(paths.appPackageJson); + const publicUrl = paths.publicUrlOrPath; + const publicPath = config.output.publicPath; + const buildFolder = path.relative(process.cwd(), paths.appBuild); + printHostingInstructions( + appPackage, + publicUrl, + publicPath, + buildFolder, + useYarn ); - } else { - console.log(chalk.green('Compiled successfully.\n')); + }, + err => { + const tscCompileOnError = process.env.TSC_COMPILE_ON_ERROR === 'true'; + if (tscCompileOnError) { + console.log( + chalk.yellow( + 'Compiled with the following type errors (you may want to check these before deploying your app):\n' + ) + ); + printBuildError(err); + } else { + console.log(chalk.red('Failed to compile.\n')); + printBuildError(err); + process.exit(1); + } } - - console.log('File sizes after gzip:\n'); - printFileSizesAfterBuild( - stats, - previousFileSizes, - paths.appBuild, - WARN_AFTER_BUNDLE_GZIP_SIZE, - WARN_AFTER_CHUNK_GZIP_SIZE - ); - console.log(); - - const appPackage = require(paths.appPackageJson); - const publicUrl = paths.publicUrlOrPath; - const publicPath = config.output.publicPath; - const buildFolder = path.relative(process.cwd(), paths.appBuild); - printHostingInstructions( - appPackage, - publicUrl, - publicPath, - buildFolder, - useYarn - ); - }, - err => { - const tscCompileOnError = process.env.TSC_COMPILE_ON_ERROR === 'true'; - if (tscCompileOnError) { - console.log( - chalk.yellow( - 'Compiled with the following type errors (you may want to check these before deploying your app):\n' - ) - ); - printBuildError(err); - } else { - console.log(chalk.red('Failed to compile.\n')); - printBuildError(err); - process.exit(1); + ) + .catch(err => { + if (err && err.message) { + console.log(err.message); + console.log(err); } - } - ) - .catch(err => { - if (err && err.message) { - console.log(err.message); - console.log(err); - } - process.exit(1); - }); - -// Create the production build and print the deployment instructions. -function build(previousFileSizes) { - console.log('Creating an optimized production build...'); - - const compiler = webpack(config); - return new Promise((resolve, reject) => { - try { - compiler.run((err, stats) => { - let messages; - if (err) { - console.log(err); - - if (!err.message) { - return reject(err); - } - - let errMessage = err.message; - - // Add additional information for postcss errors - if (Object.prototype.hasOwnProperty.call(err, 'postcssNode')) { - errMessage += - '\nCompileError: Begins at CSS selector ' + - err['postcssNode'].selector; + process.exit(1); + }); + + // Create the production build and print the deployment instructions. + function build(previousFileSizes) { + console.log('Creating an optimized production build...'); + + const compiler = webpack(config); + return new Promise((resolve, reject) => { + try { + compiler.run((err, stats) => { + let messages; + if (err) { + console.log(err); + + if (!err.message) { + return reject(err); + } + + let errMessage = err.message; + + // Add additional information for postcss errors + if (Object.prototype.hasOwnProperty.call(err, 'postcssNode')) { + errMessage += + '\nCompileError: Begins at CSS selector ' + + err['postcssNode'].selector; + } + + messages = formatWebpackMessages({ + errors: [errMessage], + warnings: [], + }); + } else { + messages = formatWebpackMessages( + stats.toJson({ all: false, warnings: true, errors: true }) + ); } - - messages = formatWebpackMessages({ - errors: [errMessage], - warnings: [], - }); - } else { - messages = formatWebpackMessages( - stats.toJson({ all: false, warnings: true, errors: true }) - ); - } - if (messages.errors.length) { - // Only keep the first error. Others are often indicative - // of the same problem, but confuse the reader with noise. - if (messages.errors.length > 1) { - messages.errors.length = 1; + if (messages.errors.length) { + // Only keep the first error. Others are often indicative + // of the same problem, but confuse the reader with noise. + if (messages.errors.length > 1) { + messages.errors.length = 1; + } + return reject(new Error(messages.errors.join('\n\n'))); } - return reject(new Error(messages.errors.join('\n\n'))); - } - if ( - process.env.CI && - (typeof process.env.CI !== 'string' || - process.env.CI.toLowerCase() !== 'false') && - messages.warnings.length - ) { - // Ignore sourcemap warnings in CI builds. See #8227 for more info. - const filteredWarnings = messages.warnings.filter( - w => !/Failed to parse source map/.test(w) - ); - if (filteredWarnings.length) { - console.log( - chalk.yellow( - '\nTreating warnings as errors because process.env.CI = true.\n' + - 'Most CI servers set it automatically.\n' - ) + if ( + process.env.CI && + (typeof process.env.CI !== 'string' || + process.env.CI.toLowerCase() !== 'false') && + messages.warnings.length + ) { + // Ignore sourcemap warnings in CI builds. See #8227 for more info. + const filteredWarnings = messages.warnings.filter( + w => !/Failed to parse source map/.test(w) ); - return reject(new Error(filteredWarnings.join('\n\n'))); + if (filteredWarnings.length) { + console.log( + chalk.yellow( + '\nTreating warnings as errors because process.env.CI = true.\n' + + 'Most CI servers set it automatically.\n' + ) + ); + return reject(new Error(filteredWarnings.join('\n\n'))); + } } - } - const resolveArgs = { - stats, - previousFileSizes, - warnings: messages.warnings, - }; - - if (writeStatsJson) { - return bfj - .write(paths.appBuild + '/bundle-stats.json', stats.toJson()) - .then(() => resolve(resolveArgs)) - .catch(error => reject(new Error(error))); - } + const resolveArgs = { + stats, + previousFileSizes, + warnings: messages.warnings, + }; + + if (writeStatsJson) { + return bfj + .write(paths.appBuild + '/bundle-stats.json', stats.toJson()) + .then(() => resolve(resolveArgs)) + .catch(error => reject(new Error(error))); + } - return resolve(resolveArgs); - }); - } catch(err) { - console.log(chalk.red('Failed to compile.\n')); - console.log(err); - process.exit(1); - } - }); + return resolve(resolveArgs); + }); + } catch(err) { + console.log(chalk.red('Failed to compile.\n')); + console.log(err); + process.exit(1); + } + }); + } +} catch(err) { + console.log(chalk.red('Failed to compile.\n')); + console.log(err); + process.exit(1); } \ No newline at end of file From 4dfe842188b0df0b1c32820f3bd22762e64e7173 Mon Sep 17 00:00:00 2001 From: liujuping Date: Fri, 23 Feb 2024 16:19:32 +0800 Subject: [PATCH 5/9] fix: plugin-multiple-editor build error --- .../plugin-multiple-editor/scripts/build.js | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/plugin-multiple-editor/scripts/build.js b/packages/plugin-multiple-editor/scripts/build.js index 5f9a833..4ce7b5c 100644 --- a/packages/plugin-multiple-editor/scripts/build.js +++ b/packages/plugin-multiple-editor/scripts/build.js @@ -5,23 +5,23 @@ process.on('unhandledRejection', err => { throw err; }); -// Ensure environment variables are read. -require('../config/env'); - -const path = require('path'); -const chalk = require('react-dev-utils/chalk'); -const fs = require('fs-extra'); -const bfj = require('bfj'); -const webpack = require('webpack'); -const configFactory = require('../config/webpack.config'); -const paths = require('../config/paths'); -const checkRequiredFiles = require('react-dev-utils/checkRequiredFiles'); -const formatWebpackMessages = require('react-dev-utils/formatWebpackMessages'); -const printHostingInstructions = require('react-dev-utils/printHostingInstructions'); -const FileSizeReporter = require('react-dev-utils/FileSizeReporter'); -const printBuildError = require('react-dev-utils/printBuildError'); - try { + // Ensure environment variables are read. + require('../config/env'); + + const path = require('path'); + const chalk = require('react-dev-utils/chalk'); + const fs = require('fs-extra'); + const bfj = require('bfj'); + const webpack = require('webpack'); + const configFactory = require('../config/webpack.config'); + const paths = require('../config/paths'); + const checkRequiredFiles = require('react-dev-utils/checkRequiredFiles'); + const formatWebpackMessages = require('react-dev-utils/formatWebpackMessages'); + const printHostingInstructions = require('react-dev-utils/printHostingInstructions'); + const FileSizeReporter = require('react-dev-utils/FileSizeReporter'); + const printBuildError = require('react-dev-utils/printBuildError'); + const measureFileSizesBeforeBuild = FileSizeReporter.measureFileSizesBeforeBuild; const printFileSizesAfterBuild = FileSizeReporter.printFileSizesAfterBuild; From 9f40c8a035ffbfee628383d942a34d242b815cb9 Mon Sep 17 00:00:00 2001 From: liujuping Date: Fri, 23 Feb 2024 16:22:04 +0800 Subject: [PATCH 6/9] fix: plugin-multiple-editor build error --- packages/plugin-multiple-editor/scripts/build.js | 1 + packages/plugin-multiple-editor/scripts/start.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/packages/plugin-multiple-editor/scripts/build.js b/packages/plugin-multiple-editor/scripts/build.js index 4ce7b5c..a660c03 100644 --- a/packages/plugin-multiple-editor/scripts/build.js +++ b/packages/plugin-multiple-editor/scripts/build.js @@ -2,6 +2,7 @@ process.env.BABEL_ENV = 'production'; process.env.NODE_ENV = 'production'; process.on('unhandledRejection', err => { + console.log(err); throw err; }); diff --git a/packages/plugin-multiple-editor/scripts/start.js b/packages/plugin-multiple-editor/scripts/start.js index 4104798..877e182 100644 --- a/packages/plugin-multiple-editor/scripts/start.js +++ b/packages/plugin-multiple-editor/scripts/start.js @@ -8,6 +8,7 @@ process.env.NODE_ENV = 'development'; // ignoring them. In the future, promise rejections that are not handled will // terminate the Node.js process with a non-zero exit code. process.on('unhandledRejection', err => { + console.log(err); throw err; }); @@ -150,5 +151,6 @@ checkBrowsers(paths.appPath, isInteractive) if (err && err.message) { console.log(err.message); } + console.log(err); process.exit(1); }); From 244028d97adc2e743ad4ff276d910a4cf7917ef8 Mon Sep 17 00:00:00 2001 From: liujuping Date: Fri, 23 Feb 2024 16:44:01 +0800 Subject: [PATCH 7/9] fix: plugin-multiple-editor build error --- packages/plugin-multiple-editor/scripts/build.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/plugin-multiple-editor/scripts/build.js b/packages/plugin-multiple-editor/scripts/build.js index a660c03..bd35082 100644 --- a/packages/plugin-multiple-editor/scripts/build.js +++ b/packages/plugin-multiple-editor/scripts/build.js @@ -7,6 +7,7 @@ process.on('unhandledRejection', err => { }); try { + console.log('Building the plugin-multiple-editor...'); // Ensure environment variables are read. require('../config/env'); @@ -48,14 +49,17 @@ try { const { checkBrowsers } = require('react-dev-utils/browsersHelper'); checkBrowsers(paths.appPath, isInteractive) .then(() => { + console.log('Creating an optimized production build...'); return measureFileSizesBeforeBuild(paths.appBuild); }) .then(previousFileSizes => { + console.log('Removing the build folder...'); fs.emptyDirSync(paths.appBuild); return build(previousFileSizes); }) .then( ({ stats, previousFileSizes, warnings }) => { + console.log('File sizes after gzip:\n'); if (warnings.length) { console.log(chalk.yellow('Compiled with warnings.\n')); console.log(warnings.join('\n\n')); @@ -97,6 +101,7 @@ try { }, err => { const tscCompileOnError = process.env.TSC_COMPILE_ON_ERROR === 'true'; + console.log(chalk.red('Failed to compile.\n')); if (tscCompileOnError) { console.log( chalk.yellow( @@ -124,9 +129,11 @@ try { console.log('Creating an optimized production build...'); const compiler = webpack(config); + console.log('compiler') return new Promise((resolve, reject) => { try { compiler.run((err, stats) => { + console.log('compiler.run') let messages; if (err) { console.log(err); @@ -178,6 +185,7 @@ try { 'Most CI servers set it automatically.\n' ) ); + console.log(filteredWarnings, messages.warnings); return reject(new Error(filteredWarnings.join('\n\n'))); } } From 1f287c23679e40883c85d72b2261ead5d8771b0a Mon Sep 17 00:00:00 2001 From: liujuping Date: Fri, 23 Feb 2024 16:48:46 +0800 Subject: [PATCH 8/9] fix: plugin-multiple-editor build error --- packages/plugin-multiple-editor/scripts/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-multiple-editor/scripts/build.js b/packages/plugin-multiple-editor/scripts/build.js index bd35082..9898c25 100644 --- a/packages/plugin-multiple-editor/scripts/build.js +++ b/packages/plugin-multiple-editor/scripts/build.js @@ -185,7 +185,7 @@ try { 'Most CI servers set it automatically.\n' ) ); - console.log(filteredWarnings, messages.warnings); + console.log(filteredWarnings, messages, messages.warnings); return reject(new Error(filteredWarnings.join('\n\n'))); } } From 0e7cd37777a8398d5c431e9a7081313936c24484 Mon Sep 17 00:00:00 2001 From: liujuping Date: Fri, 23 Feb 2024 17:01:25 +0800 Subject: [PATCH 9/9] fix: plugin-multiple-editor build error --- packages/plugin-multiple-editor/scripts/build.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/plugin-multiple-editor/scripts/build.js b/packages/plugin-multiple-editor/scripts/build.js index 9898c25..48d677c 100644 --- a/packages/plugin-multiple-editor/scripts/build.js +++ b/packages/plugin-multiple-editor/scripts/build.js @@ -1,5 +1,6 @@ process.env.BABEL_ENV = 'production'; process.env.NODE_ENV = 'production'; +// process.env.CI = 'false'; process.on('unhandledRejection', err => { console.log(err); @@ -168,6 +169,10 @@ try { } return reject(new Error(messages.errors.join('\n\n'))); } + console.log('process.env.CI', process.env.CI, process.env.CI && + (typeof process.env.CI !== 'string' || + process.env.CI.toLowerCase() !== 'false') && + messages.warnings.length) if ( process.env.CI && (typeof process.env.CI !== 'string' ||