Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Commit 66fad8d

Browse files
committed
chore: remove sequence from bruno files
1 parent f3045d3 commit 66fad8d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.changeset/real-bananas-itch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@labdigital/graphql-codegen-bruno": patch
3+
---
4+
5+
Remove sequence from bruno files

src/bruno.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { FileContent } from "./operations";
33

44
export const asBruno = async (
55
operation: FileContent,
6-
sequence: number,
76
defaults: Record<string, unknown>,
87
) => {
98
const formattedContent = await prettier.format(operation.content, {
@@ -16,7 +15,6 @@ export const asBruno = async (
1615
meta {
1716
name: ${operation.name}
1817
type: graphql
19-
seq: ${sequence}
2018
}
2119
2220
post {

src/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@ export const plugin: PluginFunction<BrunoPluginConfig> = async (
2525
}
2626

2727
const operations = extractOperations(schema, documents);
28-
let i = 0;
2928
const result: Record<string, Record<string, string>> = {};
3029
for (const operation of operations) {
3130
const fileName = `${operation.name}.bru`;
3231
const outputPath = path.join(outputDir, fileName);
3332

34-
const formattedContent = await asBruno(operation, i, config.defaults);
33+
const formattedContent = await asBruno(operation, config.defaults);
3534

3635
fs.outputFileSync(outputPath, formattedContent);
3736
result[operation.name] = {
@@ -40,7 +39,6 @@ export const plugin: PluginFunction<BrunoPluginConfig> = async (
4039
? path.relative(outputDir, operation.location)
4140
: "(unknown)",
4241
};
43-
i++;
4442
}
4543
return JSON.stringify(result, null, 2);
4644
};

0 commit comments

Comments
 (0)