serverless-build-plugin
Advanced tools
Comparing version 2.4.0-alpha.0 to 3.0.0-alpha
{ | ||
"name": "serverless-build-plugin", | ||
"version": "2.4.0-alpha.0", | ||
"version": "3.0.0-alpha", | ||
"description": "A Node.js focused build optimizer plugin for serverless", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -142,3 +142,4 @@ "use strict"; | ||
} | ||
return resolve(stats.toString({ | ||
var errors = stats.compilation.errors; | ||
var statsText = stats.toString({ | ||
colors: true, | ||
@@ -149,3 +150,9 @@ hash: false, | ||
children: false, | ||
})); | ||
}); | ||
if (errors.length) { | ||
// tslint:disable-next-line:no-console | ||
console.error("\n" + statsText + "\n"); | ||
return reject(errors[0]); | ||
} | ||
return resolve(statsText); | ||
}); | ||
@@ -152,0 +159,0 @@ }); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
148522
2266