diff --git a/packages/utils/modify-config-helper.ts b/packages/utils/modify-config-helper.ts index 2b5baaeb99c..1563b8ead8c 100644 --- a/packages/utils/modify-config-helper.ts +++ b/packages/utils/modify-config-helper.ts @@ -69,8 +69,8 @@ export default function modifyHelperUtil( .then((): void => { let configModule: object; try { - const confPath = path.resolve(process.cwd(), ".yo-rc.json"); - configModule = require(confPath); + configPath = path.resolve(process.cwd(), ".yo-rc.json"); + configModule = require(configPath); // Change structure of the config to be transformed const tmpConfig: object = {}; Object.keys(configModule).forEach((prop: string): void => {