Skip to content

Commit 87fa96d

Browse files
committed
COnvert to CommonJS
1 parent 3518e95 commit 87fa96d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

join-documents.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { print } from 'graphql'
1+
const { print } = require('graphql')
22

3-
export default {
3+
module.exports = {
44
plugin: (schema, documents, config, info) => (
55
documents.map(({ document }) => print(document)).join('\n')
66
)

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "graphql-codegen-join-documents",
33
"version": "0.1.0",
44
"main": "join-documents.js",
5-
"type": "module",
65
"scripts": {
76
"test": "echo \"Error: no test specified\" && exit 1"
87
},

0 commit comments

Comments
 (0)