backend-manager 2.5.15 → 2.5.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-manager",
3
- "version": "2.5.15",
3
+ "version": "2.5.16",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -117,9 +117,12 @@ Manager.prototype.init = function (exporter, options) {
117
117
 
118
118
  // Reject if package.json does not exist
119
119
  if (semverUsing !== semverRequired) {
120
- self.assistant.error(new Error(`Node.js version mismatch: using ${semverUsing} but asked for ${semverRequired}`), {environment: 'production'});
120
+ const msg = `Node.js version mismatch: using ${semverUsing} but asked for ${semverRequired}`;
121
121
  if (options.checkNodeVersion) {
122
+ self.assistant.error(new Error(msg), {environment: 'production'});
122
123
  return process.exit(1);
124
+ } else {
125
+ self.assistant.log(msg, {environment: 'production'});
123
126
  }
124
127
  }
125
128
  }