cdk-preflight 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/skills/add-preflight-rule/SKILL.md +29 -0
- package/.jsii +9603 -0
- package/AGENTS.md +60 -0
- package/API.md +152 -0
- package/LICENSE +202 -0
- package/README.md +89 -0
- package/docs/rules.md +15 -0
- package/lib/cli.d.ts +5 -0
- package/lib/cli.js +121 -0
- package/lib/index.d.ts +64 -0
- package/lib/index.js +54 -0
- package/lib/private/enforce.d.ts +23 -0
- package/lib/private/enforce.js +139 -0
- package/lib/rules.generated.d.ts +10 -0
- package/lib/rules.generated.js +110 -0
- package/llms.txt +23 -0
- package/package.json +149 -0
package/package.json
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cdk-preflight",
|
|
3
|
+
"description": "Catch deploy-time CloudFormation failures at synth time: a Rego rule pack for constraints that resource schemas miss, injected into the AWS CDK built-in validator",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/badmintoncryer/cdk-preflight.git"
|
|
7
|
+
},
|
|
8
|
+
"bin": {
|
|
9
|
+
"cdk-preflight": "lib/cli.js"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "projen build",
|
|
13
|
+
"bump": "projen bump",
|
|
14
|
+
"bump:releasable-commits": "projen bump:releasable-commits",
|
|
15
|
+
"bundle-rules": "projen bundle-rules",
|
|
16
|
+
"clobber": "projen clobber",
|
|
17
|
+
"compat": "projen compat",
|
|
18
|
+
"compile": "projen compile",
|
|
19
|
+
"default": "projen default",
|
|
20
|
+
"docgen": "projen docgen",
|
|
21
|
+
"eject": "projen eject",
|
|
22
|
+
"eslint": "projen eslint",
|
|
23
|
+
"package": "projen package",
|
|
24
|
+
"package-all": "projen package-all",
|
|
25
|
+
"package:js": "projen package:js",
|
|
26
|
+
"package:python": "projen package:python",
|
|
27
|
+
"post-compile": "projen post-compile",
|
|
28
|
+
"post-upgrade": "projen post-upgrade",
|
|
29
|
+
"pre-compile": "projen pre-compile",
|
|
30
|
+
"release": "projen release",
|
|
31
|
+
"test": "projen test",
|
|
32
|
+
"test:watch": "projen test:watch",
|
|
33
|
+
"unbump": "projen unbump",
|
|
34
|
+
"upgrade": "projen upgrade",
|
|
35
|
+
"watch": "projen watch",
|
|
36
|
+
"projen": "projen"
|
|
37
|
+
},
|
|
38
|
+
"author": {
|
|
39
|
+
"name": "Kazuho CryerShinozuka",
|
|
40
|
+
"email": "malaysia.cryer@gmail.com",
|
|
41
|
+
"organization": false
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@stylistic/eslint-plugin": "^2",
|
|
45
|
+
"@types/jest": "^30.0.0",
|
|
46
|
+
"@types/node": "^26.4.0",
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^8",
|
|
48
|
+
"@typescript-eslint/parser": "^8",
|
|
49
|
+
"aws-cdk-lib": "2.267.0",
|
|
50
|
+
"commit-and-tag-version": "^12",
|
|
51
|
+
"constructs": "10.5.1",
|
|
52
|
+
"eslint": "^9",
|
|
53
|
+
"eslint-import-resolver-typescript": "^4.4.5",
|
|
54
|
+
"eslint-plugin-import": "^2.32.0",
|
|
55
|
+
"jest": "^30.5.1",
|
|
56
|
+
"jest-junit": "^17",
|
|
57
|
+
"jsii": "~5.8.0",
|
|
58
|
+
"jsii-diff": "^1.140.0",
|
|
59
|
+
"jsii-docgen": "^10.5.0",
|
|
60
|
+
"jsii-pacmak": "^1.140.0",
|
|
61
|
+
"jsii-rosetta": "~5.8.0",
|
|
62
|
+
"projen": "^0.103.12",
|
|
63
|
+
"ts-jest": "^29.4.12",
|
|
64
|
+
"ts-node": "^10.9.2",
|
|
65
|
+
"typescript": "^6.0.3",
|
|
66
|
+
"yaml": "^2.9.0"
|
|
67
|
+
},
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"aws-cdk-lib": "^2.267.0",
|
|
70
|
+
"constructs": "^10.5.1"
|
|
71
|
+
},
|
|
72
|
+
"keywords": [
|
|
73
|
+
"aws",
|
|
74
|
+
"aws-cdk",
|
|
75
|
+
"cdk",
|
|
76
|
+
"cloudformation",
|
|
77
|
+
"fail-fast",
|
|
78
|
+
"linter",
|
|
79
|
+
"policy-validation",
|
|
80
|
+
"preflight",
|
|
81
|
+
"rego",
|
|
82
|
+
"validation"
|
|
83
|
+
],
|
|
84
|
+
"main": "lib/index.js",
|
|
85
|
+
"license": "Apache-2.0",
|
|
86
|
+
"stability": "stable",
|
|
87
|
+
"publishConfig": {
|
|
88
|
+
"access": "public"
|
|
89
|
+
},
|
|
90
|
+
"version": "0.0.0",
|
|
91
|
+
"jest": {
|
|
92
|
+
"coverageProvider": "v8",
|
|
93
|
+
"testMatch": [
|
|
94
|
+
"<rootDir>/@(src|test)/**/*(*.)@(spec|test).ts?(x)",
|
|
95
|
+
"<rootDir>/@(src|test)/**/__tests__/**/*.ts?(x)",
|
|
96
|
+
"<rootDir>/@(projenrc)/**/*(*.)@(spec|test).ts?(x)",
|
|
97
|
+
"<rootDir>/@(projenrc)/**/__tests__/**/*.ts?(x)"
|
|
98
|
+
],
|
|
99
|
+
"clearMocks": true,
|
|
100
|
+
"collectCoverage": true,
|
|
101
|
+
"coverageReporters": [
|
|
102
|
+
"json",
|
|
103
|
+
"lcov",
|
|
104
|
+
"clover",
|
|
105
|
+
"cobertura",
|
|
106
|
+
"text"
|
|
107
|
+
],
|
|
108
|
+
"coverageDirectory": "coverage",
|
|
109
|
+
"coveragePathIgnorePatterns": [
|
|
110
|
+
"/node_modules/"
|
|
111
|
+
],
|
|
112
|
+
"testPathIgnorePatterns": [
|
|
113
|
+
"/node_modules/"
|
|
114
|
+
],
|
|
115
|
+
"watchPathIgnorePatterns": [
|
|
116
|
+
"/node_modules/"
|
|
117
|
+
],
|
|
118
|
+
"reporters": [
|
|
119
|
+
"default",
|
|
120
|
+
[
|
|
121
|
+
"jest-junit",
|
|
122
|
+
{
|
|
123
|
+
"outputDirectory": "test-reports"
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
],
|
|
127
|
+
"transform": {
|
|
128
|
+
"^.+\\.[t]sx?$": [
|
|
129
|
+
"ts-jest",
|
|
130
|
+
{
|
|
131
|
+
"tsconfig": "test/tsconfig.json"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"types": "lib/index.d.ts",
|
|
137
|
+
"jsii": {
|
|
138
|
+
"outdir": "dist",
|
|
139
|
+
"targets": {
|
|
140
|
+
"python": {
|
|
141
|
+
"distName": "cdk-preflight",
|
|
142
|
+
"module": "cdk_preflight"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"tsconfig": "tsconfig.json",
|
|
146
|
+
"validateTsconfig": "strict"
|
|
147
|
+
},
|
|
148
|
+
"//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\"."
|
|
149
|
+
}
|