From 0e59a233edec5bae100e75b98021ca4a58c71d1f Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Sun, 26 Jan 2025 14:32:28 +0100 Subject: [PATCH] chore: remove vite-plugin-pwa dependency - its only used for typings - it creates problems with peerDependencies - just let it die --- pnpm-lock.yaml | 3 --- website/package.json | 1 - website/src/env.d.ts | 2 -- website/src/pwa.ts | 1 + website/tsconfig.json | 3 --- 5 files changed, 1 insertion(+), 9 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 29624333..e7fbe1aa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -763,9 +763,6 @@ importers: sharp: specifier: ^0.33.5 version: 0.33.5 - vite-plugin-pwa: - specifier: ^0.21.1 - version: 0.21.1(vite@6.0.11(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(terser@5.37.0)(yaml@2.7.0))(workbox-build@7.0.0(@types/babel__core@7.20.5))(workbox-window@7.3.0) workbox-window: specifier: ^7.3.0 version: 7.3.0 diff --git a/website/package.json b/website/package.json index 2670c66e..f7b725a3 100644 --- a/website/package.json +++ b/website/package.json @@ -72,7 +72,6 @@ "@vite-pwa/astro": "^0.5.0", "html-escaper": "^3.0.3", "sharp": "^0.33.5", - "vite-plugin-pwa": "^0.21.1", "workbox-window": "^7.3.0" } } diff --git a/website/src/env.d.ts b/website/src/env.d.ts index bd7aa94b..4138c53f 100644 --- a/website/src/env.d.ts +++ b/website/src/env.d.ts @@ -1,6 +1,4 @@ /// /// -/// -/// declare module 'date-fns'; diff --git a/website/src/pwa.ts b/website/src/pwa.ts index e86ddf3f..fae7d3df 100644 --- a/website/src/pwa.ts +++ b/website/src/pwa.ts @@ -1,3 +1,4 @@ +// @ts-ignore import { registerSW } from 'virtual:pwa-register'; registerSW({ diff --git a/website/tsconfig.json b/website/tsconfig.json index 90aa524f..2432224c 100644 --- a/website/tsconfig.json +++ b/website/tsconfig.json @@ -5,9 +5,6 @@ "skipLibCheck": true, "jsxImportSource": "react", "noImplicitAny": false, - "types": [ - "vite-plugin-pwa/client" - ], "baseUrl": ".", "paths": { "@components/*": ["src/components/*"],