Skip to content

Commit 29bb816

Browse files
refactor: Fixes some easier dependency cycles (#2605)
* fix Acronym dep cycle * ♻️ * fix dep cycle in input dir
1 parent 7b5d1ae commit 29bb816

File tree

8 files changed

+1115
-1117
lines changed

8 files changed

+1115
-1117
lines changed

packages/quicktype-core/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ export {
6969
type PrimitiveStringTypeKind
7070
} from "./Type";
7171
export { getStream } from "./input/io/get-stream";
72-
// eslint-disable-next-line import/no-cycle
72+
7373
export { readableFromFileOrURL, readFromFileOrURL } from "./input/io/NodeIO";
74-
// eslint-disable-next-line import/no-cycle
74+
7575
export { FetchingJSONSchemaStore } from "./input/FetchingJSONSchemaStore";
7676
export { JSONSchemaStore, type JSONSchema } from "./input/JSONSchemaStore";
7777
export { sourcesFromPostmanCollection } from "./input/PostmanCollection";

packages/quicktype-core/src/input/FetchingJSONSchemaStore.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// eslint-disable-next-line import/no-cycle
2-
import { parseJSON } from "..";
1+
import { parseJSON } from "../support/Support";
32

43
import { readFromFileOrURL } from "./io/NodeIO";
54
import { type JSONSchema, JSONSchemaStore } from "./JSONSchemaStore";

packages/quicktype-core/src/input/Inputs.ts

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { arrayMapSync, iterableFind, iterableFirst, iterableSome, setFilterMap,
22

33
import { descriptionTypeAttributeKind } from "../attributes/Description";
44
import { makeNamesTypeAttributes } from "../attributes/TypeNames";
5-
// eslint-disable-next-line import/no-cycle
65
import { languageNamed } from "../language/All";
76
import { messageError } from "../Messages";
87
import { type RunContext } from "../Run";

packages/quicktype-core/src/input/io/NodeIO.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import _fetch from "cross-fetch";
66
import isURL from "is-url";
77
import { type Readable } from "readable-stream";
88

9-
// eslint-disable-next-line import/no-cycle
10-
import { messageError, panic } from "../../index";
9+
import { messageError } from "../../Messages";
10+
import { panic } from "../../support/Support";
1111

1212
import { getStream } from "./get-stream";
1313

packages/quicktype-core/src/language/All.ts

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { GoTargetLanguage } from "./Golang";
1313
import { HaskellTargetLanguage } from "./Haskell";
1414
import { JavaTargetLanguage } from "./Java";
1515
import { JavaScriptTargetLanguage } from "./JavaScript";
16-
// eslint-disable-next-line import/no-cycle
1716
import { JavaScriptPropTypesTargetLanguage } from "./JavaScriptPropTypes";
1817
import { JSONSchemaTargetLanguage } from "./JSONSchema";
1918
import { KotlinTargetLanguage } from "./Kotlin";

0 commit comments

Comments
 (0)