Nenhuma descrição
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

ext-dev-emulators-exec.js 1.6KB

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