Skip to content

Commit 7e778d8

Browse files
committed
simplify devDependencies
1 parent 1df921f commit 7e778d8

File tree

5 files changed

+1603
-3678
lines changed

5 files changed

+1603
-3678
lines changed

dslToJson.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env node
2+
var fs = require("fs");
3+
const { buildSchema, graphqlSync, getIntrospectionQuery } = require("graphql");
4+
process.stdout.write(
5+
JSON.stringify(
6+
graphqlSync({
7+
schema: buildSchema(fs.readFileSync("schema.graphql", "utf8")),
8+
source: getIntrospectionQuery(),
9+
}),
10+
null,
11+
2
12+
)
13+
);

0 commit comments

Comments
 (0)