Skip to content

Commit d62ac77

Browse files
committed
chore: update distribution tags for public packages
1 parent fa2ecc9 commit d62ac77

File tree

9 files changed

+10
-15
lines changed

9 files changed

+10
-15
lines changed

packages/@aws-cdk/assert/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@
7272
"stability": "experimental",
7373
"maturity": "developer-preview",
7474
"publishConfig": {
75-
"tag": "next"
75+
"tag": "latest"
7676
}
7777
}

packages/@aws-cdk/cloud-assembly-schema/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,6 @@
9999
},
100100
"maturity": "stable",
101101
"publishConfig": {
102-
"tag": "next"
102+
"tag": "latest"
103103
}
104104
}

packages/@aws-cdk/cloudformation-diff/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@
5656
"stability": "stable",
5757
"maturity": "stable",
5858
"publishConfig": {
59-
"tag": "next"
59+
"tag": "latest"
6060
}
6161
}

packages/@aws-cdk/cx-api/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,6 @@
157157
"announce": false
158158
},
159159
"publishConfig": {
160-
"tag": "next"
160+
"tag": "latest"
161161
}
162162
}

packages/@aws-cdk/region-info/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,6 @@
9090
"announce": false
9191
},
9292
"publishConfig": {
93-
"tag": "next"
93+
"tag": "latest"
9494
}
9595
}

packages/aws-cdk/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,6 @@
120120
"stability": "stable",
121121
"maturity": "stable",
122122
"publishConfig": {
123-
"tag": "next"
123+
"tag": "latest"
124124
}
125125
}

packages/awslint/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@
6969
]
7070
},
7171
"publishConfig": {
72-
"tag": "next"
72+
"tag": "latest"
7373
}
7474
}

packages/cdk-assets/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@
7878
"stability": "experimental",
7979
"maturity": "experimental",
8080
"publishConfig": {
81-
"tag": "next"
81+
"tag": "latest"
8282
}
8383
}

tools/@aws-cdk/pkglint/lib/rules.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,8 @@ export class PublishConfigTagIsRequired extends ValidationRule {
5656
public validate(pkg: PackageJson): void {
5757
if (pkg.json.private) { return; }
5858

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';
6661

6762
if (pkg.json.publishConfig?.tag !== defaultPublishTag) {
6863
pkg.report({

0 commit comments

Comments
 (0)