No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ext-dev-emulators-start.js 1.3KB

123456789101112131415161718192021222324
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.command = void 0;
  4. const clc = require("colorette");
  5. const command_1 = require("../command");
  6. const commandUtils = require("../emulator/commandUtils");
  7. const error_1 = require("../error");
  8. exports.command = new command_1.Command("ext:dev:emulators:start")
  9. .description("deprecated: please use `firebase emulators:start`")
  10. .before(commandUtils.setExportOnExitOptions)
  11. .option(commandUtils.FLAG_INSPECT_FUNCTIONS, commandUtils.DESC_INSPECT_FUNCTIONS)
  12. .option(commandUtils.FLAG_TEST_CONFIG, commandUtils.DESC_TEST_CONFIG)
  13. .option(commandUtils.FLAG_TEST_PARAMS, commandUtils.DESC_TEST_PARAMS)
  14. .option(commandUtils.FLAG_IMPORT, commandUtils.DESC_IMPORT)
  15. .option(commandUtils.FLAG_EXPORT_ON_EXIT, commandUtils.DESC_EXPORT_ON_EXIT)
  16. .action(() => {
  17. const localInstallCommand = `firebase ext:install ${process.cwd()}`;
  18. const emulatorsStartCommand = "firebase emulators:start";
  19. throw new error_1.FirebaseError("ext:dev:emulators:start is no longer supported. " +
  20. "Instead, navigate to a Firebase project directory and add this extension to the extensions manifest by running:\n" +
  21. clc.bold(localInstallCommand) +
  22. "\nThen, you can emulate this extension as part of that project by running:\n" +
  23. clc.bold(emulatorsStartCommand));
  24. });