GSI - Employe Self Service Mobile
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.

27 lines
1.6 KiB

2 months ago
  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. });