Skip to content

Commit

Permalink
postinstall update
Browse files Browse the repository at this point in the history
  • Loading branch information
perunt committed Jan 2, 2024
1 parent c9efdc2 commit a05adff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/postInstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
ROOT_DIR=$(dirname "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)")
cd "$ROOT_DIR" || exit 1

# Run patch-package
npx patch-package

# Install node_modules in subpackages, unless we're in a CI/CD environment,
# where the node_modules for subpackages are cached separately.
# See `.github/actions/composite/setupNode/action.yml` for more context.
if [[ -z ${CI+x} ]]; then
cd desktop || exit 1
rm -rf node_modules
npm cache clean --force
npm install
fi

# Run patch-package
npx patch-package

0 comments on commit a05adff

Please sign in to comment.