File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 8888 Description =" !(loc.npm_Description)" >
8989 <ComponentRef Id =" NpmCmdScript" />
9090 <ComponentRef Id =" NpmBashScript" />
91+ <ComponentRef Id =" NpmPowerShellScript" />
9192 <ComponentRef Id =" NpxCmdScript" />
9293 <ComponentRef Id =" NpxBashScript" />
94+ <ComponentRef Id =" NpxPowerShellScript" />
9395 <ComponentRef Id =" NpmConfigurationFile" />
9496 <ComponentRef Id =" SetInstallDirPermission" />
9597 <ComponentGroupRef Id =" NpmSourceFiles" />
224226 <File Id =" npm.sh" KeyPath =" yes" Source =" $(var.NpmSourceDir)\bin\npm" />
225227 </Component >
226228
229+ <Component Id =" NpmPowerShellScript" >
230+ <File Id =" npm.ps1" KeyPath =" yes" Source =" $(var.NpmSourceDir)\bin\npm.ps1" />
231+ </Component >
232+
227233 <Component Id =" NpxCmdScript" >
228234 <File Id =" npx.cmd" KeyPath =" yes" Source =" $(var.NpmSourceDir)\bin\npx.cmd" />
229235 </Component >
232238 <File Id =" npx.sh" KeyPath =" yes" Source =" $(var.NpmSourceDir)\bin\npx" />
233239 </Component >
234240
241+ <Component Id =" NpxPowerShellScript" >
242+ <File Id =" npx.ps1" KeyPath =" yes" Source =" $(var.NpmSourceDir)\bin\npx.ps1" />
243+ </Component >
244+
235245 <Directory Id =" NodeModulesFolder" Name =" node_modules" >
236246 <Directory Id =" NpmFolder" Name =" npm" >
237247 <Component Id =" NpmConfigurationFile" >
Original file line number Diff line number Diff line change @@ -435,6 +435,10 @@ if not defined nonpm (
435435 if errorlevel 1 echo Cannot copy npx && goto package_error
436436 copy /Y ..\deps\npm\bin\npx.cmd %TARGET_NAME% \ > nul
437437 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
438442)
439443
440444if not defined nocorepack (
You can’t perform that action at this time.
0 commit comments