From 1015c06cbef4ceb10d43e722157c04844d984509 Mon Sep 17 00:00:00 2001 From: Sean Perkins Date: Fri, 18 Aug 2023 10:42:20 -0400 Subject: [PATCH] chore(react): update sync script to use tgz (#28019) Issue number: N/A --------- ## What is the current behavior? The sync script for the React package is out of date. It will unintentionally delete the symlink directory of the build output from `core/`, which breaks the build for the package during local development. ## What is the new behavior? - Updates the sync script to package and install the `core` package - Matches the implementation pattern used for the sync script in our other packages ## Does this introduce a breaking change? - [ ] Yes - [x] No ## Other information --- packages/react/scripts/sync.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/react/scripts/sync.sh b/packages/react/scripts/sync.sh index 1675071ac0..2c2e4a5817 100644 --- a/packages/react/scripts/sync.sh +++ b/packages/react/scripts/sync.sh @@ -2,8 +2,11 @@ set -e -# Copy core dist -rm -rf node_modules/@ionic/core/dist node_modules/@ionic/core/components -cp -a ../../core/dist node_modules/@ionic/core/dist -cp -a ../../core/components node_modules/@ionic/core/components -cp -a ../../core/package.json node_modules/@ionic/core/package.json +# Delete old packages +rm -f *.tgz + +# Pack @ionic/core +npm pack ../../core + +# Install Dependencies +npm install *.tgz --no-save