Skip to content

Commit

Permalink
chore(pkglint): Add rule to specify repository.directory (aws#2218)
Browse files Browse the repository at this point in the history
This is used in `package.json` to denote the path of a module's root
relative to the repository, so that links can be emitted to the correct
location instead of the root of the repository.

See: https://docs.npmjs.com/files/package.json#repository
  • Loading branch information
RomainMuller authored Apr 10, 2019
1 parent b7c9b21 commit 109625d
Show file tree
Hide file tree
Showing 110 changed files with 322 additions and 202 deletions.
5 changes: 3 additions & 2 deletions packages/@aws-cdk/alexa-ask/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/alexa-ask"
},
"homepage": "https://github.com/awslabs/aws-cdk",
"scripts": {
Expand Down Expand Up @@ -73,4 +74,4 @@
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 3 additions & 2 deletions packages/@aws-cdk/app-delivery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/app-delivery"
},
"homepage": "https://github.com/awslabs/aws-cdk",
"license": "Apache-2.0",
Expand All @@ -78,4 +79,4 @@
"engines": {
"node": ">= 8.10.0"
}
}
}
3 changes: 2 additions & 1 deletion packages/@aws-cdk/applet-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
},
"repository": {
"url": "https://github.com/awslabs/aws-cdk.git",
"type": "git"
"type": "git",
"directory": "packages/@aws-cdk/applet-js"
},
"keywords": [
"aws",
Expand Down
3 changes: 2 additions & 1 deletion packages/@aws-cdk/assert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
},
"repository": {
"url": "https://github.com/awslabs/aws-cdk.git",
"type": "git"
"type": "git",
"directory": "packages/@aws-cdk/assert"
},
"keywords": [
"aws",
Expand Down
5 changes: 3 additions & 2 deletions packages/@aws-cdk/assets-docker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/assets-docker"
},
"scripts": {
"build": "cdk-build",
Expand Down Expand Up @@ -84,4 +85,4 @@
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 3 additions & 2 deletions packages/@aws-cdk/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/assets"
},
"scripts": {
"build": "cdk-build",
Expand All @@ -43,7 +44,7 @@
},
"cdk-build": {
"pre": [
"cd test/fs && tar -xzvf fixtures.tar.gz"
"cd test/fs && tar -xzvf fixtures.tar.gz"
]
},
"keywords": [
Expand Down
5 changes: 3 additions & 2 deletions packages/@aws-cdk/aws-amazonmq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/aws-amazonmq"
},
"homepage": "https://github.com/awslabs/aws-cdk",
"scripts": {
Expand Down Expand Up @@ -73,4 +74,4 @@
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 3 additions & 2 deletions packages/@aws-cdk/aws-apigateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/aws-apigateway"
},
"scripts": {
"build": "cdk-build",
Expand Down Expand Up @@ -89,4 +90,4 @@
"resource-attribute:@aws-cdk/aws-apigateway.IRestApi.restApiRootResourceId"
]
}
}
}
5 changes: 3 additions & 2 deletions packages/@aws-cdk/aws-applicationautoscaling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/aws-applicationautoscaling"
},
"scripts": {
"build": "cdk-build",
Expand Down Expand Up @@ -79,4 +80,4 @@
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 3 additions & 2 deletions packages/@aws-cdk/aws-appmesh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/aws-appmesh"
},
"homepage": "https://github.com/awslabs/aws-cdk",
"scripts": {
Expand Down Expand Up @@ -74,4 +75,4 @@
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 3 additions & 2 deletions packages/@aws-cdk/aws-appstream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/aws-appstream"
},
"homepage": "https://github.com/awslabs/aws-cdk",
"scripts": {
Expand Down Expand Up @@ -73,4 +74,4 @@
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 3 additions & 2 deletions packages/@aws-cdk/aws-appsync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/aws-appsync"
},
"scripts": {
"build": "cdk-build",
Expand Down Expand Up @@ -73,4 +74,4 @@
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 3 additions & 2 deletions packages/@aws-cdk/aws-athena/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/aws-athena"
},
"scripts": {
"build": "cdk-build",
Expand Down Expand Up @@ -73,4 +74,4 @@
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 3 additions & 2 deletions packages/@aws-cdk/aws-autoscaling-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/aws-autoscaling-api"
},
"scripts": {
"build": "cdk-build",
Expand Down Expand Up @@ -81,4 +82,4 @@
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 3 additions & 2 deletions packages/@aws-cdk/aws-autoscaling-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/aws-autoscaling-common"
},
"scripts": {
"build": "cdk-build",
Expand Down Expand Up @@ -72,4 +73,4 @@
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 3 additions & 2 deletions packages/@aws-cdk/aws-autoscaling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/aws-autoscaling"
},
"scripts": {
"build": "cdk-build",
Expand Down Expand Up @@ -96,4 +97,4 @@
"export:@aws-cdk/aws-autoscaling.IAutoScalingGroup"
]
}
}
}
5 changes: 3 additions & 2 deletions packages/@aws-cdk/aws-autoscalingplans/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/aws-autoscalingplans"
},
"scripts": {
"build": "cdk-build",
Expand Down Expand Up @@ -73,4 +74,4 @@
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 3 additions & 2 deletions packages/@aws-cdk/aws-batch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/aws-batch"
},
"scripts": {
"build": "cdk-build",
Expand Down Expand Up @@ -73,4 +74,4 @@
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 3 additions & 2 deletions packages/@aws-cdk/aws-budgets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/aws-budgets"
},
"scripts": {
"build": "cdk-build",
Expand Down Expand Up @@ -73,4 +74,4 @@
"engines": {
"node": ">= 8.10.0"
}
}
}
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-certificatemanager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/aws-certificatemanager"
},
"scripts": {
"build": "cdk-build",
Expand Down
5 changes: 3 additions & 2 deletions packages/@aws-cdk/aws-cloud9/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/aws-cloud9"
},
"scripts": {
"build": "cdk-build",
Expand Down Expand Up @@ -73,4 +74,4 @@
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 3 additions & 2 deletions packages/@aws-cdk/aws-cloudformation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/aws-cloudformation"
},
"scripts": {
"build": "cdk-build",
Expand Down Expand Up @@ -87,4 +88,4 @@
"construct-ctor:@aws-cdk/aws-cloudformation.PipelineCloudFormationDeployAction.<initializer>"
]
}
}
}
5 changes: 3 additions & 2 deletions packages/@aws-cdk/aws-cloudfront/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/aws-cloudfront"
},
"scripts": {
"build": "cdk-build",
Expand Down Expand Up @@ -82,4 +83,4 @@
"engines": {
"node": ">= 8.10.0"
}
}
}
5 changes: 3 additions & 2 deletions packages/@aws-cdk/aws-cloudtrail/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-cdk.git"
"url": "https://github.com/awslabs/aws-cdk.git",
"directory": "packages/@aws-cdk/aws-cloudtrail"
},
"scripts": {
"build": "cdk-build",
Expand Down Expand Up @@ -82,4 +83,4 @@
"engines": {
"node": ">= 8.10.0"
}
}
}
Loading

0 comments on commit 109625d

Please sign in to comment.