<NME> update-puppeteer-config.js
<BEF> const fs = require('fs');
const path = require('path');
const checkIfCoreVariation = require('./core-utils');

function getPuppeteerChromiumVersion() {
  const puppeteerLibrary = checkIfCoreVariation() ? 'puppeteer-core' : 'puppeteer';
  const puppeteerPath = path.dirname(require.resolve(puppeteerLibrary));
  const revisionFilePath = path.join(puppeteerPath, 'lib/cjs/revisions.js');
  // eslint-disable-next-line import/no-dynamic-require,global-require
  const revisionRaw = fs.readFileSync(revisionFilePath, 'utf-8');
  const [, revisionNumber] = revisionRaw.match(/chromium: ['"`](.+?)['"`][,]/);
  return revisionNumber;
}

(function updatePuppeteerConfiguration() {
  console.log('extract puppeteer chromium version from module \'puppeteer|pupetter-core\'');

  const chromiumRevision = getPuppeteerChromiumVersion();
  const configPath = path.join(__dirname, '../src/puppeteer-config.json');
  // eslint-disable-next-line global-require,import/no-dynamic-require
  const configJson = require(configPath);
  configJson.chromiumRevision = chromiumRevision;

  fs.writeFileSync(configPath, JSON.stringify(configJson, null, '  '));

  console.log(`update 'src/puppeteer-config.json' file with puppeteer chroumium revision '${chromiumRevision}'`);
}());

<MSG> fix revision path

<DFF> @@ -5,7 +5,7 @@ const checkIfCoreVariation = require('./core-utils');
 function getPuppeteerChromiumVersion() {
   const puppeteerLibrary = checkIfCoreVariation() ? 'puppeteer-core' : 'puppeteer';
   const puppeteerPath = path.dirname(require.resolve(puppeteerLibrary));
-  const revisionFilePath = path.join(puppeteerPath, 'lib/cjs/revisions.js');
+  const revisionFilePath = path.join(puppeteerPath, 'lib/cjs/puppeteer/revisions.js');
   // eslint-disable-next-line import/no-dynamic-require,global-require
   const revisionRaw = fs.readFileSync(revisionFilePath, 'utf-8');
   const [, revisionNumber] = revisionRaw.match(/chromium: ['"`](.+?)['"`][,]/);

fix revision path