Fix: Remove .js extensions from TypeScript imports for Next.js bundler
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
/**
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user