diff --git a/.gitignore b/.gitignore index d0442e7c..61f50bc4 100644 --- a/.gitignore +++ b/.gitignore @@ -25,10 +25,11 @@ coverage # Packages lock package-lock.json yarn.lock +pnpm-lock.yaml # umi .umi .umi-production .umi-test .env.local -.vscode \ No newline at end of file +.vscode diff --git a/docs/examples/sanFranciscoStreetTreeMap/index.tsx b/docs/examples/sanFranciscoStreetTreeMap/index.tsx index d077ac7f..c573b29d 100644 --- a/docs/examples/sanFranciscoStreetTreeMap/index.tsx +++ b/docs/examples/sanFranciscoStreetTreeMap/index.tsx @@ -1,7 +1,7 @@ import type { Scene } from '@antv/l7'; import { CustomControl, HeatmapLayer, LarkMap } from '@antv/larkmap'; import { Popover, Select, Slider, Typography } from 'antd'; -import { cloneDeep, get, set } from 'lodash'; +import { cloneDeep, get, set } from 'lodash-es'; import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { SketchPicker } from 'react-color'; import { heatmapCfg, mapCfg, scaleType, shapeOpt } from './config'; diff --git a/package.json b/package.json index f40a28cf..e205f091 100644 --- a/package.json +++ b/package.json @@ -26,8 +26,8 @@ "size": "limit-size", "build": "father build", "doctor": "father doctor", - "docs:build": "dumi build", - "docs:build-analyze": "ANALYZE=1 dumi build", + "docs:build": "export NODE_OPTIONS=--openssl-legacy-provider && dumi build", + "docs:build-analyze": "export NODE_OPTIONS=--openssl-legacy-provider && ANALYZE=1 dumi build", "docs:deploy": "gh-pages -d docs-dist", "deploy": "npm run docs:build && npm run docs:deploy", "ci": "run-s lint doctor build size", @@ -50,6 +50,7 @@ "@antv/l7": "^2.20.11", "@commitlint/cli": "^17.0.0", "@commitlint/config-conventional": "^17.0.0", + "@turf/turf": "^6.5.0", "@types/color": "^3.0.3", "@types/geojson": "^7946.0.8", "@types/jest": "^27.0.0",