From e0baa79d6bfd574858e546bf2ebc54b66a1b58e9 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 28 Nov 2025 13:21:03 +0100 Subject: [PATCH] Remove file extensions from import statements Updated import statements across several server files to omit explicit file extensions. This improves compatibility with module resolution and aligns with common import practices. --- src/server/database-prisma.js | 2 +- src/server/lib/autoSyncInit.js | 2 +- src/server/services/autoSyncService.js | 6 +++--- src/server/services/githubJsonService.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/server/database-prisma.js b/src/server/database-prisma.js index 51f6461..f1d7532 100644 --- a/src/server/database-prisma.js +++ b/src/server/database-prisma.js @@ -1,4 +1,4 @@ -import { prisma } from './db.js'; +import { prisma } from './db'; import { join } from 'path'; import { writeFileSync, unlinkSync, chmodSync, mkdirSync } from 'fs'; import { existsSync } from 'fs'; diff --git a/src/server/lib/autoSyncInit.js b/src/server/lib/autoSyncInit.js index 5d69828..9093b32 100644 --- a/src/server/lib/autoSyncInit.js +++ b/src/server/lib/autoSyncInit.js @@ -1,4 +1,4 @@ -import { AutoSyncService } from '../services/autoSyncService.js'; +import { AutoSyncService } from '../services/autoSyncService'; import { repositoryService } from '../services/repositoryService'; /** @type {AutoSyncService | null} */ diff --git a/src/server/services/autoSyncService.js b/src/server/services/autoSyncService.js index 7820b69..bca5a8f 100644 --- a/src/server/services/autoSyncService.js +++ b/src/server/services/autoSyncService.js @@ -1,7 +1,7 @@ import cron from 'node-cron'; -import { githubJsonService } from './githubJsonService.js'; -import { scriptDownloaderService } from './scriptDownloader.js'; -import { appriseService } from './appriseService.js'; +import { githubJsonService } from './githubJsonService'; +import { scriptDownloaderService } from './scriptDownloader'; +import { appriseService } from './appriseService'; import { readFile, writeFile, readFileSync, writeFileSync } from 'fs'; import { join } from 'path'; import cronValidator from 'cron-validator'; diff --git a/src/server/services/githubJsonService.js b/src/server/services/githubJsonService.js index a3de782..0315179 100644 --- a/src/server/services/githubJsonService.js +++ b/src/server/services/githubJsonService.js @@ -1,6 +1,6 @@ // JavaScript wrapper for githubJsonService.ts // This allows the JavaScript autoSyncService.js to import the TypeScript service -import { githubJsonService } from './githubJsonService.ts'; +import { githubJsonService } from './githubJsonService'; export { githubJsonService };