Fix: Remove .js extensions from TypeScript imports for Next.js bundler

This commit is contained in:
CanbiZ
2025-11-28 12:48:10 +01:00
parent 03e31d66a7
commit 987ac3da1b
3 changed files with 6 additions and 6 deletions

View File

@@ -3,7 +3,7 @@ import { writeFile, mkdir, readdir, readFile } from 'fs/promises';
import { join } from 'path';
import { env } from '../../env.js';
import type { Script, ScriptCard, GitHubFile } from '../../types/script';
import { repositoryService } from './repositoryService.js';
import { repositoryService } from './repositoryService';
export class GitHubJsonService {
private branch: string | null = null;

View File

@@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-argument, @typescript-eslint/prefer-regexp-exec */
import { prisma } from '../db.js';
import { prisma } from '../db';
export class RepositoryService {
/**

View File

@@ -12,7 +12,7 @@
/* Strictness */
"strict": true,
"noUncheckedIndexedAccess": true,
"checkJs": true,
"checkJs": false,
/* Bundled projects */
"lib": [
"dom",
@@ -44,12 +44,12 @@
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
"**/*.cjs",
"**/*.js",
".next/types/**/*.ts",
".next/dev/types/**/*.ts"
],
"exclude": [
"node_modules"
"node_modules",
"**/*.js",
"**/*.cjs"
]
}