1- const { awscdk, DependencyType} = require ( 'projen' ) ;
1+ const { awscdk, DependencyType } = require ( "projen" ) ;
2+ const CDK_VERSION = "1.123.0" ;
3+ const CONSTRUCTS_VERSION = "3.3.69" ;
24const project = new awscdk . AwsCdkConstructLibrary ( {
3- author : 'CDK Monitoring Constructs Team' ,
4- authorAddress :
'[email protected] ' , 5- cdkVersion : '1.123.0' ,
6- defaultReleaseBranch : 'main' ,
7- name : 'cdk-monitoring-constructs' ,
8- repositoryUrl :
'[email protected] :cdklabs/cdk-monitoring-constructs.git' , 9- cdkDependencies : [ 'monocdk' ] ,
10- cdkTestDependencies : [ '@monocdk-experiment/assert' ] ,
5+ author : "CDK Monitoring Constructs Team" ,
6+ authorAddress :
"[email protected] " , 7+ cdkVersion : CDK_VERSION ,
8+ cdkVersionPinning : true ,
9+ defaultReleaseBranch : "main" ,
10+ name : "cdk-monitoring-constructs" ,
11+ repositoryUrl :
"[email protected] :cdklabs/cdk-monitoring-constructs.git" , 12+ cdkDependencies : [ "monocdk" ] ,
13+ cdkTestDependencies : [ "@monocdk-experiment/assert" ] ,
14+ prettier : true ,
15+ prettierOptions : {
16+ arrowParens : "always" ,
17+ bracketSpacing : false ,
18+ printWidth : 140 ,
19+ semi : true ,
20+ tabWidth : 4 ,
21+ trailingComma : "all" ,
22+ } ,
1123 eslint : true ,
1224 eslintOptions : {
1325 env : {
1426 es2021 : true ,
1527 } ,
16- extends : [ 'eslint:recommended' , 'plugin:@typescript-eslint/recommended' , 'plugin:prettier/recommended' ] ,
17- parser : '@typescript-eslint/parser' ,
28+ extends : [
29+ "eslint:recommended" ,
30+ "plugin:@typescript-eslint/recommended" ,
31+ "plugin:prettier/recommended" ,
32+ ] ,
33+ parser : "@typescript-eslint/parser" ,
1834 parserOptions : {
1935 ecmaVersion : 2018 ,
20- sourceType : ' module' ,
36+ sourceType : " module" ,
2137 } ,
22- plugins : [ ' @typescript-eslint' , ' unused-imports' ] ,
38+ plugins : [ " @typescript-eslint" , " unused-imports" ] ,
2339 rules : {
24- 'unused-imports/no-unused-imports' : 'error' ,
25- 'no-case-declarations' : 'off' ,
26- 'no-bitwise' : 'off' ,
27- 'no-shadow' : 'off' ,
28- '@typescript-eslint/no-explicit-any' : 'off' ,
29- '@typescript-eslint/no-shadow' : 'off' ,
30- '@typescript-eslint/member-ordering' : 'off' ,
31- '@typescript-eslint/explicit-module-boundary-types' : 'off' ,
32- '@typescript-eslint/no-unused-vars' : [ 'error' , { argsIgnorePattern : '^_' } ] ,
33- 'prettier/prettier' : [
34- 'error' ,
35- {
36- arrowParens : 'always' ,
37- bracketSpacing : false ,
38- printWidth : 140 ,
39- semi : true ,
40- tabWidth : 4 ,
41- trailingComma : 'all' ,
42- } ,
40+ "unused-imports/no-unused-imports" : "error" ,
41+ "no-case-declarations" : "off" ,
42+ "no-bitwise" : "off" ,
43+ "no-shadow" : "off" ,
44+ "@typescript-eslint/no-explicit-any" : "off" ,
45+ "@typescript-eslint/no-shadow" : "off" ,
46+ "@typescript-eslint/member-ordering" : "off" ,
47+ "@typescript-eslint/explicit-module-boundary-types" : "off" ,
48+ "@typescript-eslint/no-unused-vars" : [
49+ "error" ,
50+ { argsIgnorePattern : "^_" } ,
4351 ] ,
52+ "prettier/prettier" : "error" ,
4453 } ,
4554 } ,
46- srcdir : ' lib' ,
47- testdir : ' test' ,
55+ srcdir : " lib" ,
56+ testdir : " test" ,
4857 publishToPypi : {
49- distName : ' cdk-monitoring-constructs' ,
50- module : ' cdk_monitoring_constructs' ,
58+ distName : " cdk-monitoring-constructs" ,
59+ module : " cdk_monitoring_constructs" ,
5160 } ,
5261} ) ;
5362// these deps are still coming up, removing them manually
@@ -56,4 +65,15 @@ project.deps.removeDependency("@aws-cdk/core", DependencyType.RUNTIME);
5665project . deps . removeDependency ( "@aws-cdk/assert" ) ;
5766project . deps . removeDependency ( "@aws-cdk/assertions" ) ;
5867project . deps . removeDependency ( "monocdk" , DependencyType . RUNTIME ) ;
59- project . synth ( ) ;
68+ project . deps . removeDependency ( "constructs" , DependencyType . RUNTIME ) ;
69+ project . deps . addDependency ( `monocdk@${ CDK_VERSION } ` , DependencyType . DEVENV ) ;
70+ project . deps . addDependency (
71+ `constructs@${ CONSTRUCTS_VERSION } ` ,
72+ DependencyType . DEVENV
73+ ) ;
74+ project . deps . addDependency ( `monocdk@^${ CDK_VERSION } ` , DependencyType . PEER ) ;
75+ project . deps . addDependency (
76+ `constructs@^${ CONSTRUCTS_VERSION } ` ,
77+ DependencyType . PEER
78+ ) ;
79+ project . synth ( ) ;
0 commit comments