Skip to content

Commit 815a186

Browse files
committed
yarn format
1 parent c944b2e commit 815a186

File tree

7 files changed

+2
-15
lines changed

7 files changed

+2
-15
lines changed

e2e/tests/pothos--extensions--ts-proto/schema.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import { PrefixedMessage } from "@testapis/ts-proto/lib/testapis/extensions/extensions";
32

43
import { printGraphqlSchema } from "../../src/printGraphqlSchema";

e2e/tests/pothos--nested--ts-proto/schema.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import {
32
ParentMessage,
43
ParentMessage_NestedEnum,

packages/@proto-graphql/proto-descriptors/src/impls.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
FullNameImpl,
1414
getCommentSetByDescriptors,
1515
isDeprecated,
16-
1716
memo,
1817
} from "./common";
1918
import {
@@ -362,7 +361,7 @@ export class ProtoFieldImpl implements ProtoField {
362361
get type(): ProtoMessage | ProtoEnum | ProtoScalar {
363362
const scalarType = getScalarTypeFromDescriptor(this.descriptor);
364363
if (scalarType !== undefined) return { kind: "Scalar", type: scalarType };
365-
364+
366365
const foundType = this.registry.findTypeByFullName(
367366
this.descriptor.getTypeName()!.replace(/^\./, "")
368367
);

packages/@proto-graphql/proto-descriptors/src/scalars.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import { FieldDescriptorProto } from "google-protobuf/google/protobuf/descriptor_pb";
22

33
type FieldDescriptorScalarType = Exclude<
4-
54
FieldDescriptorProto.Type,
6-
75
| FieldDescriptorProto.Type.TYPE_MESSAGE
86
| FieldDescriptorProto.Type.TYPE_ENUM
97
| FieldDescriptorProto.Type.TYPE_GROUP
@@ -32,7 +30,6 @@ const protoScalarByFieldDescriptorType = {
3230
[FieldDescriptorProto.Type.TYPE_BOOL]: "bool",
3331
[FieldDescriptorProto.Type.TYPE_STRING]: "string",
3432
[FieldDescriptorProto.Type.TYPE_BYTES]: "bytes",
35-
3633
} as const satisfies Record<FieldDescriptorScalarType, string>;
3734

3835
export function getScalarTypeFromDescriptor(

packages/proto-nexus/src/Transformer.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
type TransformFunc<In, Out> = (input: In) => Out;
42

53
export interface Transformer<ProtoType, GqlType> {

packages/protoc-gen-nexus/src/__tests__/__helpers__/process.test.helper.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import * as ts from "typescript";
1212

1313
import { processRequest } from "../../process";
1414

15-
1615
const generationTargets = ["native protobuf", "protobufjs"] as const;
1716
type GenerationTarget = typeof generationTargets[number];
1817

@@ -197,7 +196,6 @@ async function buildCodeGeneratorRequest(
197196
}
198197

199198
function getFileMap(resp: CodeGeneratorResponse): Record<string, string> {
200-
201199
return resp
202200
.getFileList()
203201
.reduce(
@@ -220,7 +218,7 @@ async function withGeneratedResults<T>(
220218
(p) => fs.mkdir(p, { recursive: true })
221219
)
222220
);
223-
221+
224222
await Promise.all(
225223
files.map((f) =>
226224
fs.writeFile(join(dir, f.getName()!), f.getContent()!, "utf-8")
@@ -238,7 +236,6 @@ async function withGeneratedSchema(
238236
cb: (dir: string) => Promise<void>
239237
) {
240238
await withGeneratedResults(files, async (dir) => {
241-
242239
try {
243240
await createSchemaTs(dir, files, extraSchemata);
244241
execSync(`yarn ts-node --transpile-only ${dir}/schema.ts`, { cwd: dir });

packages/protoc-gen-pothos/src/__tests__/__helpers__/process.test.helper.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
} from "google-protobuf/google/protobuf/compiler/plugin_pb";
99
import { FileDescriptorSet } from "google-protobuf/google/protobuf/descriptor_pb";
1010

11-
1211
import { processRequest } from "../../process";
1312

1413
const generationTargets = [
@@ -129,7 +128,6 @@ async function buildCodeGeneratorRequest(
129128
}
130129

131130
function getFileMap(resp: CodeGeneratorResponse): Record<string, string> {
132-
133131
return resp
134132
.getFileList()
135133
.reduce(

0 commit comments

Comments
 (0)