chore(angular): properly sync core changes (#26025)

This commit is contained in:
Liam DeBeasi
2022-09-27 14:11:59 -05:00
committed by GitHub
parent 84edb9c26d
commit 219a2058a4
3 changed files with 10 additions and 6 deletions

View File

@@ -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

View File

@@ -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"

7
angular/scripts/sync.sh Executable file
View File

@@ -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