adobe / adobe/aio-cli-plugin-app

config files (.aio, .env) not available to templates for the "no login" case

Open
#657 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
28
Forks
41
Avg merge
1d 2h
Merged PRs (30d)
3

Description

## Description

As you can see here, the config is only imported after the templates are installed here, for the "no login" case:
https://github.com/adobe/aio-cli-plugin-app/blob/f1088f1d637178ff2ed457ada2cb779aa2cc79a7/src/commands/app/init.js#L117-L126

For the "logged in" case, the templates are installed after the console config is imported:
https://github.com/adobe/aio-cli-plugin-app/blob/f1088f1d637178ff2ed457ada2cb779aa2cc79a7/src/commands/app/init.js#L157-L164

We should be consistent in both cases.

## The Fix

Import the console config (if available via flag for the no login case), before templates are installed.

Code affected: https://github.com/adobe/aio-cli-plugin-app/blob/f1088f1d637178ff2ed457ada2cb779aa2cc79a7/src/commands/app/init.js#L117-L126

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.