Skip to content

Commit

Permalink
chore: flip common deps in CLI to peer instead of regular dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
alharris-at committed Jun 8, 2022
1 parent 041fb80 commit 1954967
Show file tree
Hide file tree
Showing 11 changed files with 243 additions and 214 deletions.
14 changes: 8 additions & 6 deletions packages/amplify-category-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@
"@aws-cdk/region-info": "~1.124.0",
"@graphql-tools/merge": "^6.0.18",
"@octokit/rest": "^18.0.9",
"amplify-cli-core": "^2.9.0",
"amplify-headless-interface": "^1.15.0",
"amplify-prompts": "^2.2.0",
"amplify-provider-awscloudformation": "^6.3.0",
"amplify-util-headless-input": "^1.9.5",
"chalk": "^4.1.1",
"cloudform": "^4.2.0",
"cloudform-types": "^4.2.0",
Expand Down Expand Up @@ -112,9 +107,16 @@
"rimraf": "^3.0.0",
"uuid": "^8.3.2"
},
"peerDependencies": {
"amplify-cli-core": "^2.9.0",
"amplify-prompts": "^2.2.0",
"amplify-provider-awscloudformation": "^6.3.0"
},
"devDependencies": {
"@aws-cdk/assertions": "~1.124.0",
"@types/js-yaml": "^4.0.0"
"@types/js-yaml": "^4.0.0",
"amplify-headless-interface": "^1.15.0",
"amplify-util-headless-input": "^1.9.5"
},
"jest": {
"testURL": "http://localhost",
Expand Down
4 changes: 3 additions & 1 deletion packages/amplify-dynamodb-simulator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"test": "jest"
},
"dependencies": {
"amplify-cli-core": "^2.6.0",
"aws-sdk": "^2.1113.0",
"detect-port": "^1.3.0",
"execa": "^5.1.1",
Expand All @@ -31,6 +30,9 @@
"wait-port": "^0.2.7",
"which": "^2.0.2"
},
"peerDependencies": {
"amplify-cli-core": "^2.9.0"
},
"devDependencies": {
"download-cli": "^1.1.1",
"get-port": "^5.1.1"
Expand Down
4 changes: 3 additions & 1 deletion packages/amplify-e2e-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"clean": "rimraf ./lib"
},
"dependencies": {
"amplify-cli-core": "^2.6.0",
"amplify-headless-interface": "^1.14.2",
"chalk": "^4.1.1",
"execa": "^5.1.1",
Expand All @@ -37,5 +36,8 @@
"strip-ansi": "^6.0.0",
"throat": "^5.0.0",
"uuid": "^8.3.2"
},
"peerDependencies": {
"amplify-cli-core": "^2.9.0"
}
}
4 changes: 3 additions & 1 deletion packages/amplify-e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
},
"dependencies": {
"@aws-amplify/graphql-transformer-core": "0.17.3",
"amplify-cli-core": "^2.6.0",
"amplify-e2e-core": "3.1.5",
"aws-amplify": "^4.2.8",
"aws-appsync": "^4.1.1",
Expand All @@ -44,6 +43,9 @@
"uuid": "^8.3.2",
"yargs": "^15.1.0"
},
"peerDependencies": {
"amplify-cli-core": "^2.9.0"
},
"devDependencies": {
"@types/lodash": "^4.14.149",
"ts-node": "^8.10.2"
Expand Down
4 changes: 3 additions & 1 deletion packages/amplify-graphql-auth-transformer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,16 @@
"@aws-cdk/aws-dynamodb": "~1.124.0",
"@aws-cdk/aws-iam": "~1.124.0",
"@aws-cdk/core": "~1.124.0",
"amplify-prompts": "^2.0.0",
"constructs": "^3.3.125",
"graphql": "^14.5.8",
"graphql-mapping-template": "4.20.5",
"graphql-transformer-common": "4.23.2",
"lodash": "^4.17.21",
"md5": "^2.3.0"
},
"peerDependencies": {
"amplify-prompts": "^2.0.0"
},
"devDependencies": {
"@aws-amplify/graphql-index-transformer": "0.11.10",
"@aws-amplify/graphql-searchable-transformer": "0.14.3",
Expand Down
4 changes: 3 additions & 1 deletion packages/amplify-graphql-migration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"@aws-amplify/graphql-transformer-interfaces": "1.14.3",
"@aws-amplify/graphql-transformer-migrator": "1.2.39",
"@aws-cdk/cloudformation-diff": "~1.124.0",
"amplify-prompts": "^2.0.1",
"fs-extra": "^8.1.0",
"graphql-auth-transformer": "7.2.35",
"graphql-connection-transformer": "5.2.35",
Expand All @@ -62,5 +61,8 @@
"graphql-predictions-transformer": "3.2.35",
"graphql-transformer-core": "7.5.3",
"graphql-versioned-transformer": "5.2.35"
},
"peerDependencies": {
"amplify-prompts": "^2.0.1"
}
}
4 changes: 3 additions & 1 deletion packages/amplify-graphql-transformer-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"@aws-cdk/custom-resources": "~1.124.0",
"@aws-cdk/cx-api": "~1.124.0",
"@aws-cdk/region-info": "~1.124.0",
"amplify-prompts": "^2.0.1",
"constructs": "^3.3.125",
"fs-extra": "^8.1.0",
"graphql": "^14.5.8",
Expand All @@ -63,6 +62,9 @@
"ts-dedent": "^2.0.0",
"vm2": "^3.9.8"
},
"peerDependencies": {
"amplify-prompts": "^2.0.1"
},
"devDependencies": {
"@types/fs-extra": "^8.0.1",
"@types/md5": "^2.3.1",
Expand Down
6 changes: 4 additions & 2 deletions packages/amplify-graphql-transformer-migrator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@
},
"dependencies": {
"@aws-amplify/graphql-transformer-core": "0.17.3",
"amplify-cli-core": "^2.6.0",
"amplify-prompts": "^2.0.1",
"fs-extra": "^8.1.0",
"glob": "^7.2.0",
"graphql": "^14.5.8",
"graphql-transformer-common": "4.23.2",
"lodash": "^4.17.21"
},
"peerDependencies": {
"amplify-cli-core": "^2.9.0",
"amplify-prompts": "^2.0.1"
},
"devDependencies": {
"@types/fs-extra": "^8.0.1",
"@types/node": "^12.12.6"
Expand Down
4 changes: 3 additions & 1 deletion packages/amplify-util-mock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"@hapi/topo": "^5.0.0",
"amplify-appsync-simulator": "^2.3.12",
"amplify-category-function": "^4.0.3",
"amplify-cli-core": "^2.6.0",
"amplify-codegen": "^3.0.0",
"amplify-dynamodb-simulator": "2.2.31",
"amplify-provider-awscloudformation": "^6.1.3",
Expand All @@ -48,6 +47,9 @@
"semver": "^7.3.5",
"which": "^2.0.2"
},
"peerDependencies": {
"amplify-cli-core": "^2.9.0"
},
"devDependencies": {
"@aws-amplify/graphql-auth-transformer": "0.9.3",
"@aws-amplify/graphql-default-value-transformer": "0.5.25",
Expand Down
4 changes: 3 additions & 1 deletion packages/graphql-transformer-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"clean": "rimraf ./lib"
},
"dependencies": {
"amplify-cli-core": "^2.6.0",
"cloudform-types": "^4.2.0",
"deep-diff": "^1.0.2",
"fs-extra": "^8.1.0",
Expand All @@ -32,6 +31,9 @@
"graphql-transformer-common": "4.23.2",
"lodash": "^4.17.21"
},
"peerDependencies": {
"amplify-cli-core": "^2.9.0"
},
"devDependencies": {
"@types/fs-extra": "^8.0.1",
"@types/node": "^12.12.6"
Expand Down
Loading

0 comments on commit 1954967

Please sign in to comment.