From 90f5af7c8290be9ac268a543c7210f1c2b6718a7 Mon Sep 17 00:00:00 2001 From: "Ryan P. Brewster" Date: Thu, 15 Nov 2018 12:13:34 -0800 Subject: [PATCH] Do not serve emulators unless explicitly requested --- src/commands/serve.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/commands/serve.js b/src/commands/serve.js index 02388010105..7ec71c3f7b6 100644 --- a/src/commands/serve.js +++ b/src/commands/serve.js @@ -14,7 +14,7 @@ var filterTargets = require("../filterTargets"); var getProjectNumber = require("../getProjectNumber"); var VALID_EMULATORS = ["database", "firestore"]; -var VALID_TARGETS = ["functions", "hosting", "database", "firestore"]; +var VALID_TARGETS = ["functions", "hosting"]; var filterOnlyEmulators = (only) => { if (!only) { @@ -34,7 +34,9 @@ module.exports = new Command("serve") .option("-o, --host ", "the host on which to listen (default: localhost)", "localhost") .option( "--only ", - "only serve specified targets (valid targets are: " + VALID_TARGETS.join(", ") + ")" + "only serve specified targets (valid targets are: " + + _.union(VALID_TARGETS, VALID_EMULATORS).join(", ") + + ")" ) .option( "--except ",