Skip to content

Commit

Permalink
chore(pkglint): dont publish cdk.out directories (#8803)
Browse files Browse the repository at this point in the history
Adds a pkglint validation so that we always include `**/cdk.out` in our `.npmignore` files. This will prevent us from accidentally publishing cdk artifacts that were generated during build/test.
 
----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
iliapolo authored Jun 30, 2020
1 parent 973fa42 commit c337d4a
Show file tree
Hide file tree
Showing 165 changed files with 523 additions and 7 deletions.
3 changes: 3 additions & 0 deletions packages/@aws-cdk/alexa-ask/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ dist
tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/app-delivery/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ coverage

tsconfig.json
.eslintrc.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/assert/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ dist
tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/assets/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ dist

tsconfig.json
.eslintrc.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-accessanalyzer/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ tsconfig.json
!.jsii
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-acmpca/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ tsconfig.json

.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-amazonmq/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ dist
tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-amplify/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ dist
tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-apigateway/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ dist

tsconfig.json
.eslintrc.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-apigatewayv2/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ tsconfig.json
!.jsii
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-appconfig/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ tsconfig.json

.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-applicationautoscaling/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ dist

tsconfig.json
.eslintrc.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-appmesh/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ dist

tsconfig.json
.eslintrc.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-appstream/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ dist
tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-appsync/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ dist
tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-athena/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ dist
tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-autoscaling-common/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ lambda/*.sh

tsconfig.json
.eslintrc.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-autoscaling-hooktargets/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ dist
tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-autoscaling/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ dist

tsconfig.json
.eslintrc.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-autoscalingplans/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ dist
tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-backup/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ dist
tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-batch/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ dist
tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-budgets/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ dist
tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-cassandra/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ tsconfig.json

.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-ce/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ tsconfig.json

.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-certificatemanager/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ lambda-packages/dns_validated_certificate_handler/node_modules

tsconfig.json
.eslintrc.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-chatbot/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ tsconfig.json

.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-cloud9/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ dist
tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-cloudformation/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ dist

tsconfig.json
.eslintrc.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-cloudfront/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ coverage

tsconfig.json
.eslintrc.js

# exclude cdk artifacts
**/cdk.out
4 changes: 3 additions & 1 deletion packages/@aws-cdk/aws-cloudtrail/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ dist
tsconfig.json
.eslintrc.js

jest.config.js
jest.config.js
# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-cloudwatch-actions/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ dist
tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-cloudwatch/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ dist

tsconfig.json
.eslintrc.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-codebuild/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ dist

tsconfig.json
.eslintrc.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-codecommit/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ dist

tsconfig.json
.eslintrc.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-codedeploy/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ dist

tsconfig.json
.eslintrc.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-codeguruprofiler/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ tsconfig.json

.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-codepipeline-actions/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ dist

tsconfig.json
.eslintrc.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-codepipeline/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ dist

tsconfig.json
.eslintrc.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-codestar/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ dist
tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-codestarconnections/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ tsconfig.json

.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-codestarnotifications/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ tsconfig.json
!.jsii
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-cognito/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ dist
tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-config/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ dist

tsconfig.json
.eslintrc.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-datapipeline/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ dist
tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-dax/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ dist
tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-detective/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ tsconfig.json

.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-directoryservice/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ dist
tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-dlm/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ dist
tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
Loading

0 comments on commit c337d4a

Please sign in to comment.