|
3 | 3 | */ |
4 | 4 | export const VERSION_REGISTRY: Record<string, string> = { |
5 | 5 | // Runtime |
6 | | - 'vite': '^6.0.7', |
| 6 | + vite: '^6.0.7', |
7 | 7 | '@vitejs/plugin-react': '^5.0.0', |
8 | | - 'next': '^16.1.6', |
9 | | - 'react': '^19.0.0', |
| 8 | + next: '^16.1.6', |
| 9 | + react: '^19.0.0', |
10 | 10 | 'react-dom': '^19.0.0', |
11 | 11 |
|
12 | 12 | // Language |
13 | | - 'typescript': '^5.7.2', |
| 13 | + typescript: '^5.7.2', |
14 | 14 |
|
15 | 15 | // Styling |
16 | | - 'tailwindcss': '^4.0.0', |
| 16 | + tailwindcss: '^4.0.0', |
17 | 17 | '@tailwindcss/postcss': '^4.0.0', |
18 | | - 'postcss': '^8.4.49', |
19 | | - 'autoprefixer': '^10.4.20', |
| 18 | + postcss: '^8.4.49', |
| 19 | + autoprefixer: '^10.4.20', |
20 | 20 | 'styled-components': '^6.1.14', |
21 | 21 |
|
22 | 22 | // State Management |
23 | 23 | '@reduxjs/toolkit': '^2.5.0', |
24 | 24 | 'react-redux': '^9.2.0', |
25 | | - 'zustand': '^5.0.3', |
| 25 | + zustand: '^5.0.3', |
26 | 26 |
|
27 | 27 | // Data Fetching |
28 | 28 | '@tanstack/react-query': '^5.62.10', |
29 | 29 | '@tanstack/react-query-devtools': '^5.62.10', |
30 | 30 |
|
31 | 31 | // Testing - Unit |
32 | | - 'vitest': '^2.1.8', |
| 32 | + vitest: '^2.1.8', |
33 | 33 | '@vitest/ui': '^2.1.8', |
34 | | - 'jest': '^29.7.0', |
| 34 | + jest: '^29.7.0', |
35 | 35 |
|
36 | 36 | // Testing - Component |
37 | 37 | '@testing-library/react': '^16.1.0', |
38 | 38 | '@testing-library/jest-dom': '^6.6.3', |
39 | 39 | '@testing-library/user-event': '^14.5.2', |
40 | | - 'jsdom': '^25.0.1', |
| 40 | + jsdom: '^25.0.1', |
41 | 41 |
|
42 | 42 | // Testing - E2E |
43 | | - 'playwright': '^1.49.1', |
| 43 | + playwright: '^1.49.1', |
44 | 44 | '@playwright/test': '^1.49.1', |
45 | | - 'cypress': '^15.0.0', |
| 45 | + cypress: '^15.0.0', |
46 | 46 |
|
47 | 47 | // Formatting |
48 | | - 'prettier': '^3.4.2', |
| 48 | + prettier: '^3.4.2', |
49 | 49 |
|
50 | 50 | // Build & Dev |
51 | | - 'tsx': '^4.19.2', |
| 51 | + tsx: '^4.19.2', |
52 | 52 |
|
53 | 53 | // Type definitions |
54 | 54 | '@types/react': '^19.0.6', |
@@ -125,9 +125,7 @@ export class DependencyResolver { |
125 | 125 | */ |
126 | 126 | private pinVersion(version: string): string { |
127 | 127 | // Check if version is in registry |
128 | | - const pkg = Object.keys(VERSION_REGISTRY).find( |
129 | | - (key) => VERSION_REGISTRY[key] === version |
130 | | - ); |
| 128 | + const pkg = Object.keys(VERSION_REGISTRY).find((key) => VERSION_REGISTRY[key] === version); |
131 | 129 | if (pkg) { |
132 | 130 | return VERSION_REGISTRY[pkg]; |
133 | 131 | } |
|
0 commit comments