From 8ba299e02f828a2ed5184617e5f9dd2e5cab85fc Mon Sep 17 00:00:00 2001 From: Shan He Date: Tue, 20 Aug 2024 23:23:58 -0700 Subject: [PATCH] move fix-dependency script to bootstrap Signed-off-by: Shan He --- babel-register.js | 8 ++++---- package.json | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/babel-register.js b/babel-register.js index 94080dbdce4..c2e096eaf6a 100644 --- a/babel-register.js +++ b/babel-register.js @@ -28,17 +28,17 @@ require('@babel/polyfill'); var path = require('path'); var glob = require('glob'); -// Requiring mapbox-gl here prevents polyfilling errors during tests. +// Requiring mapbox-gl here prevents polyfill errors during tests. require('mapbox-gl'); // eslint-disable-next-line func-names -process.argv.slice(2).forEach(function(arg) { +process.argv.slice(2).forEach(function (arg) { // eslint-disable-next-line func-names - glob(arg, function(er, files) { + glob(arg, function (er, files) { if (er) throw er; // eslint-disable-next-line func-names - files.forEach(function(file) { + files.forEach(function (file) { require(path.resolve(process.cwd(), file)); }); }); diff --git a/package.json b/package.json index fdc22ec521e..ddf5c063572 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "url": "https://github.com/keplergl/kepler.gl.git" }, "scripts": { - "bootstrap": "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true yarn", + "bootstrap": "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true yarn install && yarn fix-dependencies", "install:example": "NODE_OPTIONS=--openssl-legacy-provider cd examples/demo-app && yarn", "install:web": "yarn install:example && cd website && yarn", "install-and-start": "node ./scripts/install-and-start", @@ -77,7 +77,7 @@ "analyze:bundle": "NODE_OPTIONS=--openssl-legacy-provider webpack --config ./webpack/bundle.js --progress --env.prod", "check-licence": "babel-node ./scripts/license-header/bin --license ./FILE-HEADER --dry", "add-licence": "babel-node ./scripts/license-header/bin --license ./FILE-HEADER", - "prepublish": "yarn fix-dependencies && yarn workspaces run stab && yarn workspaces run prepublish && yarn add-licence && yarn build:umd && yarn build:types", + "prepublishOnly": "yarn workspaces run stab && yarn workspaces run prepublish && yarn add-licence && yarn build:umd && yarn build:types", "docs": "babel-node ./scripts/documentation.js", "typedoc": "typedoc --theme markdown --out typedoc --inputFiles ./src/reducers --inputFiles ./src/actions --excludeExternals --excludeNotExported --excludePrivate", "example-version": "babel-node ./scripts/edit-version.js",