Skip to content

Commit

Permalink
Move deno task to root
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyliu7321 committed Dec 15, 2023
1 parent cd3800f commit 4a28ba1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions atproto-openapi-types/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {

import type { OpenAPIV3_1 } from "openapi-types";

const entries = expandGlob("./lexicons/**/*.json");
const entries = expandGlob("./atproto-openapi-types/lexicons/**/*.json");

const paths: OpenAPIV3_1.PathsObject = {};
const components: OpenAPIV3_1.ComponentsObject = {
Expand Down Expand Up @@ -108,4 +108,4 @@ const api: OpenAPIV3_1.Document = {
tags: Array.from(tagNames).map((name) => ({ name })),
};

Deno.writeTextFile("./spec/api.json", JSON.stringify(api, null, 2) + "\n");
Deno.writeTextFile("./atproto-openapi-types/spec/api.json", JSON.stringify(api, null, 2) + "\n");
4 changes: 2 additions & 2 deletions atproto-openapi-types/deno.jsonc → deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"std/fs/": "https://deno.land/[email protected]/fs/"
},
"tasks": {
"dev": "deno run --allow-read=./ --allow-write=./spec/api.json --watch main.ts",
"run": "deno run --allow-net=bsky.social --allow-read=./ --allow-write=./spec/api.json main.ts"
"dev": "deno run --allow-read=./ --allow-write=./atproto-openapi-types/spec/api.json --watch ./atproto-openapi-types/main.ts",
"run": "deno run --allow-net=bsky.social --allow-read=./ --allow-write=./atproto-openapi-types/spec/api.json ./atproto-openapi-types/main.ts"
},
"exclude": ["lexicons", "swagger-assets"]
}
File renamed without changes.

0 comments on commit 4a28ba1

Please sign in to comment.