Skip to content

Commit

Permalink
build: fix type generation script (#867)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wolfy1339 authored Jun 29, 2023
1 parent 2175ada commit 97a4e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Pick<JSONSchema7, "$ref">>;
Expand Down

0 comments on commit 97a4e03

Please sign in to comment.