From d5a7ba96a9ddf5bbd832cf7bd3b732feda31d34f Mon Sep 17 00:00:00 2001 From: Param Date: Sun, 12 Jul 2026 22:01:19 +0530 Subject: [PATCH] build: add check-types script to all packages Fixes #1249 --- apps/browser-extension/package.json | 66 +++++++++--------- apps/mcp/package.json | 8 ++- apps/memory-graph-playground/package.json | 8 ++- apps/raycast-extension/package.json | 3 +- apps/web/package.json | 3 +- packages/hooks/package.json | 9 ++- packages/lib/package.json | 47 +++++++------ packages/ui/package.json | 85 ++++++++++++----------- packages/validation/package.json | 11 +-- 9 files changed, 131 insertions(+), 109 deletions(-) diff --git a/apps/browser-extension/package.json b/apps/browser-extension/package.json index f40426a8..52af7189 100644 --- a/apps/browser-extension/package.json +++ b/apps/browser-extension/package.json @@ -1,35 +1,35 @@ { - "name": "supermemory-browser-extension", - "description": "Browser extension for the supermemory app", - "private": true, - "version": "0.0.1", - "type": "module", - "scripts": { - "dev": "wxt --port 3001", - "dev:firefox": "wxt -b firefox", - "build": "wxt build", - "build:firefox": "wxt build -b firefox", - "zip": "wxt zip", - "zip:firefox": "wxt zip -b firefox", - "compile": "tsc --noEmit", - "postinstall": "wxt prepare" - }, - "dependencies": { - "@tailwindcss/vite": "^4.1.12", - "@tanstack/react-query": "^5.81.2", - "posthog-js": "^1.261.7", - "react": "19.2.2", - "react-dom": "19.2.2", - "tailwindcss": "^4.1.12", - "turndown": "^7.1.3" - }, - "devDependencies": { - "@types/chrome": "^0.1.4", - "@types/react": "^19.1.2", - "@types/react-dom": "^19.1.3", - "@types/turndown": "^5.0.5", - "@wxt-dev/module-react": "^1.1.3", - "typescript": "^5.8.3", - "wxt": "^0.20.6" - } + "name": "supermemory-browser-extension", + "description": "Browser extension for the supermemory app", + "private": true, + "version": "0.0.1", + "type": "module", + "scripts": { + "dev": "wxt --port 3001", + "dev:firefox": "wxt -b firefox", + "build": "wxt build", + "build:firefox": "wxt build -b firefox", + "zip": "wxt zip", + "zip:firefox": "wxt zip -b firefox", + "postinstall": "wxt prepare", + "check-types": "tsc --noEmit" + }, + "dependencies": { + "@tailwindcss/vite": "^4.1.12", + "@tanstack/react-query": "^5.81.2", + "posthog-js": "^1.261.7", + "react": "19.2.2", + "react-dom": "19.2.2", + "tailwindcss": "^4.1.12", + "turndown": "^7.1.3" + }, + "devDependencies": { + "@types/chrome": "^0.1.4", + "@types/react": "^19.1.2", + "@types/react-dom": "^19.1.3", + "@types/turndown": "^5.0.5", + "@wxt-dev/module-react": "^1.1.3", + "typescript": "^5.8.3", + "wxt": "^0.20.6" + } } diff --git a/apps/mcp/package.json b/apps/mcp/package.json index 2def592a..f1cf5edc 100644 --- a/apps/mcp/package.json +++ b/apps/mcp/package.json @@ -2,14 +2,18 @@ "name": "supermemory-mcp", "version": "4.0.0", "type": "module", - "portless": { "name": "mcp.dev.supermemory", "script": "dev:app" }, + "portless": { + "name": "mcp.dev.supermemory", + "script": "dev:app" + }, "scripts": { "build:ui": "vite build", "dev": "portless", "dev:app": "vite build && wrangler dev --port ${PORT:-8788}", "deploy": "vite build && wrangler deploy --minify", "cf-typegen": "wrangler types --env-interface CloudflareBindings", - "test:e2e": "vitest run" + "test:e2e": "vitest run", + "check-types": "tsc --noEmit" }, "dependencies": { "@cloudflare/workers-oauth-provider": "^0.2.2", diff --git a/apps/memory-graph-playground/package.json b/apps/memory-graph-playground/package.json index 67e31a0b..451ef8e2 100644 --- a/apps/memory-graph-playground/package.json +++ b/apps/memory-graph-playground/package.json @@ -2,12 +2,16 @@ "name": "memory-graph-playground", "version": "0.1.0", "private": true, - "portless": { "name": "graph.dev.supermemory", "script": "dev:app" }, + "portless": { + "name": "graph.dev.supermemory", + "script": "dev:app" + }, "scripts": { "dev": "portless", "dev:app": "next dev --port ${PORT:-3004}", "build": "next build", - "start": "next start" + "start": "next start", + "check-types": "tsc --noEmit" }, "dependencies": { "@supermemory/memory-graph": "workspace:*", diff --git a/apps/raycast-extension/package.json b/apps/raycast-extension/package.json index ed821577..367a9596 100644 --- a/apps/raycast-extension/package.json +++ b/apps/raycast-extension/package.json @@ -69,6 +69,7 @@ "fix-lint": "ray lint --fix", "lint": "ray lint", "prepublishOnly": "echo \"\\n\\nIt seems like you are trying to publish the Raycast extension to npm.\\n\\nIf you did intend to publish it to npm, remove the \\`prepublishOnly\\` script and rerun \\`npm publish\\` again.\\nIf you wanted to publish it to the Raycast Store instead, use \\`npm run publish\\` instead.\\n\\n\" && exit 1", - "publish": "npx @raycast/api@latest publish" + "publish": "npx @raycast/api@latest publish", + "check-types": "tsc --noEmit" } } diff --git a/apps/web/package.json b/apps/web/package.json index cddbcd0a..cfc1e754 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -17,7 +17,8 @@ "upload": "opennextjs-cloudflare build && opennextjs-cloudflare upload", "cf-typegen": "wrangler types --env-interface CloudflareEnv cloudflare-env.d.ts", "sentry:sourcemaps": "_SENTRY_RELEASE=$(sentry-cli releases propose-version) && sentry-cli releases new $_SENTRY_RELEASE --org=supermemory --project=consumer-app && sentry-cli sourcemaps upload --org=supermemory --project=consumer-app --release=$_SENTRY_RELEASE --strip-prefix 'dist/..' dist", - "postdeploy": "bun run sentry:sourcemaps" + "postdeploy": "bun run sentry:sourcemaps", + "check-types": "tsc --noEmit" }, "dependencies": { "@ai-sdk/google": "^3.0.64", diff --git a/packages/hooks/package.json b/packages/hooks/package.json index 63a7d0e5..b722b763 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -1,5 +1,8 @@ { - "name": "@repo/hooks", - "version": "0.0.0", - "private": true + "name": "@repo/hooks", + "version": "0.0.0", + "private": true, + "scripts": { + "check-types": "tsc --noEmit" + } } diff --git a/packages/lib/package.json b/packages/lib/package.json index 99b9d262..7061f562 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -1,24 +1,27 @@ { - "name": "@repo/lib", - "version": "0.0.0", - "private": true, - "type": "module", - "exports": { - "./*": "./*" - }, - "dependencies": { - "@ai-sdk/anthropic": "^1.2.12", - "@ai-sdk/google": "^1.2.22", - "@ai-sdk/groq": "^1.2.9", - "@better-fetch/fetch": "^1.1.18", - "@tanstack/react-query": "^5.90.14", - "@tanstack/react-query-devtools": "^5.84.2", - "ai-gateway-provider": "^0.0.11", - "better-auth": "1.3.3", - "clsx": "^2.1.1", - "posthog-js": "^1.336.0", - "sonner": "^2.0.5", - "tailwind-merge": "^3.3.1", - "zod": "^3.25.76" - } + "name": "@repo/lib", + "version": "0.0.0", + "private": true, + "type": "module", + "exports": { + "./*": "./*" + }, + "dependencies": { + "@ai-sdk/anthropic": "^1.2.12", + "@ai-sdk/google": "^1.2.22", + "@ai-sdk/groq": "^1.2.9", + "@better-fetch/fetch": "^1.1.18", + "@tanstack/react-query": "^5.90.14", + "@tanstack/react-query-devtools": "^5.84.2", + "ai-gateway-provider": "^0.0.11", + "better-auth": "1.3.3", + "clsx": "^2.1.1", + "posthog-js": "^1.336.0", + "sonner": "^2.0.5", + "tailwind-merge": "^3.3.1", + "zod": "^3.25.76" + }, + "scripts": { + "check-types": "tsc --noEmit" + } } diff --git a/packages/ui/package.json b/packages/ui/package.json index 2a504670..4faba523 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,43 +1,46 @@ { - "name": "@repo/ui", - "version": "0.0.0", - "private": true, - "type": "module", - "exports": { - "./*": "./*" - }, - "dependencies": { - "@pixi/react": "^8.0.3", - "@radix-ui/react-accordion": "^1.2.11", - "@radix-ui/react-alert-dialog": "^1.1.14", - "@radix-ui/react-avatar": "^1.1.10", - "@radix-ui/react-checkbox": "^1.3.2", - "@radix-ui/react-collapsible": "^1.1.11", - "@radix-ui/react-dialog": "^1.1.14", - "@radix-ui/react-dropdown-menu": "^2.1.15", - "@radix-ui/react-hover-card": "^1.1.15", - "@radix-ui/react-label": "^2.1.7", - "@radix-ui/react-popover": "^1.1.14", - "@radix-ui/react-progress": "^1.1.7", - "@radix-ui/react-scroll-area": "^1.2.9", - "@radix-ui/react-select": "^2.2.5", - "@radix-ui/react-separator": "^1.1.7", - "@radix-ui/react-slot": "^1.2.3", - "@radix-ui/react-tabs": "^1.1.12", - "@radix-ui/react-toggle": "^1.1.9", - "@radix-ui/react-toggle-group": "^1.1.10", - "@radix-ui/react-tooltip": "^1.2.7", - "class-variance-authority": "^0.7.1", - "cmdk": "^1.1.1", - "embla-carousel-react": "^8.6.0", - "lucide-react": "^0.525.0", - "motion": "^12.26.2", - "next-themes": "^0.4.6", - "pixi.js": "^8.12.0", - "recharts": "2.15.4", - "sonner": "^2.0.6", - "tailwindcss": "^4.1.11", - "tw-animate-css": "^1.4.0", - "vaul": "^1.1.2" - } + "name": "@repo/ui", + "version": "0.0.0", + "private": true, + "type": "module", + "exports": { + "./*": "./*" + }, + "dependencies": { + "@pixi/react": "^8.0.3", + "@radix-ui/react-accordion": "^1.2.11", + "@radix-ui/react-alert-dialog": "^1.1.14", + "@radix-ui/react-avatar": "^1.1.10", + "@radix-ui/react-checkbox": "^1.3.2", + "@radix-ui/react-collapsible": "^1.1.11", + "@radix-ui/react-dialog": "^1.1.14", + "@radix-ui/react-dropdown-menu": "^2.1.15", + "@radix-ui/react-hover-card": "^1.1.15", + "@radix-ui/react-label": "^2.1.7", + "@radix-ui/react-popover": "^1.1.14", + "@radix-ui/react-progress": "^1.1.7", + "@radix-ui/react-scroll-area": "^1.2.9", + "@radix-ui/react-select": "^2.2.5", + "@radix-ui/react-separator": "^1.1.7", + "@radix-ui/react-slot": "^1.2.3", + "@radix-ui/react-tabs": "^1.1.12", + "@radix-ui/react-toggle": "^1.1.9", + "@radix-ui/react-toggle-group": "^1.1.10", + "@radix-ui/react-tooltip": "^1.2.7", + "class-variance-authority": "^0.7.1", + "cmdk": "^1.1.1", + "embla-carousel-react": "^8.6.0", + "lucide-react": "^0.525.0", + "motion": "^12.26.2", + "next-themes": "^0.4.6", + "pixi.js": "^8.12.0", + "recharts": "2.15.4", + "sonner": "^2.0.6", + "tailwindcss": "^4.1.11", + "tw-animate-css": "^1.4.0", + "vaul": "^1.1.2" + }, + "scripts": { + "check-types": "tsc --noEmit" + } } diff --git a/packages/validation/package.json b/packages/validation/package.json index ea9f5fc1..1e0f191a 100644 --- a/packages/validation/package.json +++ b/packages/validation/package.json @@ -1,6 +1,9 @@ { - "name": "@repo/validation", - "version": "0.0.0", - "private": true, - "type": "module" + "name": "@repo/validation", + "version": "0.0.0", + "private": true, + "type": "module", + "scripts": { + "check-types": "tsc --noEmit" + } }