From a837894f6d5276badfb235cd658524ff53ecea8e Mon Sep 17 00:00:00 2001 From: William Oldham Date: Sat, 9 Dec 2023 15:37:37 +0000 Subject: [PATCH] Move type-fest to a dev dependency and update import to import type --- package.json | 2 +- pnpm-lock.yaml | 8 ++++---- src/components/layout/Footer.tsx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index add69b46..c3b3b910 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,6 @@ "node-forge": "^1.3.1", "ofetch": "^1.0.0", "react": "^17.0.2", - "type-fest": "^4.3.3", "react-dom": "^17.0.2", "react-ga4": "^2.0.0", "react-google-recaptcha-v3": "^1.10.1", @@ -84,6 +83,7 @@ "@typescript-eslint/eslint-plugin": "^5.13.0", "@typescript-eslint/parser": "^5.13.0", "@vitejs/plugin-react": "^3.1.0", + "type-fest": "^4.3.3", "autoprefixer": "^10.4.13", "cross-env": "^7.0.3", "eslint": "^8.10.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 924ee5d0..ffe23820 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -110,9 +110,6 @@ dependencies: subsrt-ts: specifier: ^2.1.1 version: 2.1.1 - type-fest: - specifier: ^4.3.3 - version: 4.3.3 zustand: specifier: ^4.3.9 version: 4.4.1(@types/react@17.0.65)(immer@10.0.2)(react@17.0.2) @@ -241,6 +238,9 @@ devDependencies: tailwindcss-themer: specifier: ^3.1.0 version: 3.1.0(tailwindcss@3.3.3) + type-fest: + specifier: ^4.3.3 + version: 4.3.3 typescript: specifier: ^4.6.4 version: 4.9.5 @@ -6056,7 +6056,7 @@ packages: /type-fest@4.3.3: resolution: {integrity: sha512-bxhiFii6BBv6UiSDq7uKTMyADT9unXEl3ydGefndVLxFeB44LRbT4K7OJGDYSyDrKnklCC1Pre68qT2wbUl2Aw==} engines: {node: '>=16'} - dev: false + dev: true /typed-array-buffer@1.0.0: resolution: {integrity: sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==} diff --git a/src/components/layout/Footer.tsx b/src/components/layout/Footer.tsx index 0f80d7a0..e51c08cf 100644 --- a/src/components/layout/Footer.tsx +++ b/src/components/layout/Footer.tsx @@ -1,7 +1,7 @@ import { useCallback } from "react"; import { useTranslation } from "react-i18next"; import { useHistory } from "react-router-dom"; -import { RequireExactlyOne } from "type-fest"; +import type { RequireExactlyOne } from "type-fest"; import { Icon, Icons } from "@/components/Icon"; import { BrandPill } from "@/components/layout/BrandPill";