mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(angular): properly sync core changes (#26025)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
7
angular/scripts/sync.sh
Executable 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
|
||||
Reference in New Issue
Block a user