This repository was archived by the owner on Nov 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @labdigital/graphql-codegen-bruno " : patch
3
+ ---
4
+
5
+ Remove sequence from bruno files
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import type { FileContent } from "./operations";
3
3
4
4
export const asBruno = async (
5
5
operation : FileContent ,
6
- sequence : number ,
7
6
defaults : Record < string , unknown > ,
8
7
) => {
9
8
const formattedContent = await prettier . format ( operation . content , {
@@ -16,7 +15,6 @@ export const asBruno = async (
16
15
meta {
17
16
name: ${ operation . name }
18
17
type: graphql
19
- seq: ${ sequence }
20
18
}
21
19
22
20
post {
Original file line number Diff line number Diff line change @@ -25,13 +25,12 @@ export const plugin: PluginFunction<BrunoPluginConfig> = async (
25
25
}
26
26
27
27
const operations = extractOperations ( schema , documents ) ;
28
- let i = 0 ;
29
28
const result : Record < string , Record < string , string > > = { } ;
30
29
for ( const operation of operations ) {
31
30
const fileName = `${ operation . name } .bru` ;
32
31
const outputPath = path . join ( outputDir , fileName ) ;
33
32
34
- const formattedContent = await asBruno ( operation , i , config . defaults ) ;
33
+ const formattedContent = await asBruno ( operation , config . defaults ) ;
35
34
36
35
fs . outputFileSync ( outputPath , formattedContent ) ;
37
36
result [ operation . name ] = {
@@ -40,7 +39,6 @@ export const plugin: PluginFunction<BrunoPluginConfig> = async (
40
39
? path . relative ( outputDir , operation . location )
41
40
: "(unknown)" ,
42
41
} ;
43
- i ++ ;
44
42
}
45
43
return JSON . stringify ( result , null , 2 ) ;
46
44
} ;
You can’t perform that action at this time.
0 commit comments