Skip to content

Commit 3fd5854

Browse files
authored
chore: Remove all extra dependencies from the learn app (supabase#42642)
This PR removes all extra deps from the `learn` app. The `learn` app was copy-pasted from `ui-library` so it had a lot of unneeded deps. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Streamlined project dependencies by removing unused packages, reducing the overall dependency surface for better performance and maintainability. * Enhanced build cleanup process to remove temporary TypeScript build artifacts alongside existing cleanup tasks. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 720c00e commit 3fd5854

2 files changed

Lines changed: 7 additions & 307 deletions

File tree

apps/learn/package.json

Lines changed: 4 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -12,105 +12,38 @@
1212
"lint": "eslint .",
1313
"lint:mdx": "supa-mdx-lint content --config ../../supa-mdx-lint.config.toml",
1414
"content:build": "contentlayer2 build",
15-
"clean": "rimraf node_modules .next .turbo",
15+
"clean": "rimraf node_modules .next .turbo tsconfig.tsbuildinfo",
1616
"typecheck": "contentlayer2 build && tsc --noEmit -p tsconfig.json"
1717
},
1818
"dependencies": {
19-
"@hookform/resolvers": "^3.1.1",
20-
"@monaco-editor/react": "^4.6.0",
21-
"@radix-ui/react-accordion": "*",
22-
"@radix-ui/react-alert-dialog": "*",
23-
"@radix-ui/react-aspect-ratio": "*",
24-
"@radix-ui/react-avatar": "*",
25-
"@radix-ui/react-checkbox": "*",
26-
"@radix-ui/react-collapsible": "*",
27-
"@radix-ui/react-context-menu": "*",
28-
"@radix-ui/react-dialog": "*",
29-
"@radix-ui/react-dropdown-menu": "*",
30-
"@radix-ui/react-hover-card": "*",
31-
"@radix-ui/react-label": "*",
32-
"@radix-ui/react-menubar": "*",
33-
"@radix-ui/react-navigation-menu": "*",
34-
"@radix-ui/react-popover": "*",
35-
"@radix-ui/react-progress": "*",
36-
"@radix-ui/react-radio-group": "*",
37-
"@radix-ui/react-scroll-area": "*",
38-
"@radix-ui/react-select": "*",
39-
"@radix-ui/react-separator": "*",
40-
"@radix-ui/react-slider": "*",
41-
"@radix-ui/react-slot": "*",
42-
"@radix-ui/react-switch": "*",
43-
"@radix-ui/react-tabs": "*",
44-
"@radix-ui/react-toast": "*",
45-
"@radix-ui/react-toggle": "*",
46-
"@radix-ui/react-toggle-group": "*",
47-
"@radix-ui/react-tooltip": "*",
48-
"@react-router/fs-routes": "^7.4.0",
49-
"@supabase/postgrest-js": "catalog:",
50-
"@supabase/supa-mdx-lint": "0.2.6-alpha",
51-
"@supabase/vue-blocks": "workspace:*",
52-
"@tanstack/react-query": "^5.83.0",
53-
"axios": "^1.12.0",
54-
"class-variance-authority": "*",
55-
"cmdk": "^1.0.0",
5619
"common": "workspace:*",
57-
"common-tags": "^1.8.2",
5820
"contentlayer2": "0.4.6",
59-
"eslint-config-supabase": "workspace:*",
6021
"framer-motion": "^11.0.3",
61-
"icons": "workspace:*",
6222
"jotai": "^2.8.0",
6323
"lucide-react": "*",
6424
"next": "catalog:",
6525
"next-contentlayer2": "0.4.6",
6626
"next-themes": "^0.3.0",
67-
"openai": "^5.9.0",
68-
"openapi-fetch": "0.12.4",
6927
"react": "catalog:",
70-
"react-docgen": "^7.0.3",
71-
"react-dom": "catalog:",
72-
"react-hook-form": "^7.45.0",
73-
"react-markdown": "^10.1.0",
7428
"react-wrap-balancer": "^1.1.0",
75-
"recharts": "^2.8.0",
7629
"rehype-autolink-headings": "^7.1.0",
7730
"rehype-pretty-code": "^0.9.0",
7831
"rehype-slug": "^6.0.0",
7932
"remark": "^14.0.3",
8033
"remark-code-import": "^1.2.0",
8134
"remark-gfm": "^4.0.0",
82-
"sonner": "^1.5.0",
8335
"ui": "workspace:*",
8436
"ui-patterns": "workspace:*",
85-
"unist-util-visit": "^5.0.0",
86-
"vaul": "^0.9.6",
87-
"zod": "catalog:"
37+
"unist-util-visit": "^5.0.0"
8838
},
8939
"devDependencies": {
90-
"@react-router/dev": "^7.1.5",
9140
"@shikijs/compat": "^1.1.7",
92-
"@supabase/ssr": "^0.7.0",
93-
"@supabase/supabase-js": "catalog:",
94-
"@tanstack/react-router": "^1.114.27",
95-
"@tanstack/react-start": "^1.114.25",
96-
"@types/common-tags": "^1.8.4",
97-
"@types/lodash": "^4.17.16",
41+
"@supabase/supa-mdx-lint": "0.3.1",
9842
"@types/react": "catalog:",
99-
"@types/react-dom": "catalog:",
10043
"config": "workspace:^",
101-
"dotenv": "^17.2.3",
102-
"lodash": "^4.17.21",
10344
"mdast-util-toc": "^6.1.1",
104-
"postcss": "^8.5.3",
105-
"react-dropzone": "^14.3.8",
106-
"react-router": "^7.5.2",
107-
"rimraf": "^4.1.3",
108-
"shadcn": "^3.0.0",
109-
"shiki": "^1.1.7",
110-
"tailwindcss": "catalog:",
11145
"tsconfig": "workspace:*",
11246
"tsx": "catalog:",
113-
"typescript": "catalog:",
114-
"vite": "catalog:"
47+
"shiki": "^1.1.7"
11548
}
11649
}

0 commit comments

Comments
 (0)