Skip to content

Commit 6524e26

Browse files
committed
fix build
1 parent 6e5669b commit 6524e26

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/nextjs-shopify/src/storefront/sdk-gen/generated/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
type ClientOptions,
1717
GenqlError,
1818
} from './runtime/index'
19+
export type { FieldsSelection }
1920
export { GenqlError }
2021

2122
import types from './types'

packages/sdk-gen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@bsmnt/sdk-gen",
33
"author": "basement.studio <dev@basement.studio>",
4-
"version": "2.0.3",
4+
"version": "2.0.4",
55
"main": "./dist/index.js",
66
"types": "./dist/types.d.ts",
77
"bin": {

packages/sdk-gen/src/generate.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,11 @@ export async function main(args: Args) {
6262
}
6363

6464
// some misc fixes
65-
// replace line 18 with `} from './runtime/index'`
6665
const schemaFileContents = fs.readFileSync(generatedMainExportPath, 'utf-8')
6766
const lines = schemaFileContents.split('\n')
67+
// patch some lines to fix a weird rollup error.
6868
lines[17] = "} from './runtime/index'"
69-
// remove line 19
70-
lines.splice(18, 1)
69+
lines[18] = 'export type { FieldsSelection }'
7170
fs.writeFileSync(generatedMainExportPath, lines.join('\n'))
7271

7372
console.log('Generated ✨')

0 commit comments

Comments
 (0)