Skip to content

Commit c31cc63

Browse files
committed
Fix @fedify/relay packaging errors
1 parent 0bcadae commit c31cc63

File tree

4 files changed

+46
-16
lines changed

4 files changed

+46
-16
lines changed

packages/relay/deno.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,8 @@
2121
"codegen"
2222
]
2323
},
24-
"run": {
25-
"command": "deno run --allow-all src/mod.ts",
26-
"dependencies": [
27-
"codegen"
28-
]
29-
},
30-
"runi": "deno run --allow-all src/mod.ts",
31-
"pack": {
32-
"command": "deno run -A scripts/pack.ts",
24+
"test": {
25+
"command": "deno test --allow-env",
3326
"dependencies": [
3427
"codegen"
3528
]

packages/relay/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,17 @@
5151
"@fedify/fedify": "workspace:^"
5252
},
5353
"devDependencies": {
54+
"@fedify/testing": "workspace:^",
55+
"@fedify/vocab-runtime": "workspace:^",
5456
"tsdown": "catalog:",
5557
"typescript": "catalog:"
5658
},
5759
"scripts": {
5860
"build": "deno task codegen && tsdown",
5961
"prepack": "deno task codegen && tsdown",
6062
"prepublish": "deno task codegen && tsdown",
61-
"test": "deno task codegen && tsdown && cd dist/ && node --test",
62-
"test:bun": "deno task codegen && deno task pnpm:build-vocab && tsdown && cd dist/ && bun test --timeout 60000",
63+
"test": "deno task codegen && tsdown && node --test",
64+
"test:bun": "deno task codegen && tsdown && bun test --timeout 60000",
6365
"test:cfworkers": "deno task codegen && wrangler deploy --dry-run --outdir src/cfworkers && node --import=tsx src/cfworkers/client.ts"
6466
}
6567
}

packages/relay/src/relay.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import { describe, test } from "node:test";
44
import { MemoryKvStore } from "@fedify/fedify";
55
import { Follow, Person } from "@fedify/fedify/vocab";
66
import { signRequest } from "@fedify/fedify/sig";
7-
import { LitePubRelay, MastodonRelay, type RelayOptions } from "./relay.ts";
7+
import { LitePubRelay, MastodonRelay, type RelayOptions } from "@fedify/relay";
8+
import { createFederation } from "@fedify/testing";
89
import {
910
exportSpki,
1011
getDocumentLoader,
1112
type RemoteDocument,
1213
} from "@fedify/vocab-runtime";
13-
import { createFederation } from "@fedify/testing";
1414

1515
// Simple mock document loader that returns a minimal context
1616
const mockDocumentLoader = async (url: string): Promise<RemoteDocument> => {

pnpm-lock.yaml

Lines changed: 38 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)