Skip to content

Commit 7f3bec9

Browse files
committed
Restructure
1 parent 3e544a1 commit 7f3bec9

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

gatsby-node.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
const gatsbySourceGraphQLNode = require("gatsby-source-graphql/gatsby-node");
22
const { Pool } = require("pg");
33

4-
const createSchema = require("./createSchema");
5-
const PostGraphileLink = require("./PostGraphileLink");
4+
const createSchema = require("./lib/createSchema");
5+
const PostGraphileLink = require("./lib/PostGraphileLink");
66

77
exports.sourceNodes = async (
88
utils,
9-
{ typeName = "PostGraphile", fieldName = "postgres", refetchInterval, ...options }
9+
{
10+
typeName = "PostGraphile",
11+
fieldName = "postgres",
12+
refetchInterval,
13+
...options
14+
}
1015
) => {
1116
const { connectionString, schema: postgresSchema, ...rest } = options;
1217

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,5 @@
4949
"resolutions": {
5050
"graphql": "0.13.x"
5151
},
52-
"files": [
53-
"/*.js"
54-
]
52+
"files": ["/lib", "/index.js", "/gatsby-node.js"]
5553
}

0 commit comments

Comments
 (0)