Skip to content

Commit

Permalink
move fix-dependency script to bootstrap
Browse files Browse the repository at this point in the history
Signed-off-by: Shan He <heshan0131@gmail.com>
  • Loading branch information
heshan0131 committed Aug 21, 2024
1 parent e1da063 commit 8ba299e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions babel-register.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});
});
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 8ba299e

Please sign in to comment.