Skip to content

Commit

Permalink
feat: add "engines.node" key to all packages (#1358)
Browse files Browse the repository at this point in the history
This will make NPM throw an error if users try to install any of
the packages on an incompatible version of NodeJS.

Fixes #1337.
  • Loading branch information
rix0rrr committed Dec 13, 2018
1 parent 84eb7ad commit b595cf0
Show file tree
Hide file tree
Showing 102 changed files with 415 additions and 101 deletions.
5 changes: 4 additions & 1 deletion examples/cdk-examples-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,8 @@
"aws",
"cdk"
],
"homepage": "https://github.com/awslabs/aws-cdk"
"homepage": "https://github.com/awslabs/aws-cdk",
"engines": {
"node": ">= 8.10.0"
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/alexa-ask/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@
},
"peerDependencies": {
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/app-delivery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,8 @@
"@aws-cdk/aws-codepipeline-api": "^0.20.0",
"@aws-cdk/aws-iam": "^0.20.0",
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/applet-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,8 @@
"aws",
"cdk"
],
"homepage": "https://github.com/awslabs/aws-cdk"
"homepage": "https://github.com/awslabs/aws-cdk",
"engines": {
"node": ">= 8.10.0"
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/assert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,8 @@
"aws",
"cdk"
],
"homepage": "https://github.com/awslabs/aws-cdk"
"homepage": "https://github.com/awslabs/aws-cdk",
"engines": {
"node": ">= 8.10.0"
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/assets-docker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,8 @@
"@aws-cdk/aws-iam": "^0.20.0",
"@aws-cdk/aws-s3": "^0.20.0",
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,8 @@
"@aws-cdk/aws-iam": "^0.20.0",
"@aws-cdk/aws-s3": "^0.20.0",
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-amazonmq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@
},
"peerDependencies": {
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-apigateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,8 @@
"@aws-cdk/aws-iam": "^0.20.0",
"@aws-cdk/aws-lambda": "^0.20.0",
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-applicationautoscaling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,8 @@
"@aws-cdk/aws-cloudwatch": "^0.20.0",
"@aws-cdk/aws-iam": "^0.20.0",
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-appstream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@
},
"peerDependencies": {
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-appsync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-athena/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-autoscaling-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,8 @@
"peerDependencies": {
"@aws-cdk/aws-iam": "^0.20.0",
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-autoscaling-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@
"peerDependencies": {
"@aws-cdk/aws-iam": "^0.20.0",
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-autoscaling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,8 @@
"@aws-cdk/aws-iam": "^0.20.0",
"@aws-cdk/aws-sns": "^0.20.0",
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-autoscalingplans/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-batch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-budgets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-certificatemanager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,8 @@
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-cloud9/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-cloudformation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,8 @@
"@aws-cdk/aws-lambda": "^0.20.0",
"@aws-cdk/aws-sns": "^0.20.0",
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-cloudfront/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,8 @@
"@aws-cdk/aws-route53": "^0.20.0",
"@aws-cdk/aws-s3": "^0.20.0",
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-cloudtrail/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,8 @@
"peerDependencies": {
"@aws-cdk/aws-kms": "^0.20.0",
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-cloudwatch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,8 @@
"peerDependencies": {
"@aws-cdk/aws-iam": "^0.20.0",
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-codebuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,8 @@
"@aws-cdk/aws-kms": "^0.20.0",
"@aws-cdk/aws-s3": "^0.20.0",
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-codecommit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,8 @@
"@aws-cdk/aws-codepipeline-api": "^0.20.0",
"@aws-cdk/aws-events": "^0.20.0",
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-codedeploy-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,8 @@
"dependencies": {
"@aws-cdk/cdk": "^0.20.0"
},
"homepage": "https://github.com/awslabs/aws-cdk"
"homepage": "https://github.com/awslabs/aws-cdk",
"engines": {
"node": ">= 8.10.0"
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-codedeploy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,8 @@
"@aws-cdk/aws-codepipeline-api": "^0.20.0",
"@aws-cdk/aws-iam": "^0.20.0",
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-codepipeline-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,8 @@
"@aws-cdk/aws-events": "^0.20.0",
"@aws-cdk/aws-iam": "^0.20.0",
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-codepipeline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,8 @@
"@aws-cdk/aws-iam": "^0.20.0",
"@aws-cdk/aws-s3": "^0.20.0",
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-cognito/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-datapipeline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-dax/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-directoryservice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/cdk": "^0.20.0"
},
"engines": {
"node": ">= 8.10.0"
}
}
}
Loading

0 comments on commit b595cf0

Please sign in to comment.