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 ",