Skip to content

Commit

Permalink
fixup! bazel: generate graphql operations interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard committed Dec 15, 2022
1 parent ab975fa commit 9cd5709
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions client/shared/dev/generateGraphQlOperations.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,13 @@ module.exports = {

// Bazel entry point to generate a single graphql operations file; the legacy build
// continues to import `generateGraphQlOperations` and generate all operations files.
async function main(args) {
await _generateGraphQlOperations([{ interfaceNameForOperations: args[0], outputPath: args[1] }])
async function main(interfaceNameForOperations, outputPath) {
await _generateGraphQlOperations([{ interfaceNameForOperations, outputPath }])
}

;(async () => {
if (require.main === module) {
await main(process.argv.slice(2))
}
})()
if (require.main === module) {
main(...process.argv.slice(2)).catch(error => {
console.error(error)
process.exit(1)
})
}

0 comments on commit 9cd5709

Please sign in to comment.