Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/shiny-ants-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@emdash-cms/registry-moderation": patch
---

Adds shared release moderation evaluation for accepted ATProto label streams.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"typecheck:templates": "pnpm run --workspace-concurrency=1 --filter {./templates/*} typecheck",
"check": "pnpm run typecheck && pnpm run --filter {./packages/*} check",
"test": "pnpm run --filter {./packages/*} test",
"test:unit": "pnpm run --filter emdash --filter @emdash-cms/auth --filter @emdash-cms/blocks --filter @emdash-cms/gutenberg-to-portable-text --filter @emdash-cms/marketplace --filter @emdash-cms/plugin-cli --filter @emdash-cms/plugin-forms --filter @emdash-cms/plugin-types --filter @emdash-cms/registry-client --filter @emdash-cms/registry-lexicons test",
"test:unit": "pnpm run --filter emdash --filter @emdash-cms/auth --filter @emdash-cms/blocks --filter @emdash-cms/gutenberg-to-portable-text --filter @emdash-cms/marketplace --filter @emdash-cms/plugin-cli --filter @emdash-cms/plugin-forms --filter @emdash-cms/plugin-types --filter @emdash-cms/registry-client --filter @emdash-cms/registry-lexicons --filter @emdash-cms/registry-moderation test",
"test:browser": "pnpm run --filter @emdash-cms/admin test",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
Expand Down
47 changes: 47 additions & 0 deletions packages/registry-moderation/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "@emdash-cms/registry-moderation",
"version": "0.0.0",
"description": "Shared label reduction and release moderation policy for the EmDash plugin registry.",
"type": "module",
"main": "dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"files": [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[suggestion] This package omits vitest.config.ts and README.md, which both sibling registry packages (registry-client, registry-lexicons) include.

Tests still execute via vitest defaults, but adding these files keeps the workspace consistent and documents the public API for consumers. Suggested additions:

vitest.config.ts:

import { defineConfig } from "vitest/config";

export default defineConfig({
	test: {
		environment: "node",
		include: ["tests/**/*.test.ts"],
	},
});

README.md: a short description of the package, exported API (evaluateReleaseModeration), and a note that it is the shared pure evaluator for the labelling service.

"dist"
],
"scripts": {
"build": "tsdown",
"dev": "tsdown --watch",
"prepublishOnly": "node --run build",
"typecheck": "tsgo --noEmit",
"test": "vitest run",
"check": "publint && attw --pack --ignore-rules=cjs-resolves-to-esm --ignore-rules=no-resolution"
},
"devDependencies": {
"@arethetypeswrong/cli": "catalog:",
"@types/node": "catalog:",
"publint": "catalog:",
"tsdown": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
},
"keywords": [
"emdash",
"cms",
"plugin-registry",
"atproto",
"moderation"
],
"author": "Matt Kane",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/emdash-cms/emdash.git",
"directory": "packages/registry-moderation"
},
"homepage": "https://github.com/emdash-cms/emdash"
}
Loading
Loading