From baf7bd020a2fe9c3cd0daceecfa67be553e34784 Mon Sep 17 00:00:00 2001 From: Catalin Rizea Date: Mon, 4 Mar 2024 13:37:22 +0200 Subject: [PATCH] geolib import fix for correct tree shaking --- package.json | 4 ++-- src/utils/tools/getBoundingBox.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a2235ea..202d53d 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ "db:studio": "drizzle-kit studio --config=drizzle.config.ts --port=3001", "db:speedtest:algolia": "bun ./src/utils/speedTests/algoliaGeoTest.ts", "db:speedtest:pscale": "bun ./src/utils/speedTests/pscaleGeoTest.ts", - "dev": "bun --hot index.ts", - "debug": "bun --inspect index.ts", + "dev": "dotenv -e .env.dev -- bun --hot index.ts", + "debug": "dotenv -e .env.dev -- bun --inspect index.ts", "lint": "eslint \"src/**/*.{ts,tsx}\"", "move:up": "bun ./src/utils/tools/moveEnv.ts move up", "move:down": "bun ./src/utils/tools/moveEnv.ts move down", diff --git a/src/utils/tools/getBoundingBox.ts b/src/utils/tools/getBoundingBox.ts index 8a8a2ee..f60af63 100644 --- a/src/utils/tools/getBoundingBox.ts +++ b/src/utils/tools/getBoundingBox.ts @@ -1,4 +1,4 @@ -import getBoundsOfDistance from 'geolib/es/getBoundsOfDistance'; +import { getBoundsOfDistance } from 'geolib'; import { Point } from '@/types';