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
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import app from "./app.ts";
import app from "./modules/app.ts";

app.serve({ port: parseInt(Deno.args[0]) || 8000 });
2 changes: 1 addition & 1 deletion app.e2e.test.ts → modules/app.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Deno.test("e2e: app routes", async () => {

Deno.test("e2e: app routes with DENO_DEPLOYMENT_ID via subprocess", async () => {
const p = new Deno.Command(Deno.execPath(), {
args: ["run", "-A", "--coverage=coverage", "app.ts"],
args: ["run", "-A", "--coverage=coverage", "modules/app.ts"],
env: { "DENO_DEPLOYMENT_ID": "test-deployment" },
stdout: "piped",
stderr: "piped",
Expand Down
6 changes: 3 additions & 3 deletions app.ts → modules/app.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import App from "./mod.ts";
import { autoRegisterModules } from "./core/loader.ts";
import App from "../mod.ts";
import { autoRegisterModules } from "../core/loader.ts";

const app = new App();

Expand Down Expand Up @@ -86,7 +86,7 @@ app.post("/json", async (req) => {
// module mounts (for example `index` which registers `/*`).
const dep = Deno.env.get?.("DENO_DEPLOYMENT_ID");
if (dep) {
const manifest = await import("./manifest.ts");
const manifest = await import("../manifest.ts");
await autoRegisterModules(app, {
manifest: manifest as unknown as Record<string, unknown>,
requireExplicitGlobals: true,
Expand Down