@@ -39,7 +39,6 @@ run().catch(e => {
39
39
40
40
async function run ( ) {
41
41
const startTime = Date . now ( ) ;
42
- const onlyBrowserVersions = process . argv . includes ( '--only-browser-versions' ) ;
43
42
44
43
/** @type {!Array<!Message> } */
45
44
const messages = [ ] ;
@@ -141,21 +140,19 @@ async function run() {
141
140
libversion : VERSION ,
142
141
chromiumVersion : browserVersions . chromium ,
143
142
firefoxVersion : browserVersions . firefox ,
144
- onlyBrowserVersions,
145
143
} ) ) ) ;
146
144
147
- if ( ! onlyBrowserVersions ) {
148
- messages . push ( ...preprocessor . autocorrectInvalidLinks ( PROJECT_DIR , mdSources , getRepositoryFiles ( ) ) ) ;
149
- for ( const source of mdSources . filter ( source => source . hasUpdatedText ( ) ) )
150
- messages . push ( Message . warning ( `WARN: updated ${ source . projectPath ( ) } ` ) ) ;
151
-
152
- const browser = await playwright . chromium . launch ( ) ;
153
- const page = await browser . newPage ( ) ;
154
- const checkPublicAPI = require ( './check_public_api' ) ;
155
- const jsSources = await Source . readdir ( path . join ( PROJECT_DIR , 'src' , 'client' ) , '' , [ ] ) ;
156
- messages . push ( ...await checkPublicAPI ( page , [ api ] , jsSources ) ) ;
157
- await browser . close ( ) ;
158
- }
145
+ messages . push ( ...preprocessor . autocorrectInvalidLinks ( PROJECT_DIR , mdSources , getRepositoryFiles ( ) ) ) ;
146
+
147
+ for ( const source of mdSources . filter ( source => source . hasUpdatedText ( ) ) )
148
+ messages . push ( Message . warning ( `WARN: updated ${ source . projectPath ( ) } ` ) ) ;
149
+
150
+ const browser = await playwright . chromium . launch ( ) ;
151
+ const page = await browser . newPage ( ) ;
152
+ const checkPublicAPI = require ( './check_public_api' ) ;
153
+ const jsSources = await Source . readdir ( path . join ( PROJECT_DIR , 'src' , 'client' ) , '' , [ ] ) ;
154
+ messages . push ( ...await checkPublicAPI ( page , [ api ] , jsSources ) ) ;
155
+ await browser . close ( ) ;
159
156
160
157
for ( const source of mdSources ) {
161
158
if ( ! source . hasUpdatedText ( ) )
@@ -193,7 +190,7 @@ async function run() {
193
190
console . log ( `${ errors . length } failures, ${ warnings . length } warnings.` ) ;
194
191
const runningTime = Date . now ( ) - startTime ;
195
192
console . log ( `DocLint Finished in ${ runningTime / 1000 } seconds` ) ;
196
- process . exit ( clearExit || onlyBrowserVersions ? 0 : 1 ) ;
193
+ process . exit ( clearExit ? 0 : 1 ) ;
197
194
}
198
195
199
196
async function getBrowserVersions ( ) {
0 commit comments