Skip to content

Commit

Permalink
Merge pull request #1074 from aligent/feature/DO-1530_cleanup
Browse files Browse the repository at this point in the history
Minor cleanup
  • Loading branch information
TheOrangePuff authored Oct 17, 2023
2 parents 0183256 + c2b0ce9 commit e6c9b4e
Show file tree
Hide file tree
Showing 16 changed files with 29 additions and 53 deletions.
6 changes: 3 additions & 3 deletions packages/basic-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"description": "A Cloudfront Lambda@Edge stack for performing basic auth protection",
"main": "index.js",
"scripts": {
"build": "tsc && cd ./lib/handlers && npm ci",
"prepublish": "tsc && cd ./lib/handlers && npm ci"
"build": "tsc && cd ./lib/handlers && npm ci"
},
"repository": {
"type": "git",
Expand All @@ -24,7 +23,8 @@
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "~5.2.2"
"typescript": "~5.2.2",
"@aligent/esbuild": "^2.0"
},
"dependencies": {
"aws-cdk-lib": "2.97.0",
Expand Down
4 changes: 3 additions & 1 deletion packages/cloudfront-security-headers/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ export class SecurityHeaderFunction extends Construct {
) {
super(scope, id);

const defineOptions: any = {};
const defineOptions: {
__CONTENT_SECURITY_POLICY__?: string;
} = {};

if (props?.contentSecurityPolicy) {
defineOptions.__CONTENT_SECURITY_POLICY__ = JSON.stringify(
Expand Down
4 changes: 2 additions & 2 deletions packages/cloudfront-security-headers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"types": "lib/index.d.ts",
"scripts": {
"build": "tsc && cd ./lib/handlers && npm ci",
"prepublish": "tsc && cd ./lib/handlers && npm ci",
"watch": "tsc -w",
"test": "jest"
},
Expand All @@ -18,7 +17,8 @@
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "~5.2.2"
"typescript": "~5.2.2",
"@aligent/esbuild": "^2.0"
},
"dependencies": {
"aws-cdk-lib": "2.97.0",
Expand Down

This file was deleted.

3 changes: 1 addition & 2 deletions packages/esbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"main": "index.js",
"license": "GPL-3.0-only",
"scripts": {
"build": "tsc",
"prepublish": "tsc"
"build": "tsc"
},
"devDependencies": {
"@types/jest": "^29.5.5",
Expand Down
5 changes: 4 additions & 1 deletion packages/esbuild/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "../../tsconfig.json"
"extends": "../../tsconfig.json",
"compilerOptions": {
"skipLibCheck": true
}
}
6 changes: 3 additions & 3 deletions packages/geoip-redirect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"description": "A Cloudfront Lambda@Edge stack for performing redirection based on CloudFront-Viewer-Country",
"main": "index.js",
"scripts": {
"build": "tsc && cd ./lib/handlers && npm ci",
"prepublish": "tsc && cd ./lib/handlers && npm ci"
"build": "tsc && cd ./lib/handlers && npm ci"
},
"repository": {
"type": "git",
Expand All @@ -24,7 +23,8 @@
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "~5.2.2"
"typescript": "~5.2.2",
"@aligent/esbuild": "^2.0"
},
"dependencies": {
"aws-cdk-lib": "2.97.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/graphql-mesh-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"description": "A construct to host Graphql Mesh in Fargate",
"main": "index.js",
"scripts": {
"build": "tsc",
"prepublish": "tsc"
"build": "tsc"
},
"repository": {
"type": "git",
Expand Down
1 change: 0 additions & 1 deletion packages/lambda-at-edge-handlers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"main": "index.js",
"scripts": {
"build": "tsc",
"prepublish": "tsc",
"watch": "tsc -w",
"test": "echo \"No test specified\" && exit 0"
},
Expand Down
3 changes: 1 addition & 2 deletions packages/prerender-fargate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"description": "A construct to host Prerender in Fargate",
"main": "index.js",
"scripts": {
"build": "tsc",
"prepublish": "tsc"
"build": "tsc"
},
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions packages/prerender-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"description": "Cloudfront Lambda@Edge constructs for integrating with prerender.io",
"main": "index.js",
"scripts": {
"build": "tsc && cd ./lib/handlers && npm ci",
"prepublish": "tsc && cd ./lib/handlers && npm ci"
"build": "tsc"
},
"repository": {
"type": "git",
Expand All @@ -24,7 +23,8 @@
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "~5.2.2"
"typescript": "~5.2.2",
"@aligent/esbuild": "^2.0"
},
"dependencies": {
"aws-cdk-lib": "2.97.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/rabbitmq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
},
"types": "index.d.ts",
"scripts": {
"build": "tsc",
"prepublish": "tsc"
"build": "tsc"
},
"devDependencies": {
"@types/jest": "^29.5.5",
Expand Down
3 changes: 1 addition & 2 deletions packages/shared-vpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"version": "2.0.0",
"main": "index.js",
"scripts": {
"build": "tsc",
"prepublish": "tsc"
"build": "tsc"
},
"devDependencies": {
"@types/jest": "^29.5.5",
Expand Down
6 changes: 3 additions & 3 deletions packages/static-hosting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
},
"types": "index.d.ts",
"scripts": {
"build": "tsc",
"prepublish": "tsc"
"build": "tsc"
},
"devDependencies": {
"@types/jest": "^29.5.5",
Expand All @@ -21,7 +20,8 @@
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "~5.2.2"
"typescript": "~5.2.2",
"@aligent/esbuild": "^2.0"
},
"dependencies": {
"aws-cdk-lib": "2.97.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/waf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
},
"types": "index.d.ts",
"scripts": {
"build": "tsc",
"prepublish": "tsc"
"build": "tsc"
},
"devDependencies": {
"@types/jest": "^29.5.5",
Expand Down
9 changes: 2 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"target": "ES2018",
"module": "commonjs",
"lib": ["es2018"],
"lib": ["es2018", "DOM"],
"noEmit": false,
"declaration": true,
"strict": true,
Expand All @@ -19,12 +19,7 @@
"experimentalDecorators": true,
"strictPropertyInitialization": false,
"typeRoots": ["./node_modules/@types"],
"types": ["node", "jest"],

// https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/826
// Ideally this should only be specified in packages/esbuild/tsconfig.json, however it doesn't seem to be
// loading that config file during build.
"skipLibCheck": true
"types": ["node", "jest"]
},
"exclude": ["**/node_modules", "cdk.out", "**/handlers/**"]
}

0 comments on commit e6c9b4e

Please sign in to comment.