Skip to content

Commit

Permalink
Add sed command to remove preinstall in AppHostingDirectory (#2386)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrshindeMSFT authored Jul 2, 2024
1 parent e42d215 commit 931a483
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/yaml-templates/build-app-host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,17 @@ steps:
# Below script task checks if Cypress cache is hit or not.
# If Cypress cache is found skip cypress install.
- script: |
CYPRESS_INSTALL_BINARY=0 pnpm install --frozen-lockfile
CYPRESS_INSTALL_BINARY=0
sed -i '/"preinstall":/d' package.json
pnpm install --frozen-lockfile
displayName: Install app hosting dependencies (skip Cypress install)
workingDirectory: '$(AppHostingSdkProjectDirectory)'
condition: eq(variables.CYPRESS_CACHE_RESTORED, 'true')
# If Cypress cache is not found include cypress install.
- script: |
rm -rf $(pnpm store path)
sed -i '/"preinstall":/d' package.json
pnpm install --frozen-lockfile
displayName: Install app hosting dependencies (include Cypress install)
workingDirectory: '$(AppHostingSdkProjectDirectory)'
Expand Down

0 comments on commit 931a483

Please sign in to comment.