diff --git a/.github/workflows/actions/build-angular/action.yml b/.github/workflows/actions/build-angular/action.yml index d0ad69b38b..fb6e786c0e 100644 --- a/.github/workflows/actions/build-angular/action.yml +++ b/.github/workflows/actions/build-angular/action.yml @@ -30,12 +30,8 @@ runs: run: npm install --legacy-peer-deps shell: bash working-directory: ./angular - - name: Link @ionic/core - run: npm link - shell: bash - working-directory: ./core - - name: Link @ionic/core in @ionic/angular - run: npm link @ionic/core + - name: Sync + run: npm run sync shell: bash working-directory: ./angular - name: Lint diff --git a/angular/package.json b/angular/package.json index 5988dad017..4974f7ad20 100644 --- a/angular/package.json +++ b/angular/package.json @@ -39,6 +39,7 @@ "prettier": "prettier \"**/*.ts\"", "eslint": "eslint . --ext .ts", "prerelease": "npm run validate && np prerelease --yolo --any-branch --tag next", + "sync": "sh ./scripts/sync.sh", "test": "echo 'angular no tests yet'", "tsc": "tsc -p .", "validate": "npm i && npm run lint && npm run test && npm run build" diff --git a/angular/scripts/sync.sh b/angular/scripts/sync.sh new file mode 100755 index 0000000000..313e266eba --- /dev/null +++ b/angular/scripts/sync.sh @@ -0,0 +1,7 @@ +rm -rf node_modules/@ionic/core +mkdir node_modules/@ionic/core +cp -a ../core/css node_modules/@ionic/core/css +cp -a ../core/dist node_modules/@ionic/core/dist +cp -a ../core/hydrate node_modules/@ionic/core/hydrate +cp -a ../core/loader node_modules/@ionic/core/loader +cp -a ../core/package.json node_modules/@ionic/core/package.json