Skip to content

Commit b06086d

Browse files
Merge pull request #663 from charlespierce/windows_shim_cmds
Add shim CMD file to support tools that rely on CMD
2 parents 236cf97 + 24892ae commit b06086d

4 files changed

Lines changed: 26 additions & 2 deletions

File tree

shell/windows/shim.cmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
"%~dpn0.exe" %*

shell/windows/volta.cmd

Lines changed: 0 additions & 1 deletion
This file was deleted.

shell/windows/volta.ps1

Lines changed: 0 additions & 1 deletion
This file was deleted.

wix/main.wxs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,14 @@
114114
Source='target\release\volta-shim.exe'
115115
KeyPath='yes'/>
116116
</Component>
117+
<Component Id='npmScript' Guid='*' Win64='$(var.Win64)'>
118+
<File
119+
Id='npmCMD'
120+
Name='npm.cmd'
121+
DiskId='1'
122+
Source='shell\windows\shim.cmd'
123+
KeyPath='yes'/>
124+
</Component>
117125
<Component Id='npxBinary' Guid='*' Win64='$(var.Win64)'>
118126
<File
119127
Id='npxEXE'
@@ -122,6 +130,14 @@
122130
Source='target\release\volta-shim.exe'
123131
KeyPath='yes'/>
124132
</Component>
133+
<Component Id='npxScript' Guid='*' Win64='$(var.Win64)'>
134+
<File
135+
Id='npxCMD'
136+
Name='npx.cmd'
137+
DiskId='1'
138+
Source='shell\windows\shim.cmd'
139+
KeyPath='yes'/>
140+
</Component>
125141
<Component Id='yarnBinary' Guid='*' Win64='$(var.Win64)'>
126142
<File
127143
Id='yarnEXE'
@@ -130,6 +146,14 @@
130146
Source='target\release\volta-shim.exe'
131147
KeyPath='yes'/>
132148
</Component>
149+
<Component Id='yarnScript' Guid='*' Win64='$(var.Win64)'>
150+
<File
151+
Id='yarnCMD'
152+
Name='yarn.cmd'
153+
DiskId='1'
154+
Source='shell\windows\shim.cmd'
155+
KeyPath='yes'/>
156+
</Component>
133157
</ComponentGroup>
134158

135159
<Feature Id='MainProgram'>

0 commit comments

Comments
 (0)