function updateFiles(filesList, versions) {
	filesList.forEach(ppath => {
		// eslint-disable-next-line global-require
		const packageJSON = require(ppath);
		if (!program.quiet) {
			console.log(`=== check ${packageJSON.name} ===`);
		}

		Object.keys(versions).forEach(dep => {
			checkAll(versions, packageJSON, dep);
		});
		if (packageJSON.modified || program.force) {
			delete packageJSON.modified;
			save(ppath, `${JSON.stringify(packageJSON, null, 2)}\n`);
			const yarnLock = path.join(path.dirname(ppath), 'yarn.lock');
			if (fs.existsSync(yarnLock)) {
				if (!program.quite) {
					console.log(`you have to update ${yarnLock} yourself`);
				}
			}
		}
	});
}
/**
 * for each file three steps
 * - load the file
 * - transform dependencies versions
 * - write new dependencies version into file
 * @param {Array<String>} filesList
 * @param {Object<dependency, version>} versions
 */
for each file three steps
- load the file
- transform dependencies versions
- write new dependencies version into file
@param {Array} filesList
@param {Object} versions
for each file three steps - load the file - transform dependencies versions - write new dependencies version into file @param { Array } filesList @param { Object } versions
function updateFiles(filesList, versions) {
	filesList.forEach(ppath => {
		const packageJSON = require(ppath);
		if (!program.quiet) {
			console.log(`=== check ${packageJSON.name} ===`);
		}
		Object.keys(versions).forEach(dep => {
			checkAll(versions, packageJSON, dep);
		});
		if (packageJSON.modified || program.force) {
			delete packageJSON.modified;
			save(ppath, `${JSON.stringify(packageJSON, null, 2)}\n`);
			const yarnLock = path.join(path.dirname(ppath), 'yarn.lock');
			if (fs.existsSync(yarnLock)) {
				if (!program.quite) {
					console.log(`you have to update ${yarnLock} yourself`);
				}
			}
		}
	});
}
function updateFiles ( filesList , versions ) { filesList . forEach ( ppath => { const packageJSON = require ( ppath ) ; if ( ! program . quiet ) { console . log ( ` ${ packageJSON . name } ` ) ; } Object . keys ( versions ) . forEach ( dep => { checkAll ( versions , packageJSON , dep ) ; } ) ; if ( packageJSON . modified || program . force ) { delete packageJSON . modified ; save ( ppath , ` ${ JSON . stringify ( packageJSON , null , 2 ) } \n ` ) ; const yarnLock = path . join ( path . dirname ( ppath ) , 'yarn.lock' ) ; if ( fs . existsSync ( yarnLock ) ) { if ( ! program . quite ) { console . log ( ` ${ yarnLock } ` ) ; } } } } ) ; }
for each file three steps
 - load the file
 - transform dependencies versions
 - write new dependencies version into file
 @param {Array<String>} filesList
 @param {Object<dependency, version>} versions
for each file three steps - load the file - transform dependencies versions - write new dependencies version into file @param { Array<String > } filesList @param { Object<dependency version > } versions
// eslint-disable-next-line global-require