From f061185271377d5cdc953266008702770a6e4982 Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Thu, 29 Jun 2023 15:42:41 -0400 Subject: [PATCH] build: fix type generation script Due to the recent changes to the `tsconfig.json`, type imports need to be marked as such, so that the compiler knows to strip it out from the output. By marking the type import, the script now runs correctly --- scripts/generate-types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate-types.ts b/scripts/generate-types.ts index 536ee538..5a56cb3e 100755 --- a/scripts/generate-types.ts +++ b/scripts/generate-types.ts @@ -2,7 +2,7 @@ import { strict as assert } from "assert"; import * as fs from "fs"; -import { JSONSchema7, JSONSchema7Definition } from "json-schema"; +import type { JSONSchema7, JSONSchema7Definition } from "json-schema"; import { format } from "prettier"; type JSONSchemaWithRef = JSONSchema7 & Required>;