@@ -332,31 +332,6 @@ For more information, see https://webpack.js.org/api/cli/.`);
332332 const statsString = stats . toString ( outputOptions ) ;
333333 const delimiter = outputOptions . buildDelimiter ? `${ outputOptions . buildDelimiter } \n` : "" ;
334334 if ( statsString ) stdout . write ( `${ statsString } \n${ delimiter } ` ) ;
335-
336- /**
337- * Show a hint to donate to our Opencollective
338- * once a week, only on Monday
339- */
340- const openCollectivePath = __dirname + "/opencollective.js" ;
341- const MONDAY = 1 ;
342- const SIX_DAYS = 518400000 ;
343- const now = new Date ( ) ;
344- if ( now . getDay ( ) === MONDAY ) {
345- const { access, constants, statSync, utimesSync } = require ( "fs" ) ;
346- const stat = statSync ( openCollectivePath ) ;
347- const lastPrint = stat . atime ;
348- const fileOwnerId = stat . uid ;
349- const lastPrintTS = new Date ( lastPrint ) . getTime ( ) ;
350- const timeSinceLastPrint = now . getTime ( ) - lastPrintTS ;
351- if ( timeSinceLastPrint > SIX_DAYS ) {
352- require ( openCollectivePath ) ;
353- // On windows we need to manually update the atime
354- // Updating utime requires process owner is as same as file owner
355- access ( openCollectivePath , constants . W_OK , e => {
356- if ( ! e && fileOwnerId === process . getuid ( ) ) utimesSync ( openCollectivePath , now , now ) ;
357- } ) ;
358- }
359- }
360335 }
361336 if ( ! options . watch && stats . hasErrors ( ) ) {
362337 process . exitCode = 2 ;
0 commit comments