refactor: migrate all internal imports to package.json subpath aliases
- Add #domain, #protocol, #utils aliases to package.json imports map - Replace all relative imports (./, ../, ../..) in app/ and database/mongo_migrations/ with the corresponding #alias imports, eliminating relative path traversal across the codebase - Remove dead code: ConfigurationVersionModel.findByConfigurationIdentifier (unused, superseded by paginateVersions) and unused exception classes (NotFoundException, UnprocessableEntityException, DatabaseException) from app/exceptions/index.ts, keeping only BadRequestException - Fix pre-existing syntax error in configuration_version.ts (mismatched parenthesis) that broke tsc - Fix eqeqeq violation in configuration_service.ts and isNaN -> Number.isNaN in configuration_engine.ts / cwmp-1-0.ts / exchange_controller.ts - Fix no-shadow violation in cwmp-1-0.ts EventStruct constructor - Prettier formatting pass on touched files Validated: tsc --noEmit clean, eslint app/ clean, full test suite green.
This commit is contained in:
1 parent
4177f1adbd
commit
f9e56c78b1
74 files changed
+1243
-863
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { MongoMigration } from '../mongo_migrator.js'
|
||||
import { MongoMigration } from '#database/mongo_migrator'
|
||||
|
||||
export default class CreateDevicesCollection extends MongoMigration {
|
||||
async up(): Promise<void> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { MongoMigration } from '../mongo_migrator.js'
|
||||
import { MongoMigration } from '#database/mongo_migrator'
|
||||
|
||||
export default class CreateCommandsCollection extends MongoMigration {
|
||||
async up(): Promise<void> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { MongoMigration } from '../mongo_migrator.js'
|
||||
import { MongoMigration } from '#database/mongo_migrator'
|
||||
|
||||
export default class CreateDiscoveryConfigsCollection extends MongoMigration {
|
||||
async up(): Promise<void> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { MongoMigration } from '../mongo_migrator.js'
|
||||
import { MongoMigration } from '#database/mongo_migrator'
|
||||
|
||||
export default class CreateProvisioningConfigsCollection extends MongoMigration {
|
||||
async up(): Promise<void> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { MongoMigration } from '../mongo_migrator.js'
|
||||
import { MongoMigration } from '#database/mongo_migrator'
|
||||
|
||||
export default class CreateConfigurationsCollection extends MongoMigration {
|
||||
async up(): Promise<void> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { MongoMigration } from '../mongo_migrator.js'
|
||||
import { MongoMigration } from '#database/mongo_migrator'
|
||||
|
||||
export default class CreateConfigurationVersionsCollection extends MongoMigration {
|
||||
async up(): Promise<void> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { MongoMigration } from '../mongo_migrator.js'
|
||||
import { MongoMigration } from '#database/mongo_migrator'
|
||||
|
||||
export default class CreateFirmwareEntriesCollection extends MongoMigration {
|
||||
async up(): Promise<void> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { MongoMigration } from '../mongo_migrator.js'
|
||||
import { MongoMigration } from '#database/mongo_migrator'
|
||||
|
||||
export default class CreateMigrationRoutesCollection extends MongoMigration {
|
||||
async up(): Promise<void> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { MongoMigration } from '../mongo_migrator.js'
|
||||
import { MongoMigration } from '#database/mongo_migrator'
|
||||
|
||||
export default class AddComplianceToDevices extends MongoMigration {
|
||||
async up(): Promise<void> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { MongoMigration } from '../mongo_migrator.js'
|
||||
import { MongoMigration } from '#database/mongo_migrator'
|
||||
|
||||
export default class DropLegacyCollections extends MongoMigration {
|
||||
async up(): Promise<void> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { MongoMigration } from '../mongo_migrator.js'
|
||||
import { MongoMigration } from '#database/mongo_migrator'
|
||||
|
||||
export default class CreateCwmpExchangesCollection extends MongoMigration {
|
||||
async up(): Promise<void> {
|
||||
|
||||
Reference in new issue
Block a user