diff --git a/.github/workflows/actions/build-angular-server/action.yml b/.github/workflows/actions/build-angular-server/action.yml index 153d18c2bb4..2ebdb649bda 100644 --- a/.github/workflows/actions/build-angular-server/action.yml +++ b/.github/workflows/actions/build-angular-server/action.yml @@ -6,11 +6,19 @@ runs: - uses: actions/setup-node@v4 with: node-version: 18.x - + - uses: ./.github/workflows/actions/download-archive + with: + name: ionic-core + path: ./core + filename: CoreBuild.zip - name: Install Angular Server Dependencies run: npm ci shell: bash working-directory: ./packages/angular-server + - name: Sync + run: npm run sync + shell: bash + working-directory: ./packages/angular-server - name: Build run: npm run build.prod shell: bash diff --git a/core/package-lock.json b/core/package-lock.json index 79e10ed7bea..6167743f915 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -9,7 +9,7 @@ "version": "8.2.2", "license": "MIT", "dependencies": { - "@stencil/core": "^4.19.0", + "@stencil/core": "^4.19.1", "ionicons": "^7.2.2", "tslib": "^2.1.0" }, @@ -723,7 +723,6 @@ }, "node_modules/@clack/prompts/node_modules/is-unicode-supported": { "version": "1.3.0", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -1824,9 +1823,9 @@ } }, "node_modules/@stencil/core": { - "version": "4.19.0", - "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.19.0.tgz", - "integrity": "sha512-Lky99+K9guu5fFMi3ows9q6p0/gjuZmfmVHxcPMQa5QZKSwG+D19u7G1xcd3p6I+xIfwk71gFxrmcKU1gaOCdg==", + "version": "4.19.1", + "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.19.1.tgz", + "integrity": "sha512-fjSBctHrobeSL2+XcuX7GVk/eaUhZ/lvIu21RJmzHAPcNyueuSAEv7J/Isn4UlYNk70o+yOK72H0FTlNkUibvw==", "bin": { "stencil": "bin/stencil" }, @@ -10794,8 +10793,7 @@ "dependencies": { "is-unicode-supported": { "version": "1.3.0", - "bundled": true, - "dev": true + "bundled": true } } }, @@ -11583,9 +11581,9 @@ "requires": {} }, "@stencil/core": { - "version": "4.19.0", - "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.19.0.tgz", - "integrity": "sha512-Lky99+K9guu5fFMi3ows9q6p0/gjuZmfmVHxcPMQa5QZKSwG+D19u7G1xcd3p6I+xIfwk71gFxrmcKU1gaOCdg==" + "version": "4.19.1", + "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.19.1.tgz", + "integrity": "sha512-fjSBctHrobeSL2+XcuX7GVk/eaUhZ/lvIu21RJmzHAPcNyueuSAEv7J/Isn4UlYNk70o+yOK72H0FTlNkUibvw==" }, "@stencil/react-output-target": { "version": "0.5.3", diff --git a/core/package.json b/core/package.json index 1fe6913d32d..64bb694ca06 100644 --- a/core/package.json +++ b/core/package.json @@ -31,7 +31,7 @@ "loader/" ], "dependencies": { - "@stencil/core": "^4.19.0", + "@stencil/core": "^4.19.1", "ionicons": "^7.2.2", "tslib": "^2.1.0" }, diff --git a/packages/angular-server/package-lock.json b/packages/angular-server/package-lock.json index 0caaef2a74a..08ab51a83e8 100644 --- a/packages/angular-server/package-lock.json +++ b/packages/angular-server/package-lock.json @@ -23,6 +23,7 @@ "@angular/platform-server": "^16.0.0", "@ionic/eslint-config": "^0.3.0", "@ionic/prettier-config": "^2.0.0", + "@types/node": "^20.14.9", "@typescript-eslint/eslint-plugin": "^5.2.0", "eslint": "^7.32.0", "eslint-plugin-import": "^2.25.2", @@ -1655,6 +1656,15 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/node": { + "version": "20.14.9", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.9.tgz", + "integrity": "sha512-06OCtnTXtWOZBJlRApleWndH4JsRVs1pDCc8dLSQp+7PpUpX3ePdHyeNSFTeSe7FtKyQkrlPvHwJOW3SLd8Oyg==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } + }, "node_modules/@types/resolve": { "version": "1.20.2", "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.20.2.tgz", @@ -6006,6 +6016,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "node_modules/unique-filename": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-3.0.0.tgz", @@ -7282,6 +7298,15 @@ "version": "0.0.29", "dev": true }, + "@types/node": { + "version": "20.14.9", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.9.tgz", + "integrity": "sha512-06OCtnTXtWOZBJlRApleWndH4JsRVs1pDCc8dLSQp+7PpUpX3ePdHyeNSFTeSe7FtKyQkrlPvHwJOW3SLd8Oyg==", + "dev": true, + "requires": { + "undici-types": "~5.26.4" + } + }, "@types/resolve": { "version": "1.20.2", "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.20.2.tgz", @@ -10082,6 +10107,12 @@ "which-boxed-primitive": "^1.0.2" } }, + "undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "unique-filename": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-3.0.0.tgz", diff --git a/packages/angular-server/package.json b/packages/angular-server/package.json index c835d81a5a7..5ee0976cfd9 100644 --- a/packages/angular-server/package.json +++ b/packages/angular-server/package.json @@ -32,7 +32,8 @@ "lint": "eslint . --ext .ts && npm run prettier", "lint.fix": "eslint . --ext .ts --fix && npm run prettier.fix", "prettier": "prettier \"**/*.ts\" --check", - "prettier.fix": "prettier \"**/*.ts\" --write" + "prettier.fix": "prettier \"**/*.ts\" --write", + "sync": "sh ./scripts/sync.sh" }, "peerDependencies": { "@angular/core": ">=16.0.0", @@ -52,6 +53,7 @@ "@angular/platform-server": "^16.0.0", "@ionic/eslint-config": "^0.3.0", "@ionic/prettier-config": "^2.0.0", + "@types/node": "^20.14.9", "@typescript-eslint/eslint-plugin": "^5.2.0", "eslint": "^7.32.0", "eslint-plugin-import": "^2.25.2", diff --git a/packages/angular-server/scripts/sync.sh b/packages/angular-server/scripts/sync.sh new file mode 100644 index 00000000000..2c2e4a58173 --- /dev/null +++ b/packages/angular-server/scripts/sync.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +set -e + +# Delete old packages +rm -f *.tgz + +# Pack @ionic/core +npm pack ../../core + +# Install Dependencies +npm install *.tgz --no-save