diff --git a/package.json b/package.json index 38887eb..94f1352 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "type": "module", "name": "apigen-ts", - "version": "0.1.2", + "version": "0.2.0", "license": "MIT", "author": "vladkens ", "repository": "vladkens/apigen-ts", diff --git a/src/main.ts b/src/main.ts index 1e4c088..63ba546 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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 & Pick) => { const doc = await loadSchema(config.source) diff --git a/src/pritner.ts b/src/printer.ts similarity index 100% rename from src/pritner.ts rename to src/printer.ts diff --git a/test/type-gen.test.ts b/test/type-gen.test.ts index 02aa625..7c06b71 100644 --- a/test/type-gen.test.ts +++ b/test/type-gen.test.ts @@ -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 () => { diff --git a/test/url-gen.test.ts b/test/url-gen.test.ts index 6f6fdc1..f0da1c5 100644 --- a/test/url-gen.test.ts +++ b/test/url-gen.test.ts @@ -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) => {