@@ -127,6 +127,12 @@ class PublishCommand extends AmplifyCommand with GlobOptions {
127
127
static final _validationPreReleaseRegex = RegExp (
128
128
r'\* Packages dependent on a pre-release of another package should themselves be published as a pre-release version\.' ,
129
129
);
130
+ static final _validationPreReleaseSdkRegex = RegExp (
131
+ r'\* Packages with an SDK constraint on a pre-release of the Dart SDK should themselves be published as a pre-release version\.' ,
132
+ );
133
+ static final _validationNonDevOverridesRegex = RegExp (
134
+ r'\* Non-dev dependencies are overridden in pubspec_overrides\.yaml\.' ,
135
+ );
130
136
static final _validationErrorRegex = RegExp (r'^\s*\*' );
131
137
132
138
/// Publishes the package using `pub` .
@@ -161,7 +167,9 @@ class PublishCommand extends AmplifyCommand with GlobOptions {
161
167
.where (_validationErrorRegex.hasMatch)
162
168
.where ((line) => ! _validationConstraintRegex.hasMatch (line))
163
169
.where ((line) => ! _validationPreReleaseRegex.hasMatch (line))
164
- .where ((line) => ! _validationCheckedInFilesRegex.hasMatch (line));
170
+ .where ((line) => ! _validationCheckedInFilesRegex.hasMatch (line))
171
+ .where ((line) => ! _validationNonDevOverridesRegex.hasMatch (line))
172
+ .where ((line) => ! _validationPreReleaseSdkRegex.hasMatch (line));
165
173
if (failures.isNotEmpty) {
166
174
logger
167
175
..error (
@@ -268,7 +276,6 @@ Future<void> runBuildRunner(
268
276
'run' ,
269
277
'build_runner' ,
270
278
'build' ,
271
- if (verbose) '--verbose' ,
272
279
'--delete-conflicting-outputs' ,
273
280
],
274
281
workingDirectory: package.path,
0 commit comments