From b0b84ca13fb16de6cab02dc68a0f5a486269f4c0 Mon Sep 17 00:00:00 2001 From: Souma <101255979+5ouma@users.noreply.github.com> Date: Sun, 13 Oct 2024 10:36:28 +0900 Subject: [PATCH] fix(deno): Run `deno serve` instead of the `deno run` (#87) Since `deno run` doesn't treat the default exports. --- deno.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deno.json b/deno.json index 8928039..80ea6af 100644 --- a/deno.json +++ b/deno.json @@ -7,9 +7,9 @@ "exclude": ["**/*.test.ts", "src/libs/test_utils.ts"] }, "tasks": { - "run": "deno run --env-file='.env' -EN='api.github.com'", - "start": "deno task run src/server.ts", - "dev": "deno task run --watch src/server.ts", + "serve": "deno serve --env-file='.env' -EN='api.github.com'", + "start": "deno task serve src/server.ts", + "dev": "deno task serve --watch src/server.ts", "test": "deno test --doc -EN='api.github.com' --parallel --shuffle", "cov": "deno task test --coverage && deno coverage --lcov > coverage.lcov" },