refactor: migrate to ES modules

package.json type=module, tsconfig module/moduleResolution=NodeNext,
target es2022, explicit .js on all relative imports. Center: jsonwebtoken
& bcryptjs switched to default imports (ESM/CJS interop). Verified:
builds, boots, full auth + plugin round-trip work under ESM.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
h z
2026-05-15 18:47:35 +01:00
parent dea946653b
commit 44aa34d1ff
20 changed files with 64 additions and 62 deletions

View File

@@ -1,8 +1,8 @@
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { NodesController } from './nodes.controller';
import { GuildNode } from '../entities/guild-node.entity';
import { NodeAdminService } from './node-admin.service';
import { NodesController } from './nodes.controller.js';
import { GuildNode } from '../entities/guild-node.entity.js';
import { NodeAdminService } from './node-admin.service.js';
@Module({
imports: [TypeOrmModule.forFeature([GuildNode])],