<NME> prepare-israeli-bank-scrapers-core.js
<BEF> const fs = require('fs');
const path = require('path');
const checkIfCoreVariation = require('./core-utils');

function updatePackageJson() {
  const packagePath = path.join(__dirname, '..', 'package.json');
  // eslint-disable-next-line import/no-dynamic-require,global-require
  const json = require(packagePath);

  json.dependencies['puppeteer-core'] = json.dependencies.puppeteer;
  delete json.dependencies.puppeteer;
  json.name = 'israeli-bank-scrapers-core';
  fs.writeFileSync(packagePath, JSON.stringify(json, null, '  '));

  console.log('change package.json name to \'israeli-bank-scrapers-core\' and use \'puppeteer-core\'');
}

(function () {
  if (checkIfCoreVariation()) {
    console.log('library is already in core variation');
    process.exit(1);
    return;
  }

  updatePackageJson();
}());

<MSG> Merge pull request #520 from eshaham/fix-518-puppeteer

use proper typescript support in core version
<DFF> @@ -1,6 +1,7 @@
 const fs = require('fs');
 const path = require('path');
 const checkIfCoreVariation = require('./core-utils');
+const transformImports = require('./jscodeshift');
 
 function updatePackageJson() {
   const packagePath = path.join(__dirname, '..', 'package.json');
@@ -9,13 +10,16 @@ function updatePackageJson() {
 
   json.dependencies['puppeteer-core'] = json.dependencies.puppeteer;
   delete json.dependencies.puppeteer;
+
+  json.devDependencies['@types/puppeteer-core'] = '*';
+  delete json.devDependencies['@types/puppeteer'];
   json.name = 'israeli-bank-scrapers-core';
   fs.writeFileSync(packagePath, JSON.stringify(json, null, '  '));
 
   console.log('change package.json name to \'israeli-bank-scrapers-core\' and use \'puppeteer-core\'');
 }
 
-(function () {
+(async function () {
   if (checkIfCoreVariation()) {
     console.log('library is already in core variation');
     process.exit(1);
@@ -23,4 +27,5 @@ function updatePackageJson() {
   }
 
   updatePackageJson();
+  await transformImports();
 }());

Merge pull request #520 from eshaham/fix-518-puppeteer