Skip to content

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
kemmerle committed Aug 7, 2024
1 parent 2296e84 commit cea5412
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/cli/commands/init.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('path');
const fs = require('fs-extra');
const {
getConfigPath,
getRootOrDeprecatedConfigPath,
createEmptyConfigFile,
deleteEmptyConfigFile,
updateDefaultAccount,
Expand Down Expand Up @@ -112,7 +112,8 @@ exports.handler = async options => {
useRootConfig,
} = options;
const configPath =
(c && path.join(getCwd(), c)) || getConfigPath(useRootConfig);
(c && path.join(getCwd(), c)) ||
getRootOrDeprecatedConfigPath(useRootConfig);
setLogLevel(options);
logDebugInfo(options);
trackCommandUsage('init', {
Expand Down Expand Up @@ -144,7 +145,7 @@ exports.handler = async options => {
env,
optionalAccount
);
const configPath = getConfigPath();
const configPath = getRootOrDeprecatedConfigPath();

try {
checkAndAddConfigToGitignore(configPath);
Expand Down

0 comments on commit cea5412

Please sign in to comment.