From 3786c7b6d17c05ea874e5277f45934d99bced158 Mon Sep 17 00:00:00 2001 From: Aaron Date: Tue, 22 Oct 2024 15:32:34 -0500 Subject: [PATCH] Fix types --- packages/analytics/entrypoints/popup/main.ts | 2 +- packages/analytics/modules/analytics/types.ts | 2 +- packages/analytics/package.json | 2 +- packages/analytics/tsconfig.json | 4 +++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/analytics/entrypoints/popup/main.ts b/packages/analytics/entrypoints/popup/main.ts index 6245ad6a0..55a996bdf 100644 --- a/packages/analytics/entrypoints/popup/main.ts +++ b/packages/analytics/entrypoints/popup/main.ts @@ -1,4 +1,4 @@ -import { analytics } from '@/modules/analytics/client'; +import { analytics } from '#analytics'; declare const enabledCheckbox: HTMLInputElement; diff --git a/packages/analytics/modules/analytics/types.ts b/packages/analytics/modules/analytics/types.ts index c93fc9714..1278b735c 100644 --- a/packages/analytics/modules/analytics/types.ts +++ b/packages/analytics/modules/analytics/types.ts @@ -56,7 +56,7 @@ export type AnalyticsProvider = ( }; export interface BaseAnalyticsEvent { - meta: EventMetadata; + meta: AnalyticsEventMetadata; user: { id: string; properties: Record; diff --git a/packages/analytics/package.json b/packages/analytics/package.json index 588768235..d4f648ecb 100644 --- a/packages/analytics/package.json +++ b/packages/analytics/package.json @@ -4,7 +4,7 @@ "description": "Add analytics to your web extension", "repository": { "type": "git", - "url": "https://github.com/wxt-dev/wxt.git", + "url": "git+https://github.com/wxt-dev/wxt.git", "directory": "packages/analytics" }, "license": "MIT", diff --git a/packages/analytics/tsconfig.json b/packages/analytics/tsconfig.json index 4c52c24a0..9d173da1c 100644 --- a/packages/analytics/tsconfig.json +++ b/packages/analytics/tsconfig.json @@ -1,7 +1,9 @@ { "extends": ["../../tsconfig.base.json", "./.wxt/tsconfig.json"], "compilerOptions": { - "paths": {}, + "paths": { + "#analytics": ["./.wxt/analytics/index.ts"] + }, "types": ["chrome"] }, "exclude": ["node_modules", "dist"]