Skip to content

Commit d176c8f

Browse files
committed
🔨 Refactor: changed config to import getConfig directly
1 parent e4284b3 commit d176c8f

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

lib/cli.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
import chalk from 'chalk';
33
import execa from 'execa';
44
import inquirer from 'inquirer';
5-
import { config, choices, questions } from './promptConfig';
5+
import getConfig from './getConfig';
6+
import { choices, questions } from './promptConfig';
67

7-
const configuration = config();
8+
const configuration = getConfig();
89
const choicesList = choices(configuration);
910
const questionsList = questions(choicesList);
1011

lib/promptConfig.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
import chalk from 'chalk';
2-
import getConfig from './getConfig';
3-
4-
const config = () => getConfig();
52

63
const choices = (configuration) => {
74
const choicesList = [];
@@ -52,4 +49,4 @@ const questions = (choicesList) => {
5249
return questionsList;
5350
};
5451

55-
export { config, choices, questions };
52+
export { choices, questions };

0 commit comments

Comments
 (0)