Skip to content

Commit 01f9adc

Browse files
mikemaccanaarcanis
authored andcommitted
Add Windows command executable that use powershell. (#6093)
Fixes #6902. Leave in yarn.cmd in case anyone is still using cmd on Windows in 2018.
1 parent a49644b commit 01f9adc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/yarn.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function Get-ScriptDirectory {
2+
$Invocation = (Get-Variable MyInvocation -Scope 1).Value
3+
Split-Path $Invocation.MyCommand.Path
4+
}
5+
6+
node "$(Get-ScriptDirectory)/yarn.js" $args

0 commit comments

Comments
 (0)