chore: dependency resolution for @ionic/core

This commit is contained in:
Sean Perkins
2024-01-29 21:54:02 -05:00
parent a75e6dd8d9
commit a480089b1f
6 changed files with 18 additions and 8 deletions

View File

@@ -39,6 +39,12 @@ To add new tests, components, or pages, modify the `base` project. This ensures
If you want to add a version-specific change, add the change inside of the appropriate projects in `apps`. Be sure to replicate the directory structure. For example, if you are adding a new E2E test file called `test.e2e.ts` in `apps/react17`, make sure you place the file in `apps/react17/tests/e2e/test.e2e.ts`.
If you are updating dependencies in the `base` project, you can update the lock file without installing dependencies by running the following command:
```
pnpm install --lockfile-only
```
### Version-specific tests
If you need to add E2E tests that are only run on a specific version of the JS Framework, replicate the `VersionTest` component on each partial application. This ensures that tests for framework version X do not get run for framework version Y.

View File

@@ -63,7 +63,7 @@
"pnpm": {
"overrides": {
"@types/react": "^17.0.53",
"@ionic/core": "workspace:../../../../core",
"@ionic/core": "workspace:../../core",
"react": "^17.0.2"
}
}

View File

@@ -6,7 +6,7 @@ settings:
overrides:
'@types/react': ^17.0.53
'@ionic/core': workspace:../../../../core
'@ionic/core': workspace:../../core
react: ^17.0.2
importers:
@@ -87,8 +87,8 @@ importers:
../../..:
dependencies:
'@ionic/core':
specifier: workspace:../../../../core
version: link:../../../../core
specifier: workspace:../../core
version: link:../../core
ionicons:
specifier: ^7.0.0
version: 7.2.2

View File

@@ -49,7 +49,7 @@
"pnpm": {
"overrides": {
"@types/react": "^18.0.27",
"@ionic/core": "workspace:../../../../core",
"@ionic/core": "workspace:../../core",
"react": "^18.2.0"
}
}

View File

@@ -6,7 +6,7 @@ settings:
overrides:
'@types/react': ^18.0.27
'@ionic/core': workspace:../../../../core
'@ionic/core': workspace:../../core
react: ^18.2.0
importers:
@@ -99,8 +99,8 @@ importers:
../../..:
dependencies:
'@ionic/core':
specifier: workspace:../../../../core
version: link:../../../../core
specifier: workspace:../../core
version: link:../../core
ionicons:
specifier: ^7.0.0
version: 7.2.2

View File

@@ -22,6 +22,10 @@ FULL_BASE_DIR="${BASE_DIR}/."
# The full path to the built application.
BUILD_APP_DIR="${BUILD_DIR}/${APP_DIR}/"
# Delete any node_modules directory from running
# pnpm install in the base application.
rm -rf $FULL_APP_DIR/node_modules
# Make the build directory if it does not already exist.
mkdir -p $BUILD_DIR