diff --git a/deno.jsonc b/deno.jsonc index 8815ed6..21b25c6 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -38,7 +38,7 @@ }, "tasks": { "build": "deno run -A scripts/dev.ts build", - "create-local-client": "deno run -A scripts/createOauthClient.ts >> .env", + "create-local-client": "deno run -A scripts/createOauthClient.ts", "dev": "deno run --env-file -A scripts/dev.ts" }, "unstable": [ diff --git a/scripts/createOauthClient.ts b/scripts/createOauthClient.ts index c83f4d1..3f410dd 100644 --- a/scripts/createOauthClient.ts +++ b/scripts/createOauthClient.ts @@ -1,5 +1,5 @@ -import { client } from "../traq/client.gen.ts" -import { createClient, login } from "../traq/index.ts" +import { client } from "../src/traq/client.gen.ts" +import { createClient, login } from "../src/traq/index.ts" client.setConfig({ baseUrl: "http://localhost:3000/api/v3", @@ -22,7 +22,7 @@ const clientRes = await createClient({ body: { name: "Qonstellation", description: "Test Client", - callbackUrl: "http://localhost:5173/callback", + callbackUrl: "http://localhost:8000/callback", scopes: ["read", "write"], }, headers: {