Skip to content

Commit

Permalink
v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vladkens committed Sep 3, 2024
1 parent c2ef8a7 commit 05897f0
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "apigen-ts",
"version": "0.1.2",
"version": "0.2.0",
"license": "MIT",
"author": "vladkens <v.pronsky@gmail.com>",
"repository": "vladkens/apigen-ts",
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ts from "typescript"
import { fileURLToPath } from "url"
import { Config, initCtx } from "./config"
import { generateAst, loadSchema } from "./generator"
import { formatCode, printCode } from "./pritner"
import { formatCode, printCode } from "./printer"

export const apigen = async (config: Partial<Config> & Pick<Config, "source" | "output">) => {
const doc = await loadSchema(config.source)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/type-gen.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ts from "typescript"
import { test } from "uvu"
import { equal } from "uvu/assert"
import { initCtx } from "../src/config"
import { printCode } from "../src/pritner"
import { printCode } from "../src/printer"
import { makeType, makeTypeAlias } from "../src/type-gen"

test("type inline", async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/url-gen.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ts from "typescript"
import { test } from "uvu"
import { equal } from "uvu/assert"
import { prepareUrl } from "../src/generator"
import { printCode } from "../src/pritner"
import { printCode } from "../src/printer"

test("url template", async () => {
const t = async (url: string, replacements: Record<string, string>) => {
Expand Down

0 comments on commit 05897f0

Please sign in to comment.