Няма описание
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.

123456789101112131415161718192021222324252627282930
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.command = void 0;
  4. const { marked } = require("marked");
  5. const TerminalRenderer = require("marked-terminal");
  6. const checkMinRequiredVersion_1 = require("../checkMinRequiredVersion");
  7. const command_1 = require("../command");
  8. const extensionsHelper_1 = require("../extensions/extensionsHelper");
  9. const requirePermissions_1 = require("../requirePermissions");
  10. const utils_1 = require("../utils");
  11. const manifest = require("../extensions/manifest");
  12. marked.setOptions({
  13. renderer: new TerminalRenderer(),
  14. });
  15. exports.command = new command_1.Command("ext:uninstall <extensionInstanceId>")
  16. .description("uninstall an extension that is installed in your Firebase project by instance ID")
  17. .option("--local", "deprecated")
  18. .withForce()
  19. .before(requirePermissions_1.requirePermissions, ["firebaseextensions.instances.delete"])
  20. .before(extensionsHelper_1.ensureExtensionsApiEnabled)
  21. .before(checkMinRequiredVersion_1.checkMinRequiredVersion, "extMinVersion")
  22. .before(extensionsHelper_1.diagnoseAndFixProject)
  23. .action((instanceId, options) => {
  24. if (options.local) {
  25. (0, utils_1.logLabeledWarning)(extensionsHelper_1.logPrefix, "As of firebase-tools@11.0.0, the `--local` flag is no longer required, as it is the default behavior.");
  26. }
  27. const config = manifest.loadConfig(options);
  28. manifest.removeFromManifest(instanceId, config);
  29. manifest.showPostDeprecationNotice();
  30. });