Skip to content

Remove the stray root-level JavaScript files superseded by the NestJS moderation module #1043

Description

@RUKAYAT-CODER

Overview

The repository root tracks ModerationItem.js, moderation.controller.js, moderation.routes.js, and simple-server.js — plain JavaScript files from an earlier Express-based iteration. They are not imported by the NestJS application, are not covered by tsconfig.build.json, are not linted by the {src,apps,libs,test}/**/*.ts ESLint glob, and are not type checked. simple-server.js is even wired to a start:simple npm script, so it is presented as a supported entry point. Meanwhile src/moderation/ and src/modules/moderation/ contain the real implementation. Contributors searching for moderation code find three plausible-looking files that no running code path uses.

Specifications

Features:

  • The repository contains one moderation implementation.
  • No untyped, unlinted JavaScript entry point is presented as supported.

Tasks:

  • Confirm via a repository-wide search that nothing imports the four files.
  • Delete ModerationItem.js, moderation.controller.js, and moderation.routes.js.
  • Remove simple-server.js and the start:simple script from package.json, or move it under scripts/ and document what it is for.
  • Reconcile the duplication between src/moderation/ and src/modules/moderation/ so there is a single canonical module.

Impacted Files:

  • ModerationItem.js
  • moderation.controller.js
  • moderation.routes.js
  • simple-server.js
  • package.json

Acceptance Criteria

  • The four JavaScript files are removed from version control.
  • start:simple no longer references a deleted file.
  • Only one moderation module directory remains.
  • The build and test suite pass unchanged after removal.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions