Skip to content

Commit c5c754d

Browse files
committed
Determine whether to use Yarn based on top directory yarn.lock only
1 parent 958074e commit c5c754d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wizards/upgrade.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ module.exports = async ({
130130

131131
const packDir = resolve(packagesDir, pack);
132132

133-
const installCmd = (await fileExists(resolve(packDir, "yarn.lock")))
133+
const installCmd = (await fileExists(resolve(projectDir, "yarn.lock")))
134134
? `yarn add ${targetDependency}@${targetVersion}`
135135
: `npm install --save ${targetDependency}@${targetVersion}`;
136136

0 commit comments

Comments
 (0)