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.
Overview
The repository root tracks
ModerationItem.js,moderation.controller.js,moderation.routes.js, andsimple-server.js— plain JavaScript files from an earlier Express-based iteration. They are not imported by the NestJS application, are not covered bytsconfig.build.json, are not linted by the{src,apps,libs,test}/**/*.tsESLint glob, and are not type checked.simple-server.jsis even wired to astart:simplenpm script, so it is presented as a supported entry point. Meanwhilesrc/moderation/andsrc/modules/moderation/contain the real implementation. Contributors searching for moderation code find three plausible-looking files that no running code path uses.Specifications
Features:
Tasks:
ModerationItem.js,moderation.controller.js, andmoderation.routes.js.simple-server.jsand thestart:simplescript frompackage.json, or move it underscripts/and document what it is for.src/moderation/andsrc/modules/moderation/so there is a single canonical module.Impacted Files:
ModerationItem.jsmoderation.controller.jsmoderation.routes.jssimple-server.jspackage.jsonAcceptance Criteria
start:simpleno longer references a deleted file.