Skip to content
/ aws-cdk Public
forked from aws/aws-cdk

Commit

Permalink
chore: upgrade to jsii 0.7.10 (aws#1147)
Browse files Browse the repository at this point in the history
- align "peerDependencies"
- added scripts/fix-peer-deps.sh
- fix peer dependencies when bumping
  • Loading branch information
Elad Ben-Israel authored Nov 12, 2018
1 parent a70a50d commit 42b37b1
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 4 deletions.
5 changes: 5 additions & 0 deletions bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ fi

/bin/bash ./install.sh


lerna publish --force-publish=* --skip-npm --skip-git --repo-version ${ver}

# align "peerDependencies" to actual dependencies after bump
# this is technically only required for major version bumps, but in the meantime we shall do it in every bump
/bin/bash scripts/fix-peer-deps.sh

# Update CHANGELOG.md only at the root
cat > /tmp/context.json <<HERE
{
Expand Down
6 changes: 5 additions & 1 deletion packages/@aws-cdk/app-delivery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,9 @@
"keywords": [
"aws",
"cdk"
]
],
"peerDependencies": {
"@aws-cdk/cdk": "^0.15.2",
"@aws-cdk/aws-codepipeline-api": "^0.15.2"
}
}
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-appstream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,8 @@
},
"dependencies": {
"@aws-cdk/cdk": "^0.15.2"
},
"peerDependencies": {
"@aws-cdk/cdk": "^0.15.2"
}
}
11 changes: 10 additions & 1 deletion packages/@aws-cdk/aws-ecs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@
},
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/cdk": "^0.15.1"
"@aws-cdk/cdk": "^0.15.1",
"@aws-cdk/aws-ec2": "^0.15.2",
"@aws-cdk/aws-logs": "^0.15.2",
"@aws-cdk/aws-elasticloadbalancingv2": "^0.15.2",
"@aws-cdk/aws-applicationautoscaling": "^0.15.2",
"@aws-cdk/aws-cloudwatch": "^0.15.2",
"@aws-cdk/aws-autoscaling": "^0.15.2",
"@aws-cdk/aws-iam": "^0.15.2",
"@aws-cdk/aws-ecr": "^0.15.2",
"@aws-cdk/aws-elasticloadbalancing": "^0.15.2"
}
}
3 changes: 3 additions & 0 deletions scripts/fix-peer-deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
set -euo pipefail
lerna exec "$PWD/tools/cdk-build-tools/node_modules/.bin/jsii-fix-peers 2>/dev/null || true"
4 changes: 2 additions & 2 deletions tools/cdk-build-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
},
"dependencies": {
"fs-extra": "^7.0.0",
"jsii": "^0.7.8",
"jsii-pacmak": "^0.7.7",
"jsii": "^0.7.10",
"jsii-pacmak": "^0.7.10",
"merkle-build": "^0.15.2",
"nodeunit": "^0.11.3",
"nyc": "^13.0.1",
Expand Down

0 comments on commit 42b37b1

Please sign in to comment.