Skip to content

Commit c7633e1

Browse files
committed
chore: linting
1 parent 74bff14 commit c7633e1

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/voyager.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports.builder = {
44
port: {
55
alias: 'p',
66
description: 'port to start local server with voyager on',
7-
}
7+
},
88
}
99

1010
import * as express from 'express'
@@ -13,19 +13,22 @@ import * as graphqlHTTP from 'express-graphql'
1313
import * as opn from 'opn'
1414
import { buildSchema } from 'graphql'
1515

16-
exports.handler = async function (context, argv) {
16+
exports.handler = async function(context, argv) {
1717
const config = await context.getProjectConfig()
1818
const schema = buildSchema(config.getSchemaSDL())
1919

2020
const app = express()
2121

22-
app.use('/graphql', graphqlHTTP({
23-
schema: schema
24-
}));
22+
app.use(
23+
'/graphql',
24+
graphqlHTTP({
25+
schema: schema,
26+
}),
27+
)
2528

2629
app.use('/voyager', middleware({ endpointUrl: '/graphql' }))
2730

28-
const port = parseInt(argv.port) || 7000;
31+
const port = parseInt(argv.port) || 7000
2932
const listener = app.listen(port, () => {
3033
let host = listener.address().address
3134
if (host === '::') {
@@ -34,5 +37,5 @@ exports.handler = async function (context, argv) {
3437
const link = `http://${host}:${port}/voyager`
3538
console.log('Serving voyager at %s', link)
3639
opn(link)
37-
});
40+
})
3841
}

0 commit comments

Comments
 (0)