From 5d5439ee6a423f1ec4ac12c43f80a72ae1ee926e Mon Sep 17 00:00:00 2001 From: Vieltojarvi Date: Thu, 29 Aug 2024 12:32:16 -0700 Subject: [PATCH] Revert "chore: moved execa comment to check_dependencies.ts" This reverts commit 44a9051c305c2ecafde0366b1f65d7807b11add3. --- package-lock.json | 18 +++++++++--------- scripts/check_dependencies.ts | 3 --- scripts/components/dependencies_validator.ts | 3 +++ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5c7ecf1cc6..c118b8923b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24682,19 +24682,19 @@ }, "packages/backend": { "name": "@aws-amplify/backend", - "version": "1.2.0", + "version": "1.1.1", "license": "Apache-2.0", "dependencies": { "@aws-amplify/backend-auth": "^1.1.2", - "@aws-amplify/backend-data": "^1.1.3", + "@aws-amplify/backend-data": "^1.1.1", "@aws-amplify/backend-function": "^1.3.2", "@aws-amplify/backend-output-schemas": "^1.2.0", "@aws-amplify/backend-output-storage": "^1.1.1", "@aws-amplify/backend-secret": "^1.0.1", "@aws-amplify/backend-storage": "^1.1.1", - "@aws-amplify/client-config": "^1.3.0", + "@aws-amplify/client-config": "^1.2.0", "@aws-amplify/data-schema": "^1.0.0", - "@aws-amplify/platform-core": "^1.0.7", + "@aws-amplify/platform-core": "^1.0.6", "@aws-amplify/plugin-types": "^1.2.1", "@aws-sdk/client-amplify": "^3.624.0", "lodash.snakecase": "^4.1.1" @@ -24729,7 +24729,7 @@ }, "packages/backend-data": { "name": "@aws-amplify/backend-data", - "version": "1.1.3", + "version": "1.1.2", "license": "Apache-2.0", "dependencies": { "@aws-amplify/backend-output-schemas": "^1.1.0", @@ -24741,7 +24741,7 @@ "devDependencies": { "@aws-amplify/backend-platform-test-stubs": "^0.3.4", "@aws-amplify/data-schema": "^1.0.0", - "@aws-amplify/platform-core": "^1.0.7" + "@aws-amplify/platform-core": "^1.0.6" }, "peerDependencies": { "aws-cdk-lib": "^2.152.0", @@ -25059,13 +25059,13 @@ }, "packages/client-config": { "name": "@aws-amplify/client-config", - "version": "1.3.0", + "version": "1.2.1", "license": "Apache-2.0", "dependencies": { "@aws-amplify/backend-output-schemas": "^1.2.0", "@aws-amplify/deployed-backend-client": "^1.4.0", "@aws-amplify/model-generator": "^1.0.5", - "@aws-amplify/platform-core": "^1.0.7", + "@aws-amplify/platform-core": "^1.0.5", "zod": "^3.22.2" }, "devDependencies": { @@ -25324,7 +25324,7 @@ }, "packages/platform-core": { "name": "@aws-amplify/platform-core", - "version": "1.0.7", + "version": "1.0.6", "license": "Apache-2.0", "dependencies": { "@aws-amplify/plugin-types": "^1.2.1", diff --git a/scripts/check_dependencies.ts b/scripts/check_dependencies.ts index 80d26889d4..a38953c8ef 100644 --- a/scripts/check_dependencies.ts +++ b/scripts/check_dependencies.ts @@ -24,9 +24,6 @@ await new DependenciesValidator( [['aws-cdk', 'aws-cdk-lib']], [ { - // @aws-amplify/plugin-types can depend on execa@^5.1.1 as a workaround for https://github.com/aws-amplify/amplify-backend/issues/962 - // all other packages must depend on execa@^8.0.1 - // this can be removed once execa is patched dependencyName: 'execa', globalDependencyVersion: '^8.0.1', exceptions: [ diff --git a/scripts/components/dependencies_validator.ts b/scripts/components/dependencies_validator.ts index caa9e50bbc..d0cb5a4c28 100644 --- a/scripts/components/dependencies_validator.ts +++ b/scripts/components/dependencies_validator.ts @@ -256,6 +256,9 @@ export class DependenciesValidator { (x) => x.dependencyName === packageName ); if (inconsistentDependency) { + // @aws-amplify/plugin-types can depend on execa@^5.1.1 as a workaround for https://github.com/aws-amplify/amplify-backend/issues/962 + // all other packages must depend on execa@^8.0.1 + // this can be removed once execa is patched return (declarations) => { const validationResult = declarations.every( ({ dependentPackageName, version }) =>