Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

declare workspace deps #62

Merged
merged 1 commit into from
Jan 30, 2024
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
45 changes: 31 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "raiplayrss",
"name": "@raiplayrss/raiplayrss",
"version": "0.0.0",
"description": "",
"private": true,
Expand Down
8 changes: 6 additions & 2 deletions packages/cf/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "cf",
"name": "@raiplayrss/cf",
"version": "0.0.0",
"description": "",
"private": true,
Expand All @@ -21,6 +21,10 @@
"@types/node": "^20.11.10",
"tsx": "^4.7.0",
"typescript": "^5.3.3",
"wrangler": "^3.25.0"
"wrangler": "^3.25.0",
"@raiplayrss/rai": "*"
},
"dependencies": {
"@raiplayrss/server": "*"
}
}
File renamed without changes.
4 changes: 1 addition & 3 deletions packages/cf/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@
"types": ["@cloudflare/workers-types"]
},
"include": ["*.ts"],
"exclude": ["*.test.ts",
"declarations.d.ts"
]
"exclude": ["*.test.ts"]
}
2 changes: 1 addition & 1 deletion packages/cf/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"compilerOptions": {
"types": ["node"]
},
"include": ["*.test.ts", "declarations.d.ts"],
"include": ["*.test.ts", "test/*.ts"],
"exclude": []
}
4 changes: 2 additions & 2 deletions packages/cf/worker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { strict as assert } from "node:assert";
import { Server, createServer } from "node:http";
import { test } from "node:test";
import { getPodcastFromFeed } from "@podverse/podcast-feed-parser";
import genresJson from "@raiplayrss/rai/test/generi.json" with { type: "json" };
import { assertItalian } from "@raiplayrss/server/test/headers.js";
import { createServerAdapter } from "@whatwg-node/server";
import { Router, RouterType, error, json } from "itty-router";
import { UnstableDevWorker, unstable_dev } from "wrangler";
import genresJson from "../rai/test/generi.json" with { type: "json" };
import { assertItalian } from "../server/test/headers.js";
import feedJson from "./test/lastoriaingiallo.json" with { type: "json" };
import expectedJson from "./test/lastoriaingiallo.parsed.json" with {
type: "json",
Expand Down
2 changes: 1 addition & 1 deletion packages/rai/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "rai",
"name": "@raiplayrss/rai",
"version": "0.0.0",
"description": "",
"private": true,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/rai/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"types": []
},
"include": ["*.ts"],
"exclude": ["*.test.ts", "declarations.d.ts"]
"exclude": ["*.test.ts"]
}
2 changes: 1 addition & 1 deletion packages/rai/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"compilerOptions": {
"types": ["node"]
},
"include": ["*.test.ts", "declarations.d.ts"],
"include": ["*.test.ts", "test/*.ts"],
"exclude": []
}
10 changes: 5 additions & 5 deletions packages/server/feed-handler.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { strict as assert } from "node:assert";
import test from "node:test";
import { json } from "itty-router";
import { FetchWithErr, NotOk, OkResponse } from "../rai/fetch.js";
import genresJson from "../rai/test/generi.json";
import feedJson from "../rai/test/lastoriaingiallo.json";
import expectedJson from "../rai/test/lastoriaingiallo.parsed.json" with {
import { FetchWithErr, NotOk, OkResponse } from "@raiplayrss/rai/fetch.js";
import genresJson from "@raiplayrss/rai/test/generi.json";
import feedJson from "@raiplayrss/rai/test/lastoriaingiallo.json";
import expectedJson from "@raiplayrss/rai/test/lastoriaingiallo.parsed.json" with {
type: "json",
};
import { json } from "itty-router";
import { parseFeed } from "../rai/test/parse-feed.js";
import { feedHandler } from "./feed-handler.js";
import * as logger from "./logger.js";
Expand Down
4 changes: 2 additions & 2 deletions packages/server/feed-handler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { feedToRss } from "@raiplayrss/rai/feed.js";
import { FetchWithErr, NotOk } from "@raiplayrss/rai/fetch.js";
import { createResponse } from "itty-router";
import { feedToRss } from "../rai/feed.js";
import { FetchWithErr, NotOk } from "../rai/fetch.js";
import { Logger } from "./logger.js";

export { Config, feedHandler };
Expand Down
8 changes: 4 additions & 4 deletions packages/server/handler.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { strict as assert } from "node:assert";
import test from "node:test";
import { error, json } from "itty-router";
import genresJson from "../rai/test/generi.json" with { type: "json" };
import feedJson from "../rai/test/lastoriaingiallo.json";
import expectedJson from "../rai/test/lastoriaingiallo.parsed.json" with {
import genresJson from "@raiplayrss/rai/test/generi.json" with { type: "json" };
import feedJson from "@raiplayrss/rai/test/lastoriaingiallo.json";
import expectedJson from "@raiplayrss/rai/test/lastoriaingiallo.parsed.json" with {
type: "json",
};
import { error, json } from "itty-router";
import { parseFeed } from "../rai/test/parse-feed.js";
import { FetchHandler, mkFetchHandler } from "./handler.js";
import * as logger from "./logger.js";
Expand Down
6 changes: 3 additions & 3 deletions packages/server/handler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Router, createResponse, error, html, text } from "itty-router";
import { mkFetchWithErr } from "../rai/fetch.js";
import { genresHtml } from "../rai/genres.js";
import { mkFetchWithErr } from "@raiplayrss/rai/fetch.js";
import { genresHtml } from "@raiplayrss/rai/genres.js";
import { Router, error, html } from "itty-router";
import { feedHandler } from "./feed-handler.js";
import { Logger } from "./logger.js";

Expand Down
5 changes: 3 additions & 2 deletions packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "server",
"name": "@raiplayrss/server",
"version": "0.0.0",
"description": "",
"private": true,
Expand All @@ -20,6 +20,7 @@
"typescript": "^5.3.3"
},
"dependencies": {
"itty-router": "^4.0.27"
"itty-router": "^4.0.27",
"@raiplayrss/rai": "*"
}
}
2 changes: 1 addition & 1 deletion packages/server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "../rai/tsconfig.json",
"include": ["*.ts"],
"exclude": ["*.test.ts", "declarations.d.ts"]
"exclude": ["*.test.ts"]
}
2 changes: 1 addition & 1 deletion packages/server/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"compilerOptions": {
"types": ["node"]
},
"include": ["*.test.ts", "declarations.d.ts"],
"include": ["*.test.ts", "test/*.ts"],
"exclude": []
}
Loading