File tree 9 files changed +10
-15
lines changed
tools/@aws-cdk/pkglint/lib
9 files changed +10
-15
lines changed Original file line number Diff line number Diff line change 72
72
"stability" : " experimental" ,
73
73
"maturity" : " developer-preview" ,
74
74
"publishConfig" : {
75
- "tag" : " next "
75
+ "tag" : " latest "
76
76
}
77
77
}
Original file line number Diff line number Diff line change 99
99
},
100
100
"maturity" : " stable" ,
101
101
"publishConfig" : {
102
- "tag" : " next "
102
+ "tag" : " latest "
103
103
}
104
104
}
Original file line number Diff line number Diff line change 56
56
"stability" : " stable" ,
57
57
"maturity" : " stable" ,
58
58
"publishConfig" : {
59
- "tag" : " next "
59
+ "tag" : " latest "
60
60
}
61
61
}
Original file line number Diff line number Diff line change 157
157
"announce" : false
158
158
},
159
159
"publishConfig" : {
160
- "tag" : " next "
160
+ "tag" : " latest "
161
161
}
162
162
}
Original file line number Diff line number Diff line change 90
90
"announce" : false
91
91
},
92
92
"publishConfig" : {
93
- "tag" : " next "
93
+ "tag" : " latest "
94
94
}
95
95
}
Original file line number Diff line number Diff line change 120
120
"stability" : " stable" ,
121
121
"maturity" : " stable" ,
122
122
"publishConfig" : {
123
- "tag" : " next "
123
+ "tag" : " latest "
124
124
}
125
125
}
Original file line number Diff line number Diff line change 69
69
]
70
70
},
71
71
"publishConfig" : {
72
- "tag" : " next "
72
+ "tag" : " latest "
73
73
}
74
74
}
Original file line number Diff line number Diff line change 78
78
"stability" : " experimental" ,
79
79
"maturity" : " experimental" ,
80
80
"publishConfig" : {
81
- "tag" : " next "
81
+ "tag" : " latest "
82
82
}
83
83
}
Original file line number Diff line number Diff line change @@ -56,13 +56,8 @@ export class PublishConfigTagIsRequired extends ValidationRule {
56
56
public validate ( pkg : PackageJson ) : void {
57
57
if ( pkg . json . private ) { return ; }
58
58
59
- // While v2 is still under development, we publish all v2 packages with the 'next'
60
- // distribution tag, while still tagging all v1 packages as 'latest'.
61
- // There are two sets of exceptions:
62
- // 'aws-cdk-lib' (new v2 package) and all of the '*-alpha' modules, since they are also new packages for v2.
63
- const newV2Packages = [ 'aws-cdk-lib' ] ;
64
- const isNewPackageForV2 = newV2Packages . includes ( pkg . json . name ) || pkg . packageName . endsWith ( '-alpha' ) ;
65
- const defaultPublishTag = ( cdkMajorVersion ( ) === 2 && ! isNewPackageForV2 ) ? 'next' : 'latest' ;
59
+ // Now that v2 is GA, we publish all v2 packages with 'latest'; v1 packages get a 'latest-1' tag instead.
60
+ const defaultPublishTag = cdkMajorVersion ( ) === 2 ? 'latest' : 'latest-1' ;
66
61
67
62
if ( pkg . json . publishConfig ?. tag !== defaultPublishTag ) {
68
63
pkg . report ( {
You can’t perform that action at this time.
0 commit comments