Skip to content

Commit db6b1be

Browse files
authored
Move utils with is prefix to is folder (#249)
1 parent 81a8495 commit db6b1be

File tree

7 files changed

+6
-4
lines changed

7 files changed

+6
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export * from "./add";
22
export * from "./get";
3-
export * from "./isTypeScriptFile";
3+
export * from "./is";
44
export * from "./remove";
55
export * from "./replace";
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from "./isTypeScriptFile";
2+
export * from "./isV2ClientInputOutputType";

src/transforms/v2-to-v3/utils/isV2ClientInputOutputType.ts renamed to src/transforms/v2-to-v3/utils/is/isV2ClientInputOutputType.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { V2_CLIENT_INPUT_SUFFIX_LIST, V2_CLIENT_OUTPUT_SUFFIX_LIST } from "./config";
1+
import { V2_CLIENT_INPUT_SUFFIX_LIST, V2_CLIENT_OUTPUT_SUFFIX_LIST } from "../config";
22

33
export const isV2ClientInputOutputType = (v2ClientTypeName: string) =>
44
[...V2_CLIENT_INPUT_SUFFIX_LIST, ...V2_CLIENT_OUTPUT_SUFFIX_LIST].some((suffix) =>

src/transforms/v2-to-v3/utils/remove/removeV2ClientModule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Collection, JSCodeshift } from "jscodeshift";
22

33
import { getV2ClientTypeNames, getV2ServiceModulePath } from "../get";
44
import { hasRequire } from "../has";
5-
import { isV2ClientInputOutputType } from "../isV2ClientInputOutputType";
5+
import { isV2ClientInputOutputType } from "../is";
66
import { removeImportIdentifierName } from "./removeImportIdentifierName";
77
import { removeRequireIdentifierName } from "./removeRequireIdentifierName";
88

src/transforms/v2-to-v3/utils/replace/replaceTSTypeReference.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Collection, Identifier, JSCodeshift, TSQualifiedName, TSTypeReference } from "jscodeshift";
22

33
import { getV2ClientTSTypeRef, getV2ClientTypeNames, getV3ClientTypeName } from "../get";
4-
import { isV2ClientInputOutputType } from "../isV2ClientInputOutputType";
4+
import { isV2ClientInputOutputType } from "../is";
55

66
export interface ReplaceTSTypeReferenceOptions {
77
v2ClientName: string;

0 commit comments

Comments
 (0)