mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore: dependency resolution for @ionic/core
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
"pnpm": {
|
||||
"overrides": {
|
||||
"@types/react": "^17.0.53",
|
||||
"@ionic/core": "workspace:../../../../core",
|
||||
"@ionic/core": "workspace:../../core",
|
||||
"react": "^17.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
6
packages/react/test/apps/react17/pnpm-lock.yaml
generated
6
packages/react/test/apps/react17/pnpm-lock.yaml
generated
@@ -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
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
"pnpm": {
|
||||
"overrides": {
|
||||
"@types/react": "^18.0.27",
|
||||
"@ionic/core": "workspace:../../../../core",
|
||||
"@ionic/core": "workspace:../../core",
|
||||
"react": "^18.2.0"
|
||||
}
|
||||
}
|
||||
|
||||
6
packages/react/test/apps/react18/pnpm-lock.yaml
generated
6
packages/react/test/apps/react18/pnpm-lock.yaml
generated
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user