Commit c39f15c 1 parent b36fea0 commit c39f15c Copy full SHA for c39f15c
File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 88
88
Description =" !(loc.npm_Description)" >
89
89
<ComponentRef Id =" NpmCmdScript" />
90
90
<ComponentRef Id =" NpmBashScript" />
91
+ <ComponentRef Id =" NpmPowerShellScript" />
91
92
<ComponentRef Id =" NpxCmdScript" />
92
93
<ComponentRef Id =" NpxBashScript" />
94
+ <ComponentRef Id =" NpxPowerShellScript" />
93
95
<ComponentRef Id =" NpmConfigurationFile" />
94
96
<ComponentRef Id =" SetInstallDirPermission" />
95
97
<ComponentGroupRef Id =" NpmSourceFiles" />
224
226
<File Id =" npm.sh" KeyPath =" yes" Source =" $(var.NpmSourceDir)\bin\npm" />
225
227
</Component >
226
228
229
+ <Component Id =" NpmPowerShellScript" >
230
+ <File Id =" npm.ps1" KeyPath =" yes" Source =" $(var.NpmSourceDir)\bin\npm.ps1" />
231
+ </Component >
232
+
227
233
<Component Id =" NpxCmdScript" >
228
234
<File Id =" npx.cmd" KeyPath =" yes" Source =" $(var.NpmSourceDir)\bin\npx.cmd" />
229
235
</Component >
232
238
<File Id =" npx.sh" KeyPath =" yes" Source =" $(var.NpmSourceDir)\bin\npx" />
233
239
</Component >
234
240
241
+ <Component Id =" NpxPowerShellScript" >
242
+ <File Id =" npx.ps1" KeyPath =" yes" Source =" $(var.NpmSourceDir)\bin\npx.ps1" />
243
+ </Component >
244
+
235
245
<Directory Id =" NodeModulesFolder" Name =" node_modules" >
236
246
<Directory Id =" NpmFolder" Name =" npm" >
237
247
<Component Id =" NpmConfigurationFile" >
Original file line number Diff line number Diff line change @@ -435,6 +435,10 @@ if not defined nonpm (
435
435
if errorlevel 1 echo Cannot copy npx && goto package_error
436
436
copy /Y ..\deps\npm\bin\npx.cmd %TARGET_NAME% \ > nul
437
437
if errorlevel 1 echo Cannot copy npx.cmd && goto package_error
438
+ copy /Y ..\deps\npm\bin\npm.ps1 %TARGET_NAME% \ > nul
439
+ if errorlevel 1 echo Cannot copy npm.ps1 && goto package_error
440
+ copy /Y ..\deps\npm\bin\npx.ps1 %TARGET_NAME% \ > nul
441
+ if errorlevel 1 echo Cannot copy npx.ps1 && goto package_error
438
442
)
439
443
440
444
if not defined nocorepack (
You can’t perform that action at this time.
0 commit comments