forked from dienianindya/gsi_ess_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.
24 lines
1.3 KiB
24 lines
1.3 KiB
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.command = void 0;
|
|
const clc = require("colorette");
|
|
const command_1 = require("../command");
|
|
const commandUtils = require("../emulator/commandUtils");
|
|
const error_1 = require("../error");
|
|
exports.command = new command_1.Command("ext:dev:emulators:start")
|
|
.description("deprecated: please use `firebase emulators:start`")
|
|
.before(commandUtils.setExportOnExitOptions)
|
|
.option(commandUtils.FLAG_INSPECT_FUNCTIONS, commandUtils.DESC_INSPECT_FUNCTIONS)
|
|
.option(commandUtils.FLAG_TEST_CONFIG, commandUtils.DESC_TEST_CONFIG)
|
|
.option(commandUtils.FLAG_TEST_PARAMS, commandUtils.DESC_TEST_PARAMS)
|
|
.option(commandUtils.FLAG_IMPORT, commandUtils.DESC_IMPORT)
|
|
.option(commandUtils.FLAG_EXPORT_ON_EXIT, commandUtils.DESC_EXPORT_ON_EXIT)
|
|
.action(() => {
|
|
const localInstallCommand = `firebase ext:install ${process.cwd()}`;
|
|
const emulatorsStartCommand = "firebase emulators:start";
|
|
throw new error_1.FirebaseError("ext:dev:emulators:start is no longer supported. " +
|
|
"Instead, navigate to a Firebase project directory and add this extension to the extensions manifest by running:\n" +
|
|
clc.bold(localInstallCommand) +
|
|
"\nThen, you can emulate this extension as part of that project by running:\n" +
|
|
clc.bold(emulatorsStartCommand));
|
|
});
|