Skip to content

Commit 5712574

Browse files
committed
'Please use yarn to install dependencies.' when using yarn. Fixes microsoft#93119
1 parent 88b1952 commit 5712574

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build/npm/preinstall.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if (majorYarnVersion < 1 || minorYarnVersion < 10) {
2323
err = true;
2424
}
2525

26-
if (!/yarn\.js$|yarnpkg$/.test(process.env['npm_execpath'])) {
26+
if (!/yarn[\w-.]*\.js$|yarnpkg$/.test(process.env['npm_execpath'])) {
2727
console.error('\033[1;31m*** Please use yarn to install dependencies.\033[0;0m');
2828
err = true;
2929
}

0 commit comments

Comments
 (0)