@@ -31,14 +31,14 @@ steps:
3131 # When using a private/custom registry, configure npm to read auth/config from a temp user config
3232 # instead of relying on a checked-in project .npmrc.
3333 - pwsh : >
34- $(Build.SourcesDirectory)/build/scripts/ensure-npm-userconfig.ps1
34+ & " $(Build.SourcesDirectory)/build/scripts/ensure-npm-userconfig.ps1"
3535 -Path "${{ parameters.npmrcPath }}"
3636 -Registry "${{ parameters.customNPMRegistry }}"
3737 displayName: 📦 Setup NPM User Config
3838
3939 # Configure npm/yarn to use the custom registry and ensure auth headers are sent.
4040 - pwsh : >
41- $(Build.SourcesDirectory)/build/scripts/setup-npm-and-yarn.ps1
41+ & " $(Build.SourcesDirectory)/build/scripts/setup-npm-and-yarn.ps1"
4242 -NpmrcPath "${{ parameters.npmrcPath }}"
4343 -Registry "${{ parameters.customNPMRegistry }}"
4444 displayName: 📦 Setup NPM & Yarn
@@ -51,14 +51,14 @@ steps:
5151
5252 # Ensure the registry always sends auth headers (npmAuthenticate may overwrite the file).
5353 - pwsh : >
54- $(Build.SourcesDirectory)/build/scripts/finalize-npm-config.ps1
54+ & " $(Build.SourcesDirectory)/build/scripts/finalize-npm-config.ps1"
5555 -Path "${{ parameters.npmrcPath }}"
5656 displayName: 📦 Finalize NPM config
5757
5858 # Some lockfiles contain hardcoded references to public registries. Rewrite them so installs
5959 # and `npx` resolve from the custom registry consistently.
6060 - pwsh : >
61- $(Build.SourcesDirectory)/build/scripts/setup-npm-registry.ps1
61+ & " $(Build.SourcesDirectory)/build/scripts/setup-npm-registry.ps1"
6262 -Registry "${{ parameters.customNPMRegistry }}"
6363 displayName: 📦 Setup NPM Registry
6464
0 commit comments