UNPKG

@aws-amplify/cli-internal

Version:
15 lines 671 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getEnvInfo = void 0; const amplify_cli_core_1 = require("@aws-amplify/amplify-cli-core"); const getEnvInfo = () => { if (amplify_cli_core_1.stateManager.localEnvInfoExists()) { return amplify_cli_core_1.stateManager.getLocalEnvInfo(); } throw new amplify_cli_core_1.AmplifyError('EnvironmentNotInitializedError', { message: 'Current environment cannot be determined.', resolution: `Use 'amplify init' in the root of your app directory to create a new environment.`, }); }; exports.getEnvInfo = getEnvInfo; //# sourceMappingURL=get-env-info.js.map