Files
shared/package.json
T
Gabriel20xxandClaude Sonnet 5 acde180086 Fold MediaEngine (media-backend, media-webui) into this repo
Per owner decision: MediaEngine (the Media product family's Go backend
and SvelteKit frontend, previously its own repo referenced by 7 thin
service repos via git submodule) is folded directly into shared/ as
media-backend/ and media-webui/, rather than staying separate.

media-backend/go.mod's replace directive now points at ../backend (a
true sibling within this repo) instead of a vendored ../shared/backend
copy, since there's no more nested vendoring - it's the real thing.

Also moved MediaEngine's own CI (media-backend-lint.yml,
media-backend-tests.yml) and dev tooling scripts (scripts/media/*,
audit/lint/enforce scripts for the media-backend+media-webui content),
fixing their path assumptions for the new layout, and dropped
scripts/media/sync-shared.mjs (confirmed dead code, and now doubly
obsolete since there's no more vendored shared/ subfolder for it to
check). Added media:* script aliases to package.json for the moved
tooling, namespaced to avoid colliding with this repo's own scripts.

Also fixed sync-consumers.ps1's workspace-root resolution to walk up
until it finds a directory containing both Original/ and Forks/,
instead of assuming shared/ is always a direct child of the workspace
root - it broke when shared/ moved from Web/shared to Web/Central/shared
earlier in this same restructuring. Removed the now-obsolete
Original/MediaEngine entry from its consumer list.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-31 22:06:29 +02:00

70 lines
2.9 KiB
JSON

{
"name": "@gabriel20xx/shared-code",
"version": "0.1.1",
"description": "Shared UI and backend packages for Gabriel20xx projects.",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://repos.gfranz.ch/Gabriel20xx/shared"
},
"type": "module",
"files": [
"README.md",
"shared-styles.css",
"packages/web-ui/dist",
"packages/design-tokens",
"packages/node-backend/src"
],
"exports": {
".": "./README.md",
"./web-ui": {
"types": "./packages/web-ui/dist/index.d.ts",
"svelte": "./packages/web-ui/dist/index.js",
"import": "./packages/web-ui/dist/index.js"
},
"./web-ui/styles.css": "./shared-styles.css",
"./design-tokens": "./packages/design-tokens/theme.css",
"./design-tokens/theme.css": "./packages/design-tokens/theme.css",
"./node-backend": "./packages/node-backend/src/index.js",
"./node-backend/config": "./packages/node-backend/src/config.js",
"./node-backend/db": "./packages/node-backend/src/db.js",
"./node-backend/auth": "./packages/node-backend/src/auth.js",
"./node-backend/migrate": "./packages/node-backend/src/migrate.js"
},
"workspaces": [
"packages/*"
],
"scripts": {
"check": "npm run check --workspace=@gabriel20xx/web-ui",
"build": "npm run package --workspace=@gabriel20xx/web-ui",
"package": "npm run package --workspace=@gabriel20xx/web-ui",
"lint": "npm run check && npm run lint:node",
"lint:node": "node scripts/check-node-syntax.mjs",
"test": "npm run build && npm run test:node-backend",
"test:node-backend": "npm test --workspace=@gabriel20xx/node-backend",
"prepare": "npm run build && node scripts/build-root-styles.mjs",
"changeset": "changeset",
"version-packages": "changeset version",
"release": "npm run build && npm run test:node-backend && changeset publish",
"media:audit:html-js": "node scripts/media/audit-html-js.mjs",
"media:audit:layout": "node scripts/media/audit-inline-layout.mjs",
"media:audit:layout:strict": "node scripts/media/audit-inline-layout.mjs --strict",
"media:clean:test-artifacts": "node scripts/media/clean-test-artifacts.mjs",
"media:enforce:css-design-system": "node scripts/media/enforce-design-system-css.mjs",
"media:enforce:js-mapping": "node scripts/media/enforce-js-mapping.mjs",
"media:enforce:no-skipped-tests": "node scripts/media/enforce-no-skipped-tests.mjs",
"media:lint:all": "node scripts/media/lint-all.mjs",
"media:lint:all:json": "node scripts/media/lint-all-json.mjs",
"media:test:list-skipped": "node scripts/media/list-skipped-tests.mjs",
"media:test:timings": "node scripts/media/report-test-timings.mjs",
"media:vitest:inspect-exports": "node scripts/media/inspect-vitest-exports.mjs",
"media:deps:upgrade": "node scripts/media/upgrade-deps.mjs"
},
"dependencies": {
"pg": "^8.17.2"
},
"devDependencies": {
"@changesets/cli": "^2.29.8"
}
}