refactor(backend): rename mediacore package to media

This commit is contained in:
Gabriel20xx committed 2026-11-01 21:50:47 +01:00
1 parent e8cb7c6c68
commit 75c08beec6
34 files changed
+837 -656

No files matched your search

+2 -2
View File
@@ -50,9 +50,9 @@ function collectMatches(content, regex, type) {
const allFiles = await walk(repoRoot);
const violations = [];
// After folding media-backend/webui directly into the shared repo, this filter targets
// This filter targets
// the frontend directories where inline HTML/CSS layout violations are actually possible
// (the plain Go backend/ and Go media-backend/ have none; there is no more nested shared/).
// (the Go backend/ has none; there is no nested shared/).
const includedTopLevelDirs = ['webui/', 'scripts/media/'];
for (const filePath of allFiles) {
+1 -1
View File
@@ -100,7 +100,7 @@ fallbackRemoved += removeFallbackDirs(repoRoot);
// NOTE: no top-level tests/ dir currently exists and no embedded-postgres JS test tooling was
// found anywhere in this repo — this sweep is a harmless no-op today but kept for forward
// compatibility / parity with the source script. The former sweep of a nested shared/tests/
// was dropped: after folding media-backend/webui directly into the shared repo (no more
// was dropped: after the webui was folded directly into the shared repo (no more
// vendored shared/ copy), there is no longer a nested "shared" subdirectory to sweep.
const pgSweepDirs = [path.join(repoRoot, 'tests')];
let pgArtifactsRemoved = 0;
+2 -2
View File
@@ -5,8 +5,8 @@
* machine parsing. Exit code is non-zero if any package reports errors or warnings (configurable).
*
* Shared extraction note: the monorepo version of this script discovered the monorepo root by
* walking up for a MediaShared/package.json marker and iterated MediaShared/MediaModerator/
* MediaViewer/MediaTools using a shared root eslint.config.mjs. None of those sibling packages or
* walking up for a root package.json marker and iterated the sibling packages
* using a shared root eslint.config.mjs. None of those sibling packages or
* the root config exist in this repo — webui/ is the only JS/TS package here, and it already
* ships its own local eslint.config.js (picked up automatically, no --config override needed).
*/
+2 -2
View File
@@ -4,9 +4,9 @@
* Exits non‑zero if any package fails its lint step.
*
* Shared extraction note: the monorepo version of this script discovered the monorepo root
* by walking up for a MediaShared/package.json marker, iterated nine sibling Media* packages
* by walking up for a root package.json marker, iterated the sibling packages
* against a shared root eslint.config.mjs/.stylelintrc.json, and ran Prettier/Stylelint out of
* MediaShared/node_modules (npm workspace hoisting). Here the only JS/TS package with a lint
* the root node_modules (npm workspace hoisting). Here the only JS/TS package with a lint
* target is packages/web-ui, linted with the root eslint.config.js (ESLint is a root
* devDependency, so `npx eslint` resolves it). Prettier is checked through the root
* `format:check` script, which covers only the files written to the Prettier style (see