Skip to content

Commit 97a4e03

Browse files
authored
build: fix type generation script (#867)
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
1 parent 2175ada commit 97a4e03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/generate-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { strict as assert } from "assert";
44
import * as fs from "fs";
5-
import { JSONSchema7, JSONSchema7Definition } from "json-schema";
5+
import type { JSONSchema7, JSONSchema7Definition } from "json-schema";
66
import { format } from "prettier";
77

88
type JSONSchemaWithRef = JSONSchema7 & Required<Pick<JSONSchema7, "$ref">>;

0 commit comments

Comments
 (0)