Skip to content

Commit ce2cd64

Browse files
committed
Remove unused dependencies and internalize functions
1 parent 193515f commit ce2cd64

22 files changed

Lines changed: 751 additions & 2769 deletions

apps/api/package.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,22 @@
1010
},
1111
"devDependencies": {
1212
"@sr24/typescript-config": "*",
13-
"@types/compression": "^1.8.1",
14-
"@types/cors": "^2.8.19",
15-
"@types/express": "^5.0.5",
1613
"@types/jsonwebtoken": "^9.0.10",
17-
"@types/ws": "^8.18.1",
1814
"@types/xml2js": "^0.4.14",
19-
"tsup": "^8.5.0",
15+
"tsx": "^4.21.0",
2016
"typescript": "^5.9.3"
2117
},
2218
"dependencies": {
23-
"@fastify/compress": "^8.3.1",
2419
"@fastify/cors": "^11.2.0",
2520
"@fastify/helmet": "^13.0.2",
2621
"@fastify/rate-limit": "^10.3.0",
2722
"@fastify/sensible": "^6.0.4",
2823
"@sr24/db": "*",
24+
"@sr24/types": "*",
2925
"axios": "^1.13.2",
30-
"compression": "^1.8.1",
31-
"cors": "^2.8.5",
3226
"dotenv": "^17.2.3",
33-
"express": "^5.1.0",
34-
"express-rate-limit": "^8.2.1",
3527
"fastify": "^5.6.2",
36-
"helmet": "^8.1.0",
28+
"fastify-plugin": "^5.1.0",
3729
"jsonwebtoken": "^9.0.3",
3830
"xml2js": "^0.6.2"
3931
}

apps/api/src/weather.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ let tafCache: Map<string, string> = new Map();
3535
updateWeather();
3636
setInterval(updateWeather, WEATHER_FETCH_INTERVAL);
3737

38-
export async function updateWeather(): Promise<void> {
38+
async function updateWeather(): Promise<void> {
3939
try {
4040
const parsedMetar = (await fetchWeather(METAR_URL)) as MetarXML;
4141
const parsedTaf = (await fetchWeather(TAF_URL)) as TafXML;

apps/api/tsup.config.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

apps/ingestion/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"devDependencies": {
1212
"@sr24/typescript-config": "*",
13-
"tsup": "^8.5.0",
13+
"tsx": "^4.21.0",
1414
"typescript": "^5.9.3"
1515
},
1616
"dependencies": {

apps/ingestion/src/controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function getConnectionsCount(vatsimData: VatsimData, controllersLong: Controller
172172
const firPrefixes: Map<string, string> = new Map();
173173
const traconPrefixes: Map<string, string> = new Map();
174174

175-
export async function mergeControllers(controllersLong: ControllerLong[]): Promise<ControllerMerged[]> {
175+
async function mergeControllers(controllersLong: ControllerLong[]): Promise<ControllerMerged[]> {
176176
await updateFeaturesFromRedis();
177177

178178
const merged = new Map<string, ControllerMerged>();

apps/ingestion/tsup.config.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

apps/updater/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"devDependencies": {
1212
"@sr24/typescript-config": "*",
1313
"@types/stream-json": "^1.7.8",
14-
"tsup": "^8.5.0",
1514
"tsx": "^4.20.6",
1615
"typescript": "^5.9.3"
1716
},

apps/updater/src/tracon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function closePolygons(features: SimAwareTraconFeature[]): SimAwareTraconFeature
8686
});
8787
}
8888

89-
export function setLabelPosition(features: SimAwareTraconFeature[]): SimAwareTraconFeature[] {
89+
function setLabelPosition(features: SimAwareTraconFeature[]): SimAwareTraconFeature[] {
9090
return features.map((feature) => {
9191
if (!feature.properties.label_lon || !feature.properties.label_lat) {
9292
let lonlat = null;

apps/updater/tsup.config.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

apps/web/app/providers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
44
import { SessionProvider } from "next-auth/react";
55
import { ThemeProvider } from "next-themes";
66

7-
export const queryClient = new QueryClient();
7+
const queryClient = new QueryClient();
88

99
export function Providers({ children }: { children: React.ReactNode }) {
1010
return (

0 commit comments

Comments
 (0)