File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
examples/nextjs-shopify/src/storefront/sdk-gen/generated Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import {
16
16
type ClientOptions ,
17
17
GenqlError ,
18
18
} from './runtime/index'
19
+ export type { FieldsSelection }
19
20
export { GenqlError }
20
21
21
22
import types from './types'
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @bsmnt/sdk-gen" ,
3
3
"author" : " basement.studio <dev@basement.studio>" ,
4
- "version" : " 2.0.3 " ,
4
+ "version" : " 2.0.4 " ,
5
5
"main" : " ./dist/index.js" ,
6
6
"types" : " ./dist/types.d.ts" ,
7
7
"bin" : {
Original file line number Diff line number Diff line change @@ -62,12 +62,11 @@ export async function main(args: Args) {
62
62
}
63
63
64
64
// some misc fixes
65
- // replace line 18 with ` } from './runtime/index'`
66
65
const schemaFileContents = fs . readFileSync ( generatedMainExportPath , 'utf-8' )
67
66
const lines = schemaFileContents . split ( '\n' )
67
+ // patch some lines to fix a weird rollup error.
68
68
lines [ 17 ] = "} from './runtime/index'"
69
- // remove line 19
70
- lines . splice ( 18 , 1 )
69
+ lines [ 18 ] = 'export type { FieldsSelection }'
71
70
fs . writeFileSync ( generatedMainExportPath , lines . join ( '\n' ) )
72
71
73
72
console . log ( 'Generated ✨' )
You can’t perform that action at this time.
0 commit comments