Skip to content

Commit 139b75f

Browse files
chore(init): trying to fix pr quality issues
1 parent 0d6fe14 commit 139b75f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/utils/modify-config-helper.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,11 @@ export default function modifyHelperUtil(
6767
autoSetDefaults
6868
})
6969
.then((): void => {
70-
let configModule: object, packageJson: { name: string };
70+
let configModule: object;
7171
try {
7272
const confPath = path.resolve(process.cwd(), ".yo-rc.json");
7373
configModule = require(confPath);
74-
const packageJsonPath = path.resolve(process.cwd(), "package.json");
75-
packageJson = require(packageJsonPath);
76-
const packageName: string = packageJson.name;
74+
const packageName: string = require(path.resolve(process.cwd(), "package.json")).name;
7775

7876
// Change structure of the config to be transformed
7977
const tmpConfig: object = {};

0 commit comments

Comments
 (0)